• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "title": "JSON schema for appStartup_inner.json",
3  "$schema": "http://json-schema.org/draft-07/schema#",
4  "type": "object",
5  "additionalProperties": false,
6  "propertyNames": {
7    "enum": [
8      "startupTasks",
9      "appPreloadHintStartupTasks"
10    ]
11  },
12  "properties": {
13    "startupTasks": {
14      "type": "array",
15      "uniqueItems": true,
16      "items": {
17        "type": "object",
18        "propertyNames": {
19          "enum": [
20            "name",
21            "srcEntry",
22            "dependencies",
23            "excludeFromAutoStart",
24            "runOnThread",
25            "waitOnMainThread"
26          ]
27        },
28        "required": [
29          "name",
30          "srcEntry",
31          "excludeFromAutoStart"
32        ],
33        "properties": {
34          "name": {
35            "description": "Indicates the name of the har/hsp startup task.",
36            "type": "string",
37            "pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
38            "maxLength": 127
39          },
40          "srcEntry": {
41            "description": "Indicates the js code path corresponding to the har/hsp startup task.",
42            "type": "string",
43            "maxLength": 127
44          },
45          "dependencies": {
46            "description": "Indicates the dependencies of the har/hsp startup task.",
47            "type": "array",
48            "uniqueItems": true,
49            "items": {
50              "type": "string"
51            },
52            "default": []
53          },
54          "excludeFromAutoStart": {
55            "description": "Har/hsp startup task does not support automatic start, excludeFromAutoStart can only be set to true.",
56            "type": "boolean",
57            "enum": [
58              true
59            ]
60          },
61          "runOnThread": {
62            "description": "Indicates the running thread of the har/hsp startup task.",
63            "type": "string",
64            "enum": [
65              "mainThread",
66              "taskPool"
67            ],
68            "default": "mainThread"
69          },
70          "waitOnMainThread": {
71            "description": "Indicates whether the har/hsp startup task block the main thread.",
72            "type": "boolean",
73            "default": true
74          }
75        }
76      }
77    },
78    "appPreloadHintStartupTasks": {
79      "type": "array",
80      "uniqueItems": true,
81      "items": {
82        "type": "object",
83        "propertyNames": {
84          "enum": [
85            "name",
86            "srcEntry",
87            "dependencies",
88            "excludeFromAutoStart",
89            "runOnThread"
90          ]
91        },
92        "required": [
93          "name",
94          "srcEntry",
95          "excludeFromAutoStart",
96          "runOnThread"
97        ],
98        "properties": {
99          "name": {
100            "description": "Indicates the name of the har/hsp preload task.",
101            "type": "string",
102            "pattern": "^[a-zA-Z][0-9a-zA-Z_.]+$",
103            "maxLength": 127
104          },
105          "srcEntry": {
106            "description": "Indicates the js code path corresponding to the har/hsp preload task.",
107            "type": "string",
108            "maxLength": 127
109          },
110          "dependencies": {
111            "description": "Indicates the dependencies of the har/hsp preload task.",
112            "type": "array",
113            "uniqueItems": true,
114            "items": {
115              "type": "string"
116            },
117            "default": []
118          },
119          "excludeFromAutoStart": {
120            "description": "Har/hsp preload task does not support automatic start, excludeFromAutoStart can only be set to true.",
121            "type": "boolean",
122            "enum": [
123              true
124            ]
125          },
126          "runOnThread": {
127            "description": "Indicates the running thread, preload task runs only on child thread.",
128            "type": "string",
129            "enum": [
130              "taskPool"
131            ]
132          }
133        }
134      }
135    }
136  }
137}