• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * Copyright (c) 2025 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15{
16  "module": {
17    "name": "entry_test",
18    "type": "feature",
19    "description": "$string:module_test_desc",
20    "mainElement": "TestAbility",
21    "deviceTypes": [],
22    "deliveryWithInstall": true,
23    "installationFree": false,
24    "pages": "$profile:test_pages",
25    "abilities": [
26      {
27        "name": "TestAbility",
28        "srcEntry": "./ets/testability/TestAbility.ets",
29        "description": "$string:TestAbility_desc",
30        "icon": "$media:icon",
31        "label": "$string:TestAbility_label",
32        "exported": true,
33        "startWindowIcon": "$media:icon",
34        "startWindowBackground": "$color:start_window_background",
35        "skills": [
36          {
37            "actions": [
38              "action.system.home"
39            ],
40            "entities": [
41              "entity.system.home"
42            ]
43          }
44        ]
45      },
46      {
47        "name": "MainAbility1",
48        "srcEntry": "./ets/test/MainAbility/MainAbility1.ts",
49        "description": "$string:TestAbility_desc",
50        "icon": "$media:icon",
51        "label": "$string:TestAbility_label",
52        "exported": true,
53        "startWindowIcon": "$media:icon",
54        "startWindowBackground": "$color:start_window_background",
55        "skills": [
56          {
57            "actions": [
58              "action.system.home",
59              "ohos.want.action.viewData"
60            ],
61            "entities": [
62              "entity.system.home",
63              "entity.system.browsable"
64            ],
65            "uris": [
66              {
67                "scheme": "https",
68                "host": "www.example.com"
69              }
70            ]
71          }
72        ],
73      },
74      {
75        "name": "MainAbility2",
76        "srcEntry": "./ets/test/MainAbility/MainAbility2.ts",
77        "description": "$string:TestAbility_desc",
78        "icon": "$media:icon",
79        "label": "$string:TestAbility_label",
80        "exported": false,
81        "startWindowIcon": "$media:icon",
82        "startWindowBackground": "$color:start_window_background",
83        "skills": [
84          {
85            "actions": [
86              "action.system.home"
87            ],
88            "entities": [
89              "entity.system.home"
90            ],
91          }
92        ],
93        "permissions": [
94          "ohos.permission.ACCESS_BBOX_DIR",
95          "ohos.permission.READ_HEALTH_DATA"
96        ]
97      },
98      {
99        "name": "applicationContext01",
100        "srcEntry": "./ets/test/applicationContext/applicationContext01.ts",
101        "description": "$string:TestAbility_desc",
102        "icon": "$media:icon",
103        "label": "$string:TestAbility_label",
104        "startWindowIcon": "$media:icon",
105        "startWindowBackground": "$color:start_window_background",
106        "launchType": "multiton",
107        "skills": [
108          {
109            "actions": [
110              "action.system.home",
111              "ohos.want.action.viewData"
112            ],
113            "entities": [
114              "entity.system.home",
115              "entity.system.browsable"
116            ],
117            "uris": [
118              {
119                "scheme": "https",
120                "host": "www.applicationContext01.com"
121              }
122            ]
123          }
124        ]
125      },
126      {
127        "name": "applicationContext02",
128        "srcEntry": "./ets/test/applicationContext/applicationContext02.ts",
129        "description": "$string:TestAbility_desc",
130        "icon": "$media:icon",
131        "label": "$string:TestAbility_label",
132        "startWindowIcon": "$media:icon",
133        "startWindowBackground": "$color:start_window_background",
134        "launchType": "multiton",
135        "skills": [
136          {
137            "actions": [
138              "action.system.home",
139              "ohos.want.action.viewData"
140            ],
141            "entities": [
142              "entity.system.home",
143              "entity.system.browsable"
144            ],
145            "uris": [
146              {
147                "scheme": "https",
148                "host": "www.applicationContext02.com"
149              }
150            ]
151          }
152        ]
153      },
154      {
155        "name": "applicationContext03",
156        "srcEntry": "./ets/test/applicationContext/applicationContext03.ts",
157        "description": "$string:TestAbility_desc",
158        "icon": "$media:icon",
159        "label": "$string:TestAbility_label",
160        "startWindowIcon": "$media:icon",
161        "startWindowBackground": "$color:start_window_background",
162        "launchType": "multiton",
163        "skills": [
164          {
165            "actions": [
166              "action.system.home",
167              "ohos.want.action.viewData"
168            ],
169            "entities": [
170              "entity.system.home",
171              "entity.system.browsable"
172            ],
173            "uris": [
174              {
175                "scheme": "https",
176                "host": "www.applicationContext03.com"
177              }
178            ]
179          }
180        ]
181      },
182      {
183        "name": "applicationContext04",
184        "srcEntry": "./ets/test/applicationContext/applicationContext04.ts",
185        "description": "$string:TestAbility_desc",
186        "icon": "$media:icon",
187        "label": "$string:TestAbility_label",
188        "startWindowIcon": "$media:icon",
189        "startWindowBackground": "$color:start_window_background",
190        "exported": true,
191        "launchType": "multiton",
192        "skills": [
193          {
194            "actions": [
195              "action.system.home",
196              "ohos.want.action.viewData"
197            ],
198            "entities": [
199              "entity.system.home",
200              "entity.system.browsable"
201            ],
202            "uris": [
203              {
204                "scheme": "https",
205                "host": "www.applicationContext04.com"
206              }
207            ]
208          }
209        ]
210      },
211      {
212        "name": "applicationContext05",
213        "srcEntry": "./ets/test/applicationContext/applicationContext05.ts",
214        "description": "$string:TestAbility_desc",
215        "icon": "$media:icon",
216        "label": "$string:TestAbility_label",
217        "startWindowIcon": "$media:icon",
218        "startWindowBackground": "$color:start_window_background",
219        "launchType": "multiton",
220        "skills": [
221          {
222            "actions": [
223              "action.system.home",
224              "ohos.want.action.viewData"
225            ],
226            "entities": [
227              "entity.system.home",
228              "entity.system.browsable"
229            ],
230            "uris": [
231              {
232                "scheme": "https",
233                "host": "www.applicationContext05.com"
234              }
235            ]
236          }
237        ]
238      }
239    ],
240    "extensionAbilities": [
241      {
242        "name": "UIExtensionProvider",
243        "srcEntry": "./ets/test/UIExtensionContentSession/UIExtensionContentSession.ts",
244        "description": "UIExtensionAbility",
245        "type": "embeddedUI",
246        "exported": true
247      }
248    ],
249    "requestPermissions": [
250      {
251        "name": "ohos.permission.INTERNET"
252      },
253      {
254        "name":"ohos.permission.PRIVACY_WINDOW"
255      },
256      {
257        "name":"ohos.permission.DISTRIBUTED_DATASYNC"
258      },
259    ]
260  }
261}