From 29b472123ff59f6ec5d627040381a6625059bfad Mon Sep 17 00:00:00 2001 From: tongzihan <15671769870@163.com> Date: Thu, 10 Jul 2025 20:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entry/src/main/module.json5 | 22 ++++----- entry/src/main/module.json5 | 45 ++++++++----------- 2 files changed, 30 insertions(+), 37 deletions(-) diff --git a/dependence/PulledUpApplication/entry/src/main/module.json5 b/dependence/PulledUpApplication/entry/src/main/module.json5 index abcc58c..aa0ca22 100644 --- a/dependence/PulledUpApplication/entry/src/main/module.json5 +++ b/dependence/PulledUpApplication/entry/src/main/module.json5 @@ -7,8 +7,7 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone", - "tablet" + "phone" ], "deliveryWithInstall": true, "installationFree": false, @@ -27,19 +26,22 @@ "exported": true, // [EndExclude deep_link_json] "skills": [ + // [StartExclude deep_link_json] + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + }, + // [EndExclude deep_link_json] { "entities": [ - // [StartExclude deep_link_json] - "entity.system.home", - "entity.system.default", - // [EndExclude deep_link_json] "entity.system.browsable" ], "actions": [ - // [StartExclude deep_link_json] - "action.system.home", - // [EndExclude deep_link_json] - "ohos.want.action.viewData", + "ohos.want.action.viewData" ], "uris": [ { diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index aa0ca22..e464848 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -1,7 +1,5 @@ -// [Start deep_link_json] { "module": { - // [StartExclude deep_link_json] "name": "entry", "type": "entry", "description": "$string:module_desc", @@ -12,10 +10,8 @@ "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", - // [EndExclude deep_link_json] "abilities": [ { - // [StartExclude deep_link_json] "name": "EntryAbility", "srcEntry": "./ets/entryability/EntryAbility.ets", "description": "$string:EntryAbility_desc", @@ -24,9 +20,7 @@ "startWindowIcon": "$media:startIcon", "startWindowBackground": "$color:start_window_background", "exported": true, - // [EndExclude deep_link_json] "skills": [ - // [StartExclude deep_link_json] { "entities": [ "entity.system.home" @@ -34,28 +28,22 @@ "actions": [ "action.system.home" ] - }, - // [EndExclude deep_link_json] - { - "entities": [ - "entity.system.browsable" - ], - "actions": [ - "ohos.want.action.viewData" - ], - "uris": [ - { - "scheme": "appScheme", - "host": "www.test.com", - "port": "80", - "path": "path1" - } - ] } ] } ], - // [StartExclude deep_link_json] + "requestPermissions": [ + { + "name": "ohos.permission.DISTRIBUTED_DATASYNC", + "reason": "$string:distributed_permission", + "usedScene": { + "abilities": [ + "EntryAbility" + ], + "when": "inuse" + } + } + ], "extensionAbilities": [ { "name": "EntryBackupAbility", @@ -70,7 +58,10 @@ ], } ], - // [EndExclude deep_link_json] + // [Start query_schemes] + "querySchemes": [ + "app1Scheme" + ], + // [End query_schemes] } -} -// [End deep_link_json] \ No newline at end of file +} \ No newline at end of file -- Gitee