Support ide compile

Signed-off-by: chennian <chennian1@huawei.com>
Change-Id: I66470178cfb7f38b787874813e32a63d04e2be65
This commit is contained in:
chennian 2023-10-24 22:20:15 +08:00
parent 147b3d8a89
commit a068c0a571
3 changed files with 119 additions and 2 deletions

14
AppScope/app.json5 Normal file
View File

@ -0,0 +1,14 @@
{
"app": {
"bundleName": "com.ohos.dlpmanager",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0.30",
"icon": "$media:app_icon",
"label": "$string:app_name",
"minAPIVersion": 10,
"targetAPIVersion": 10,
"distributedNotificationEnabled": true,
"apiReleaseType" : "Beta5"
}
}

103
entry/src/main/module.json5 Normal file
View File

@ -0,0 +1,103 @@
{
"module": {
"name": "entry",
"type": "entry",
"srcEntry": "./ets/Application/AbilityStage.ets",
"description": "$string:entry_desc",
"mainElement": "MainAbility",
"deviceTypes": [
"default",
"tablet",
"2in1"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "true"
}
],
"uiSyntax": "ets",
"abilities": [
{
"name": "AlertAbility",
"srcEntrance": "./ets/AlertAbility/AlertAbility.ets",
"description": "$string:MainAbility_desc",
"icon": "$media:icon",
"label": "$string:MainAbility_label",
"startWindowIcon": "$media:icon",
"startWindowBackground": "$color:white"
},
{
"name": "SaveAsAbility",
"srcEntrance": "./ets/SaveAsAbility/SaveAsAbility.ets",
"description": "$string:MainAbility_desc",
"icon": "$media:icon",
"label": "$string:MainAbility_label",
"startWindowIcon": "$media:icon",
"startWindowBackground": "$color:white",
"visible": true
},
{
"name": "MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ets",
"description": "$string:MainAbility_desc",
"icon": "$media:app_icon",
"label": "$string:MainAbility_label",
"startWindowIcon": "$media:app_icon",
"startWindowBackground": "$color:white",
"orientation": "auto_rotation_restricted",
"visible": true,
"removeMissionAfterTerminate": true
}
],
"extensionAbilities": [
{
"name": "ViewAbility",
"srcEntrance": "./ets/ViewAbility/ViewAbility.ets",
"icon": "$media:icon",
"description": "$string:ViewAbility_desc",
"type": "service",
"visible": true
},
{
"name": "DataAbility",
"srcEntrance": "./ets/DataAbility/DataAbility.ets",
"icon": "$media:icon",
"description": "$string:ViewAbility_desc",
"type": "service"
}
],
"requestPermissions": [
{
"name": "ohos.permission.READ_MEDIA"
},
{
"name": "ohos.permission.WRITE_MEDIA"
},
{
"name": "ohos.permission.ACCESS_DLP_FILE"
},
{
"name": "ohos.permission.MANAGE_LOCAL_ACCOUNTS"
},
{
"name":"ohos.permission.FILE_ACCESS_MANAGER"
},
{
"name":"ohos.permission.START_ABILIIES_FROM_BACKGROUND"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.MEDIA_LOCATION"
},
{
"name": "ohos.permission.GET_DOMAIN_ACCOUNTS"
}
]
}
}

View File

@ -13,8 +13,8 @@
* limitations under the License.
*/
{
"hvigorVersion": "2.3.0-s",
"hvigorVersion": "3.0.2",
"dependencies": {
"@ohos/hvigor-ohos-plugin": "2.3.0-s"
"@ohos/hvigor-ohos-plugin": "3.0.2"
}
}