Skip to content

Commit

Permalink
Support harmonyos next
Browse files Browse the repository at this point in the history
  • Loading branch information
HeHang0 committed Nov 2, 2024
1 parent f1a82a5 commit 53a956c
Show file tree
Hide file tree
Showing 58 changed files with 2,706 additions and 47 deletions.
13 changes: 13 additions & 0 deletions harmoryos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/node_modules
/oh_modules
/local.properties
/.idea
**/build
/.hvigor
.cxx
/.clangd
/.clang-format
/.clang-tidy
**/.test
/.appanalyzer
/material
10 changes: 10 additions & 0 deletions harmoryos/AppScope/app.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"app": {
"bundleName": "com.picapico.musiche",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0",
"icon": "$media:app_icon",
"label": "$string:app_name"
}
}
8 changes: 8 additions & 0 deletions harmoryos/AppScope/resources/base/element/string.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"string": [
{
"name": "app_name",
"value": "Musiche"
}
]
}
1 change: 1 addition & 0 deletions harmoryos/AppScope/resources/base/media/app_icon.png
68 changes: 68 additions & 0 deletions harmoryos/build-profile.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"app": {
"signingConfigs": [
{
"name": "default",
"type": "HarmonyOS",
"material": {
"certpath": "C:\\Users\\hehang\\.ohos\\config\\default_harmoryos_44T8-MmosA-hRHmlg6jT-8yn62ufDy7pR-u_iCXuJQE=.cer",
"storePassword": "0000001ADEADCE6400A14F991CB0FD7EF0E76A1BAC1D25DD250C5D08B8E1B15753230C397ED5BD95E7AF",
"keyAlias": "debugKey",
"keyPassword": "0000001A12B6EB4472DAC91BD4557EC6D2E77598D3EE998CE7B88E40094860C9F4E89DD6568FA4704FD5",
"profile": "C:\\Users\\hehang\\.ohos\\config\\default_harmoryos_44T8-MmosA-hRHmlg6jT-8yn62ufDy7pR-u_iCXuJQE=.p7b",
"signAlg": "SHA256withECDSA",
"storeFile": "C:\\Users\\hehang\\.ohos\\config\\default_harmoryos_44T8-MmosA-hRHmlg6jT-8yn62ufDy7pR-u_iCXuJQE=.p12"
}
},
{
"name": "release",
"type": "HarmonyOS",
"material": {
"storePassword": "00000018EB28F913C3C77D3E4A2171F6630F529216B13AB3AB4470D2E1BA339BC96088884708F9E0",
"certpath": "F:/Programing/CSharp_test/Musiche/harmoryos/sign.cer",
"keyAlias": "musiche",
"keyPassword": "000000189AC913224F4451B067A7F08F8F5F7A19FBE9CCCB9B4218602F65DDED8C4ED3F203105C90",
"profile": "F:/Programing/CSharp_test/Musiche/harmoryos/sign.p7b",
"signAlg": "SHA256withECDSA",
"storeFile": "F:/Programing/CSharp_test/Musiche/harmoryos/sign.p12"
}
}
],
"products": [
{
"name": "default",
"signingConfig": "default",
"compatibleSdkVersion": "5.0.0(12)",
"runtimeOS": "HarmonyOS",
"buildOption": {
"strictMode": {
"caseSensitiveCheck": true,
"useNormalizedOHMUrl": true
}
}
}
],
"buildModeSet": [
{
"name": "debug",
},
{
"name": "release"
}
]
},
"modules": [
{
"name": "entry",
"srcPath": "./entry",
"targets": [
{
"name": "default",
"applyToProducts": [
"default"
]
}
]
}
]
}
20 changes: 20 additions & 0 deletions harmoryos/code-linter.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"files": [
"**/*.ets"
],
"ignore": [
"**/src/ohosTest/**/*",
"**/src/test/**/*",
"**/src/mock/**/*",
"**/node_modules/**/*",
"**/oh_modules/**/*",
"**/build/**/*",
"**/.preview/**/*"
],
"ruleSet": [
"plugin:@performance/recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
}
}
6 changes: 6 additions & 0 deletions harmoryos/entry/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/node_modules
/oh_modules
/.preview
/build
/.cxx
/.test
29 changes: 29 additions & 0 deletions harmoryos/entry/build-profile.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"apiType": "stageMode",
"buildOption": {

},
"buildOptionSet": [
{
"name": "release",
"arkOptions": {
"obfuscation": {
"ruleOptions": {
"enable": false,
"files": [
"./obfuscation-rules.txt"
]
}
}
}
},
],
"targets": [
{
"name": "default",
},
{
"name": "ohosTest",
}
],
}
6 changes: 6 additions & 0 deletions harmoryos/entry/hvigorfile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { hapTasks } from '@ohos/hvigor-ohos-plugin';

export default {
system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
}
23 changes: 23 additions & 0 deletions harmoryos/entry/obfuscation-rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Define project specific obfuscation rules here.
# You can include the obfuscation configuration files in the current module's build-profile.json5.
#
# For more details, see
# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5

# Obfuscation options:
# -disable-obfuscation: disable all obfuscations
# -enable-property-obfuscation: obfuscate the property names
# -enable-toplevel-obfuscation: obfuscate the names in the global scope
# -compact: remove unnecessary blank spaces and all line feeds
# -remove-log: remove all console.* statements
# -print-namecache: print the name cache that contains the mapping from the old names to new names
# -apply-namecache: reuse the given cache file

# Keep options:
# -keep-property-name: specifies property names that you want to keep
# -keep-global-name: specifies names that you want to keep in the global scope

-enable-property-obfuscation
-enable-toplevel-obfuscation
-enable-filename-obfuscation
-enable-export-obfuscation
10 changes: 10 additions & 0 deletions harmoryos/entry/oh-package.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "entry",
"version": "1.0.0",
"description": "Please describe the basic information.",
"main": "",
"author": "",
"license": "",
"dependencies": {}
}

Loading

0 comments on commit 53a956c

Please sign in to comment.