From b37f6fadfc4356514364e7c91e8be3688203a0e5 Mon Sep 17 00:00:00 2001 From: Axi_Beft Date: Fri, 13 Jun 2025 14:21:13 +0800 Subject: [PATCH] =?UTF-8?q?datashare=20=E9=85=8D=E7=BD=AE=E5=85=B1?= =?UTF-8?q?=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Axi_Beft --- modulecheck/BUILD.gn | 5 +++ modulecheck/crossAppSharedConfig.json | 54 +++++++++++++++++++++++++++ modulecheck/module.json | 8 ++++ 3 files changed, 67 insertions(+) create mode 100644 modulecheck/crossAppSharedConfig.json diff --git a/modulecheck/BUILD.gn b/modulecheck/BUILD.gn index cfaf3153..bb4a9530 100644 --- a/modulecheck/BUILD.gn +++ b/modulecheck/BUILD.gn @@ -97,3 +97,8 @@ ohos_prebuilt_etc("insightIntentInnerSchema_json") { source = "insightIntentInner.json" install_enable = false } + +ohos_prebuilt_etc("crossAppSharedConfigSchema_json") { + source = "crossAppSharedConfig.json" + install_enable = false +} diff --git a/modulecheck/crossAppSharedConfig.json b/modulecheck/crossAppSharedConfig.json new file mode 100644 index 00000000..6d8f163c --- /dev/null +++ b/modulecheck/crossAppSharedConfig.json @@ -0,0 +1,54 @@ +{ + "title": "JSON schema for crossAppSharedConfig.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": true, + "propertyNames": { + "enum": [ + "crossAppSharedConfig" + ] + }, + "properties": { + "crossAppSharedConfig": { + "type": "array", + "maxItems": 32, + "additionalProperties": true, + "uniqueItems": true, + "items": { + "type": "object", + "propertyNames": { + "enum": [ + "uri", + "value", + "allowList" + ] + }, + "properties": { + "uri": { + "description": "Indicates the key for shared configuration.", + "type": "string", + "pattern": "^datashareproxy://", + "maxLength": 256 + }, + "value": { + "description": "Indicates the value for shared configuration.", + "type": "string", + "maxLength": 4096 + }, + "allowList": { + "description": "List of applications allowed to read the shared configuration.", + "type": "array", + "maxItems": 256, + "uniqueItems": true, + "items": { + "type": "string", + "maxLength": 128, + "pattern": "^[0-9]+$" + }, + "default": [] + } + } + } + } + } +} \ No newline at end of file diff --git a/modulecheck/module.json b/modulecheck/module.json index 2be2661e..fdd0dfae 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -145,6 +145,7 @@ "generateBuildHash", "isolationMode", "proxyData", + "crossAppSharedConfig", "fileContextMenu", "querySchemes", "routerMap", @@ -202,6 +203,7 @@ "generateBuildHash", "isolationMode", "proxyData", + "crossAppSharedConfig", "routerMap", "appEnvironments", "appStartup" @@ -1716,6 +1718,12 @@ } } }, + "crossAppSharedConfig": { + "description": "Indicates the name of the configuration file used to identify configurations shared across applications.", + "type": "string", + "pattern": "^[$]profile:[0-9a-zA-Z_.]+$", + "maxLength": 255 + }, "fileContextMenu": { "description": "Indicates the menu profile.", "type": "string", -- Gitee