From 5291cab560ef772cd913f22db8f480713db8b115 Mon Sep 17 00:00:00 2001 From: sunxuhui Date: Mon, 13 Jan 2025 15:32:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=90=AF=E5=8A=A8=E9=A1=B5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sunxuhui --- modulecheck/BUILD.gn | 5 ++++ modulecheck/module.json | 7 +++++ modulecheck/startWindow.json | 57 ++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 modulecheck/startWindow.json diff --git a/modulecheck/BUILD.gn b/modulecheck/BUILD.gn index 9424383c..35cb8f8b 100644 --- a/modulecheck/BUILD.gn +++ b/modulecheck/BUILD.gn @@ -82,3 +82,8 @@ ohos_prebuilt_etc("appStartupInnerSchema_json") { source = "appStartupInner.json" install_enable = false } + +ohos_prebuilt_etc("startWindowSchema_json") { + source = "startWindow.json" + install_enable = false +} diff --git a/modulecheck/module.json b/modulecheck/module.json index def34a10..ea89aaf6 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -355,6 +355,7 @@ "skills", "backgroundModes", "continuable", + "startWindow", "startWindowIcon", "startWindowBackground", "removeMissionAfterTerminate", @@ -639,6 +640,12 @@ "description": "Identifies whether the ability can be migrated. The default value is false.", "type": "boolean" }, + "startWindow": { + "description": "Indicates the startup page configuration. The value is the index to the resource file.", + "type": "string", + "pattern": "^[$]profile:[0-9a-zA-Z_.]+$", + "maxLength": 255 + }, "startWindowIcon": { "description": "Indicates the icon of the startup page. The value is the index to the resource file.", "type": "string", diff --git a/modulecheck/startWindow.json b/modulecheck/startWindow.json new file mode 100644 index 00000000..3b38f7b4 --- /dev/null +++ b/modulecheck/startWindow.json @@ -0,0 +1,57 @@ +{ + "title": "JSON schema for startWindow.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": true, + "required": [ + "startWindowBackgroundColor" + ], + "propertyNames": { + "enum": [ + "startWindowAppIcon", + "startWindowIllustration", + "startWindowBrandingImage", + "startWindowBackgroundColor", + "startWindowBackgroundImage", + "startWindowBackgroundImageFit" + ] + }, + "properties": { + "startWindowAppIcon": { + "description": "Indicates the app icon of the startup page. The value is the index to the resource file.", + "type": "string", + "pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$", + "maxLength": 255 + }, + "startWindowIllustration": { + "description": "Indicates the illustration of the startup page. The value is the index to the resource file.", + "type": "string", + "pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$", + "maxLength": 255 + }, + "startWindowBrandingImage": { + "description": "Indicates the branding image the startup page. The value is the index to the resource file.", + "type": "string", + "pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$", + "maxLength": 255 + }, + "startWindowBackgroundColor": { + "description": "Indicates the background color the startup page. The value is the index to the resource file.", + "type": "string", + "pattern": "^[$]color:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$", + "maxLength": 255 + }, + "startWindowBackgroundImage": { + "description": "Indicates the background image the startup page. The value is the index to the resource file.", + "type": "string", + "pattern": "^[$]media:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$", + "maxLength": 255 + }, + "startWindowBackgroundImageFit": { + "description": "Indicates the background fit the startup page. The value is the index to the resource file.", + "type": "string", + "pattern": "^[$]string:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$", + "maxLength": 255 + } + } + } \ No newline at end of file -- Gitee