diff --git a/modulecheck/BUILD.gn b/modulecheck/BUILD.gn index cfaf3153b90df5bf74f66c496ed6f60bb8b80544..bb4a9530b796e9d3422e1ba4edda187174163f3b 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 0000000000000000000000000000000000000000..6d8f163c3a3375cc1e696c6cdc770e46587854bd --- /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 2be2661e2daf3573fb7fb03e330777dd552aca01..fdd0dfae80bfa741d5ef80d3efd45437ffa1d7ee 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",