diff --git a/AppScope/app.json5 b/AppScope/app.json5 new file mode 100644 index 0000000..059069b --- /dev/null +++ b/AppScope/app.json5 @@ -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" + } +} diff --git a/hvigor/hvigor-config.json5 b/hvigor/hvigor-config.json5 index 23dce11..4cbdf16 100644 --- a/hvigor/hvigor-config.json5 +++ b/hvigor/hvigor-config.json5 @@ -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" } } diff --git a/permissionmanager/src/main/module.json5 b/permissionmanager/src/main/module.json5 new file mode 100644 index 0000000..28b07e6 --- /dev/null +++ b/permissionmanager/src/main/module.json5 @@ -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" + } + ] + } +}