Support ide compile

Signed-off-by: chennian <chennian1@huawei.com>
Change-Id: I021f4ee32c043d2737cb2b974deddbf397cff79d
This commit is contained in:
chennian 2023-10-24 22:24:11 +08:00
parent 2744407906
commit b00d39da7a
3 changed files with 133 additions and 15 deletions

28
AppScope/app.json5 Normal file
View File

@ -0,0 +1,28 @@
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{
"app": {
"bundleName": "com.ohos.permissionmanager",
"vendor": "example",
"versionCode": 1000030,
"versionName": "1.3.0",
"icon": "$media:app_icon",
"label": "$string:app_name",
"minAPIVersion": 10,
"targetAPIVersion": 10,
"distributedNotificationEnabled": true,
"apiReleaseType": "Beta5"
}
}

View File

@ -14,21 +14,8 @@
*/
{
"hvigorVersion": "file:../dependencies/hvigor-2.5.0-s.tgz",
"hvigorVersion": "3.0.2",
"dependencies": {
"@ohos/hvigor-ohos-plugin": "file:../dependencies/hvigor-ohos-plugin-2.5.0-s.tgz",
"rollup": "file:../dependencies/rollup.tgz"
},
"execution": {
// "daemon": true, /* Enable daemon compilation. Default: true */
// "incremental": true, /* Enable incremental compilation. Default: true */
// "parallel": true, /* Enable parallel compilation. Default: true */
// "typeCheck": false, /* Enable typeCheck. Default: false */
},
"logging": {
// "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
},
"debugging": {
// "stacktrace": false /* Disable stacktrace compilation. Default: false */
"@ohos/hvigor-ohos-plugin": "3.0.2"
}
}

View File

@ -0,0 +1,103 @@
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{
"module": {
"name": "permissionmanager",
"type": "feature",
"srcEntry": "./ets/Application/AbilityStage.ts",
"description": "$string:permissionmanager_desc",
"mainElement": "MainAbility",
"deviceTypes": [
"default",
"tablet",
"2in1"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "true"
}
],
"abilities": [
{
"name": "com.ohos.permissionmanager.MainAbility",
"startWindowBackground": "$color:default_background_color",
"startWindowIcon": "$media:app_icon",
"srcEntry": "./ets/MainAbility/MainAbility.ts",
"description": "$string:MainAbility_desc",
"icon": "$media:app_icon",
"label": "$string:MainAbility_label",
"exported": false,
"launchType": "singleton",
"orientation": "auto_rotation_restricted"
}
],
"extensionAbilities": [
{
"icon": "$media:app_icon",
"name": "com.ohos.permissionmanager.GrantAbility",
"srcEntry": "./ets/ServiceExtAbility/ServiceExtAbility.ts",
"type": "service",
"exported": true
},
{
"icon": "$media:app_icon",
"name": "com.ohos.permissionmanager.GlobalExtAbility",
"srcEntry": "./ets/GlobalExtAbility/GlobalExtAbility.ts",
"type": "service",
"exported": true
},
{
"icon": "$media:icon",
"name": "com.ohos.permissionmanager.SecurityExtAbility",
"srcEntry": "./ets/SecurityExtAbility/SecurityExtAbility.ts",
"type": "service",
"exported": true
}
],
"requestPermissions": [
{
"name": "ohos.permission.GET_SENSITIVE_PERMISSIONS"
},
{
"name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
},
{
"name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.PERMISSION_USED_STATS"
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG"
},
{
"name": "ohos.permission.MANAGE_CAMERA_CONFIG"
},
{
"name": "ohos.permission.GET_INSTALLED_BUNDLE_LIST"
}
]
}
}