Skip to content

Commit ed283ad

Browse files
committed
Harmony port: main project
1 parent 791e9b2 commit ed283ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+822
-0
lines changed

ohos-project/.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/node_modules
2+
/oh_modules
3+
/local.properties
4+
/.idea
5+
**/build
6+
/.hvigor
7+
.cxx
8+
/.clangd
9+
/.clang-format
10+
/.clang-tidy
11+
**/.test
12+
/.appanalyzer

ohos-project/AppScope/app.json5

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"app": {
3+
"bundleName": "com.cpp.app",
4+
"vendor": "example",
5+
"versionCode": 1000000,
6+
"versionName": "1.0.0",
7+
"icon": "$media:layered_image",
8+
"label": "$string:app_name"
9+
}
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"string": [
3+
{
4+
"name": "app_name",
5+
"value": "MyApplication"
6+
}
7+
]
8+
}
89.8 KB
Loading
14.2 KB
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"layered-image":
3+
{
4+
"background" : "$media:background",
5+
"foreground" : "$media:foreground"
6+
}
7+
}
8.6 KB
Loading

ohos-project/build-profile.json5

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"app": {
3+
"signingConfigs": [],
4+
"products": [
5+
{
6+
"name": "default",
7+
"signingConfig": "default",
8+
"targetSdkVersion": "5.0.1(13)",
9+
"compatibleSdkVersion": "5.0.1(13)",
10+
"runtimeOS": "HarmonyOS",
11+
"buildOption": {
12+
"strictMode": {
13+
"caseSensitiveCheck": true,
14+
"useNormalizedOHMUrl": true
15+
}
16+
}
17+
}
18+
],
19+
"buildModeSet": [
20+
{
21+
"name": "debug",
22+
},
23+
{
24+
"name": "release"
25+
}
26+
]
27+
},
28+
"modules": [
29+
{
30+
"name": "entry",
31+
"srcPath": "./entry",
32+
"targets": [
33+
{
34+
"name": "default",
35+
"applyToProducts": [
36+
"default"
37+
]
38+
}
39+
]
40+
}
41+
]
42+
}

ohos-project/code-linter.json5

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"files": [
3+
"**/*.ets"
4+
],
5+
"ignore": [
6+
"**/src/ohosTest/**/*",
7+
"**/src/test/**/*",
8+
"**/src/mock/**/*",
9+
"**/node_modules/**/*",
10+
"**/oh_modules/**/*",
11+
"**/build/**/*",
12+
"**/.preview/**/*"
13+
],
14+
"ruleSet": [
15+
"plugin:@performance/recommended",
16+
"plugin:@typescript-eslint/recommended"
17+
],
18+
"rules": {
19+
"@security/no-unsafe-aes": "error",
20+
"@security/no-unsafe-hash": "error",
21+
"@security/no-unsafe-mac": "warn",
22+
"@security/no-unsafe-dh": "error",
23+
"@security/no-unsafe-dsa": "error",
24+
"@security/no-unsafe-ecdsa": "error",
25+
"@security/no-unsafe-rsa-encrypt": "error",
26+
"@security/no-unsafe-rsa-sign": "error",
27+
"@security/no-unsafe-rsa-key": "error",
28+
"@security/no-unsafe-dsa-key": "error",
29+
"@security/no-unsafe-dh-key": "error",
30+
"@security/no-unsafe-3des": "error"
31+
}
32+
}

ohos-project/entry/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/node_modules
2+
/oh_modules
3+
/.preview
4+
/build
5+
/.cxx
6+
/.test

0 commit comments

Comments
 (0)