@yinsen/deveco-cli 1.3.3-Test.3 → 1.3.3-Test.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -4
- package/dist/internal/telemetry-upload-background.js +1 -1
- package/package.json +56 -56
- package/src/resources/aclPermission/aclPermissionsInfo.json +310 -310
- package/src/resources/arkts-check.cjs +3642 -3642
- package/templates/application/AppScope/app.json5 +10 -10
- package/templates/application/AppScope/resources/base/element/string.json +8 -8
- package/templates/application/AppScope/resources/base/media/layered_image.json +6 -6
- package/templates/application/build-profile.json5 +41 -41
- package/templates/application/code-linter.json5 +31 -31
- package/templates/application/entry/build-profile.json5 +32 -32
- package/templates/application/entry/gitignore.txt +5 -5
- package/templates/application/entry/hvigorfile.ts +7 -7
- package/templates/application/entry/obfuscation-rules.txt +19 -19
- package/templates/application/entry/oh-package.json5 +10 -10
- package/templates/application/entry/src/main/ets/entryability/EntryAbility.ets +62 -62
- package/templates/application/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets +30 -30
- package/templates/application/entry/src/main/ets/pages/Index.ets +37 -37
- package/templates/application/entry/src/main/module.json5 +49 -49
- package/templates/application/entry/src/main/resources/base/element/color.json +7 -7
- package/templates/application/entry/src/main/resources/base/element/float.json +8 -8
- package/templates/application/entry/src/main/resources/base/element/string.json +15 -15
- package/templates/application/entry/src/main/resources/base/media/layered_image.json +6 -6
- package/templates/application/entry/src/main/resources/base/profile/backup_config.json +2 -2
- package/templates/application/entry/src/main/resources/base/profile/main_pages.json +5 -5
- package/templates/application/entry/src/main/resources/dark/element/color.json +7 -7
- package/templates/application/gitignore.txt +12 -12
- package/templates/application/hvigor/hvigor-config.json5 +23 -23
- package/templates/application/hvigorfile.ts +7 -7
- package/templates/application/oh-package.json5 +10 -10
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": {
|
|
3
|
-
"name": "entry",
|
|
4
|
-
"type": "entry",
|
|
5
|
-
"description": "$string:module_desc",
|
|
6
|
-
"mainElement": "EntryAbility",
|
|
7
|
-
"deviceTypes": [
|
|
8
|
-
"phone"
|
|
9
|
-
],
|
|
10
|
-
"deliveryWithInstall": true,
|
|
11
|
-
"installationFree": false,
|
|
12
|
-
"pages": "$profile:main_pages",
|
|
13
|
-
"abilities": [
|
|
14
|
-
{
|
|
15
|
-
"name": "EntryAbility",
|
|
16
|
-
"srcEntry": "./ets/entryability/EntryAbility.ets",
|
|
17
|
-
"description": "$string:EntryAbility_desc",
|
|
18
|
-
"icon": "$media:layered_image",
|
|
19
|
-
"label": "$string:EntryAbility_label",
|
|
20
|
-
"startWindowIcon": "$media:startIcon",
|
|
21
|
-
"startWindowBackground": "$color:start_window_background",
|
|
22
|
-
"exported": true,
|
|
23
|
-
"skills": [
|
|
24
|
-
{
|
|
25
|
-
"entities": [
|
|
26
|
-
"entity.system.home"
|
|
27
|
-
],
|
|
28
|
-
"actions": [
|
|
29
|
-
"ohos.want.action.home"
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"extensionAbilities": [
|
|
36
|
-
{
|
|
37
|
-
"name": "EntryBackupAbility",
|
|
38
|
-
"srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
|
|
39
|
-
"type": "backup",
|
|
40
|
-
"exported": false,
|
|
41
|
-
"metadata": [
|
|
42
|
-
{
|
|
43
|
-
"name": "ohos.extension.backup",
|
|
44
|
-
"resource": "$profile:backup_config"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"module": {
|
|
3
|
+
"name": "entry",
|
|
4
|
+
"type": "entry",
|
|
5
|
+
"description": "$string:module_desc",
|
|
6
|
+
"mainElement": "EntryAbility",
|
|
7
|
+
"deviceTypes": [
|
|
8
|
+
"phone"
|
|
9
|
+
],
|
|
10
|
+
"deliveryWithInstall": true,
|
|
11
|
+
"installationFree": false,
|
|
12
|
+
"pages": "$profile:main_pages",
|
|
13
|
+
"abilities": [
|
|
14
|
+
{
|
|
15
|
+
"name": "EntryAbility",
|
|
16
|
+
"srcEntry": "./ets/entryability/EntryAbility.ets",
|
|
17
|
+
"description": "$string:EntryAbility_desc",
|
|
18
|
+
"icon": "$media:layered_image",
|
|
19
|
+
"label": "$string:EntryAbility_label",
|
|
20
|
+
"startWindowIcon": "$media:startIcon",
|
|
21
|
+
"startWindowBackground": "$color:start_window_background",
|
|
22
|
+
"exported": true,
|
|
23
|
+
"skills": [
|
|
24
|
+
{
|
|
25
|
+
"entities": [
|
|
26
|
+
"entity.system.home"
|
|
27
|
+
],
|
|
28
|
+
"actions": [
|
|
29
|
+
"ohos.want.action.home"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"extensionAbilities": [
|
|
36
|
+
{
|
|
37
|
+
"name": "EntryBackupAbility",
|
|
38
|
+
"srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
|
|
39
|
+
"type": "backup",
|
|
40
|
+
"exported": false,
|
|
41
|
+
"metadata": [
|
|
42
|
+
{
|
|
43
|
+
"name": "ohos.extension.backup",
|
|
44
|
+
"resource": "$profile:backup_config"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
50
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"color": [
|
|
3
|
-
{
|
|
4
|
-
"name": "start_window_background",
|
|
5
|
-
"value": "#FFFFFF"
|
|
6
|
-
}
|
|
7
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"color": [
|
|
3
|
+
{
|
|
4
|
+
"name": "start_window_background",
|
|
5
|
+
"value": "#FFFFFF"
|
|
6
|
+
}
|
|
7
|
+
]
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"float": [
|
|
3
|
-
{
|
|
4
|
-
"name": "page_text_font_size",
|
|
5
|
-
"value": "50fp"
|
|
6
|
-
}
|
|
7
|
-
]
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"float": [
|
|
3
|
+
{
|
|
4
|
+
"name": "page_text_font_size",
|
|
5
|
+
"value": "50fp"
|
|
6
|
+
}
|
|
7
|
+
]
|
|
8
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"string": [
|
|
3
|
-
{
|
|
4
|
-
"name": "module_desc",
|
|
5
|
-
"value": "module description"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"name": "EntryAbility_desc",
|
|
9
|
-
"value": "description"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "EntryAbility_label",
|
|
13
|
-
"value": "label"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"string": [
|
|
3
|
+
{
|
|
4
|
+
"name": "module_desc",
|
|
5
|
+
"value": "module description"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "EntryAbility_desc",
|
|
9
|
+
"value": "description"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "EntryAbility_label",
|
|
13
|
+
"value": "label"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"layered-image":
|
|
3
|
-
{
|
|
4
|
-
"background" : "$media:background",
|
|
5
|
-
"foreground" : "$media:foreground"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"layered-image":
|
|
3
|
+
{
|
|
4
|
+
"background" : "$media:background",
|
|
5
|
+
"foreground" : "$media:foreground"
|
|
6
|
+
}
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"allowToBackupRestore": true
|
|
1
|
+
{
|
|
2
|
+
"allowToBackupRestore": true
|
|
3
3
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"src": [
|
|
3
|
-
"pages/Index"
|
|
4
|
-
]
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"src": [
|
|
3
|
+
"pages/Index"
|
|
4
|
+
]
|
|
5
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"color": [
|
|
3
|
-
{
|
|
4
|
-
"name": "start_window_background",
|
|
5
|
-
"value": "#000000"
|
|
6
|
-
}
|
|
7
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"color": [
|
|
3
|
+
{
|
|
4
|
+
"name": "start_window_background",
|
|
5
|
+
"value": "#000000"
|
|
6
|
+
}
|
|
7
|
+
]
|
|
8
8
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
|
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
|
|
13
13
|
/.cache
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modelVersion": "6.0.2",
|
|
3
|
-
"dependencies": {
|
|
4
|
-
},
|
|
5
|
-
"execution": {
|
|
6
|
-
// "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | "ultrafine" | false ]. Default: "normal" */
|
|
7
|
-
// "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */
|
|
8
|
-
// "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */
|
|
9
|
-
// "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */
|
|
10
|
-
// "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */
|
|
11
|
-
// "optimizationStrategy": "memory" /* Define the optimization strategy. Value: [ "memory" | "performance" ]. Default: "memory" */
|
|
12
|
-
},
|
|
13
|
-
"logging": {
|
|
14
|
-
// "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
|
|
15
|
-
},
|
|
16
|
-
"debugging": {
|
|
17
|
-
// "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
|
|
18
|
-
},
|
|
19
|
-
"nodeOptions": {
|
|
20
|
-
// "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/
|
|
21
|
-
// "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"modelVersion": "6.0.2",
|
|
3
|
+
"dependencies": {
|
|
4
|
+
},
|
|
5
|
+
"execution": {
|
|
6
|
+
// "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | "ultrafine" | false ]. Default: "normal" */
|
|
7
|
+
// "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */
|
|
8
|
+
// "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */
|
|
9
|
+
// "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */
|
|
10
|
+
// "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */
|
|
11
|
+
// "optimizationStrategy": "memory" /* Define the optimization strategy. Value: [ "memory" | "performance" ]. Default: "memory" */
|
|
12
|
+
},
|
|
13
|
+
"logging": {
|
|
14
|
+
// "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
|
|
15
|
+
},
|
|
16
|
+
"debugging": {
|
|
17
|
+
// "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
|
|
18
|
+
},
|
|
19
|
+
"nodeOptions": {
|
|
20
|
+
// "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/
|
|
21
|
+
// "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// @ts-nocheck – Template file, only used when copied into a project directory
|
|
2
|
-
import { appTasks } from '@ohos/hvigor-ohos-plugin';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
system: appTasks /* Built-in plugin of Hvigor. It cannot be modified. */,
|
|
6
|
-
plugins: [] /* Custom plugin to extend the functionality of Hvigor. */,
|
|
7
|
-
};
|
|
1
|
+
// @ts-nocheck – Template file, only used when copied into a project directory
|
|
2
|
+
import { appTasks } from '@ohos/hvigor-ohos-plugin';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
system: appTasks /* Built-in plugin of Hvigor. It cannot be modified. */,
|
|
6
|
+
plugins: [] /* Custom plugin to extend the functionality of Hvigor. */,
|
|
7
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modelVersion": "6.0.2",
|
|
3
|
-
"description": "Please describe the basic information.",
|
|
4
|
-
"dependencies": {
|
|
5
|
-
},
|
|
6
|
-
"devDependencies": {
|
|
7
|
-
"@ohos/hypium": "1.0.25",
|
|
8
|
-
"@ohos/hamock": "1.0.0"
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"modelVersion": "6.0.2",
|
|
3
|
+
"description": "Please describe the basic information.",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
},
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@ohos/hypium": "1.0.25",
|
|
8
|
+
"@ohos/hamock": "1.0.0"
|
|
9
|
+
}
|
|
10
|
+
}
|