初始提交
This commit is contained in:
28
harmony-configs/entry/build-profile.json5
Normal file
28
harmony-configs/entry/build-profile.json5
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"apiType": "stageMode",
|
||||
"buildOption": {
|
||||
},
|
||||
"buildOptionSet": [
|
||||
{
|
||||
"name": "release",
|
||||
"arkOptions": {
|
||||
"obfuscation": {
|
||||
"ruleOptions": {
|
||||
"enable": false,
|
||||
"files": [
|
||||
"./obfuscation-rules.txt"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
"targets": [
|
||||
{
|
||||
"name": "default"
|
||||
},
|
||||
{
|
||||
"name": "ohosTest",
|
||||
}
|
||||
]
|
||||
}
|
||||
23
harmony-configs/entry/obfuscation-rules.txt
Normal file
23
harmony-configs/entry/obfuscation-rules.txt
Normal file
@@ -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
harmony-configs/entry/oh-package.json5
Normal file
10
harmony-configs/entry/oh-package.json5
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "entry",
|
||||
"version": "1.0.0",
|
||||
"description": "Please describe the basic information.",
|
||||
"main": "",
|
||||
"author": "",
|
||||
"license": "",
|
||||
"dependencies": {}
|
||||
}
|
||||
|
||||
92
harmony-configs/entry/src/main/module.json5
Normal file
92
harmony-configs/entry/src/main/module.json5
Normal file
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"module": {
|
||||
"name": "entry",
|
||||
"type": "entry",
|
||||
"description": "$string:module_desc",
|
||||
"mainElement": "EntryAbility",
|
||||
"deviceTypes": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"2in1"
|
||||
],
|
||||
"deliveryWithInstall": true,
|
||||
"installationFree": false,
|
||||
"pages": "$profile:main_pages",
|
||||
"abilities": [
|
||||
{
|
||||
"name": "EntryAbility",
|
||||
"srcEntry": "./ets/entryability/EntryAbility.ets",
|
||||
"description": "$string:EntryAbility_desc",
|
||||
"icon": "$media:layered_image",
|
||||
"label": "$string:EntryAbility_label",
|
||||
"startWindowIcon": "$media:startIcon",
|
||||
"startWindowBackground": "$color:start_window_background",
|
||||
"exported": true,
|
||||
"skills": [
|
||||
{
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
],
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"definePermissions": [
|
||||
{
|
||||
"name": "ohos.permission.WRITE_USER_STORAGE",
|
||||
"description": "允许应用写入用户存储",
|
||||
"grantMode": "user_grant"
|
||||
},
|
||||
{
|
||||
"name": "ohos.permission.READ_USER_STORAGE",
|
||||
"description": "允许应用创建文件目录",
|
||||
"grantMode": "user_grant"
|
||||
}
|
||||
|
||||
],
|
||||
"requestPermissions": [
|
||||
{
|
||||
"name": "ohos.permission.INTERNET"
|
||||
},
|
||||
{
|
||||
"name": "ohos.permission.LOCATION",
|
||||
"reason": "$string:permissionsReason",
|
||||
"usedScene": {
|
||||
"abilities": ["EntryAbility"],
|
||||
"when": "always"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name":"ohos.permission.CAMERA",
|
||||
"reason":"$string:Camera",
|
||||
"usedScene":{}
|
||||
},
|
||||
{
|
||||
"name":"ohos.permission.MICROPHONE",
|
||||
"reason":"$string:Voice",
|
||||
"usedScene":{
|
||||
"abilities":["EntryAbility"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name":"ohos.permission.WRITE_USER_STORAGE",
|
||||
"reason":"$string:SaveFile",
|
||||
"usedScene":{
|
||||
"abilities":["com.example.MainAbility"],
|
||||
"when": "inuse"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name":"ohos.permission.READ_USER_STORAGE",
|
||||
"reason":"$string:mkdir",
|
||||
"usedScene":{
|
||||
"abilities":["com.example.MainAbility"],
|
||||
"when": "inuse"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user