From b7ef25d75fb0fa5da47b029ab9f0de226a57aa7d Mon Sep 17 00:00:00 2001 From: liuziweicom Date: Tue, 24 Oct 2023 22:08:38 +0800 Subject: [PATCH] fix code Signed-off-by: liuziweicom --- AppScope/app.json5 | 29 ++++++++++++++++++ build-profile.json5 | 4 +-- entry/src/main/module.json | 6 ---- entry/src/main/module.json5 | 59 +++++++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+), 8 deletions(-) create mode 100644 AppScope/app.json5 create mode 100644 entry/src/main/module.json5 diff --git a/AppScope/app.json5 b/AppScope/app.json5 new file mode 100644 index 0000000..bd0f24b --- /dev/null +++ b/AppScope/app.json5 @@ -0,0 +1,29 @@ +/** + * 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.useriam.authwidget", + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:app_icon", + "label": "$string:app_name", + "minAPIVersion": 10, + "targetAPIVersion": 10, + "distributedNotificationEnabled": true, + "apiReleaseType": "Beta5" + } +} diff --git a/build-profile.json5 b/build-profile.json5 index b520fc0..b0daf68 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -15,12 +15,12 @@ { "app": { - "compileSdkVersion": 10, - "compatibleSdkVersion": 10, "products": [ { "name": "default", "signingConfig": "default", + "compileSdkVersion": 10, + "compatibleSdkVersion": 10, } ] }, diff --git a/entry/src/main/module.json b/entry/src/main/module.json index d6e9e3a..4495aee 100644 --- a/entry/src/main/module.json +++ b/entry/src/main/module.json @@ -18,12 +18,6 @@ "icon": "$media:app_icon", "label": "$string:EntryAbility_label", "type": "sysDialog/userAuth", - "permissions": [ - "ohos.permission.ACCESS_PIN_AUTH", - "ohos.permission.ACCESS_BIOMETRIC", - "ohos.permission.SUPPORT_USER_AUTH", - "ohos.permission.PRIVACY_WINDOW" - ], "metadata": [ { "name": "ohos.extension.servicetype", diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 new file mode 100644 index 0000000..838fcb0 --- /dev/null +++ b/entry/src/main/module.json5 @@ -0,0 +1,59 @@ +/** + * 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": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "userauthuiextensionability", + "deviceTypes": [ + "default", + "tablet" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "extensionAbilities": [ + { + "name": "userauthuiextensionability", + "srcEntry": "./ets/extensionability/UserAuthAbility.ts", + "icon": "$media:app_icon", + "label": "$string:EntryAbility_label", + "type": "sysDialog/userAuth", + "metadata": [ + { + "name": "ohos.extension.servicetype", + "value": "commonDialog" + } + ] + } + ], + "requestPermissions": [ + { + "name": "ohos.permission.ACCESS_PIN_AUTH" + }, + { + "name": "ohos.permission.ACCESS_BIOMETRIC" + }, + { + "name": "ohos.permission.SUPPORT_USER_AUTH" + }, + { + "name": "ohos.permission.PRIVACY_WINDOW" + } + ] + } +} \ No newline at end of file -- Gitee