diff --git a/modulecheck/BUILD.gn b/modulecheck/BUILD.gn index 828ff8af4880ee54be83ae2240cb5c1a1e0d961b..c5fe7f7cbda0836fbebee8dc3753d95e954cc9ce 100644 --- a/modulecheck/BUILD.gn +++ b/modulecheck/BUILD.gn @@ -77,3 +77,8 @@ ohos_prebuilt_etc("configurationSchema_json") { source = "configuration.json" install_enable = false } + +ohos_prebuilt_etc("startWindow__json") { + source = "startWindow.json" + install_enable = false +} diff --git a/modulecheck/startWindow.json b/modulecheck/startWindow.json new file mode 100644 index 0000000000000000000000000000000000000000..3b38f7b4e32feb090e6a980b2bc723faabf18666 --- /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