From b602a9495d8153854539831c00de79f692f0a79c Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Sat, 21 Sep 2024 16:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BA=94=E7=94=A8=E6=8E=A5=E7=BB=AD?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E6=9D=83=E9=99=90=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/module.json5 | 11 ++++++++--- .../src/main/resources/base/element/string.json | 4 ++++ .../src/main/resources/en_US/element/string.json | 16 ++++------------ .../src/main/resources/zh_CN/element/string.json | 16 ++++------------ oh-package.json5 | 2 -- 5 files changed, 20 insertions(+), 29 deletions(-) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 9dae6fd..55c66ad 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -16,7 +16,9 @@ { "name": "EntryAbility", "continuable": true, - "continueType": ['EntryAbility_ContinueQuickStart'], + "continueType": [ + 'EntryAbility_ContinueQuickStart' + ], "launchType": "singleton", "srcEntry": "./ets/entryability/EntryAbility.ets", "description": "$string:EntryAbility_desc", @@ -52,9 +54,12 @@ { "name": "ohos.permission.DISTRIBUTED_DATASYNC", "usedScene": { - "abilities": [] + "abilities": [ + "EntryAbility" + ], + "when": "inuse" }, - "reason": "$string:EntryAbility_desc" + "reason": "$string:reason_distributed_datasync" } ] } diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 9dc500c..23f3071 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -83,6 +83,10 @@ { "name": "input_submit", "value": "提交" + }, + { + "name": "reason_distributed_datasync", + "value": "Allow the app to exchange data between different devices in application continuation scenarios" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index 9f6993d..555c7bb 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -1,17 +1,5 @@ { "string": [ - { - "name": "module_desc", - "value": "module description" - }, - { - "name": "EntryAbility_desc", - "value": "description" - }, - { - "name": "EntryAbility_label", - "value": "label" - }, { "name": "InputAbility_desc", "value": "description" @@ -19,6 +7,10 @@ { "name": "InputAbility_label", "value": "label" + }, + { + "name": "reason_distributed_datasync", + "value": "Allow the app to exchange data between different devices in application continuation scenarios" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index c33d513..ba22650 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -1,17 +1,5 @@ { "string": [ - { - "name": "module_desc", - "value": "模块描述" - }, - { - "name": "EntryAbility_desc", - "value": "description" - }, - { - "name": "EntryAbility_label", - "value": "label" - }, { "name": "InputAbility_desc", "value": "description" @@ -19,6 +7,10 @@ { "name": "InputAbility_label", "value": "label" + }, + { + "name": "reason_distributed_datasync", + "value": "允许应用在应用接续场景中不同设备间的交换数据" } ] } \ No newline at end of file diff --git a/oh-package.json5 b/oh-package.json5 index c985a35..1b9a33f 100644 --- a/oh-package.json5 +++ b/oh-package.json5 @@ -9,7 +9,5 @@ "dependencies": { }, "devDependencies": { - "@ohos/hypium": "1.0.17", - "@ohos/hamock": "1.0.1-rc2" } } \ No newline at end of file -- Gitee