初始提交
This commit is contained in:
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