• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2025 Huawei Device 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",
18    "type": "entry",
19    "description": "$string:module_desc",
20    "mainElement": "EntryAbility",
21    "srcEntry": "./ets/MyAbilityStage.ets",
22    "deviceTypes": [],
23    "deliveryWithInstall": true,
24    "installationFree": false,
25    "pages": "$profile:main_pages",
26    "abilities": [
27      {
28        "name": "EntryAbility",
29        "srcEntry": "./ets/entryability/EntryAbility.ets",
30        "description": "$string:EntryAbility_desc",
31        "icon": "$media:layered_image",
32        "label": "$string:EntryAbility_label",
33        "startWindowIcon": "$media:startIcon",
34        "startWindowBackground": "$color:start_window_background",
35        "exported": true,
36        "skills": [
37          {
38            "entities": [
39              "entity.system.home"
40            ],
41            "actions": [
42              "action.system.home"
43            ]
44          }
45        ]
46      },
47      {
48        "name": "EntryAbility1",
49        "srcEntry": "./ets/entryability1/EntryAbility1.ets",
50        "description": "$string:EntryAbility1_desc",
51        "icon": "$media:layered_image",
52        "label": "$string:EntryAbility1_label",
53        "startWindowIcon": "$media:startIcon",
54        "startWindowBackground": "$color:start_window_background",
55        "exported": false
56      },
57      {
58        "name": "EntryAbility2",
59        "srcEntry": "./ets/entryability2/EntryAbility2.ets",
60        "description": "$string:EntryAbility2_desc",
61        "icon": "$media:layered_image",
62        "label": "$string:EntryAbility2_label",
63        "exported": true,
64        "startWindowIcon": "$media:startIcon",
65        "startWindowBackground": "$color:start_window_background",
66        "skills": [
67          {
68            "actions": [
69              "action.system.home"
70            ],
71            "entities": [
72              "entity.system.home"
73            ]
74          }
75        ]
76      },
77      {
78        "name": "EntryAbility3",
79        "srcEntry": "./ets/entryability3/EntryAbility3.ets",
80        "description": "$string:EntryAbility3_desc",
81        "icon": "$media:layered_image",
82        "label": "$string:EntryAbility3_label",
83        "startWindowIcon": "$media:startIcon",
84        "exported": true,
85        "permissions": [
86          'ohos.permission.CAMERA'
87        ],
88        "startWindowBackground": "$color:start_window_background"
89      },
90      {
91        "name": "EntryAbility4",
92        "srcEntry": "./ets/entryability4/EntryAbility4.ets",
93        "description": "$string:EntryAbility4_desc",
94        "icon": "$media:layered_image",
95        "label": "$string:EntryAbility4_label",
96        "startWindowIcon": "$media:startIcon",
97        "startWindowBackground": "$color:start_window_background",
98        "exported": true,
99        "launchType": "singleton",
100        "skills": [
101          {
102            "actions": [
103              "ohos.want.action.viewData"
104            ],
105            "entities": [
106              "entity.system.browsable"
107            ],
108            "domainVerify": true,
109            "uris": [
110              {
111                "scheme": "example",
112                "host": "test.open.link",
113                "port": "8080",
114                "path": "test1"
115              }
116            ]
117          }
118        ]
119      },
120      {
121        "name": "EntryAbility5",
122        "srcEntry": "./ets/entryability5/EntryAbility5.ets",
123        "description": "$string:EntryAbility5_desc",
124        "icon": "$media:layered_image",
125        "label": "$string:EntryAbility5_label",
126        "startWindowIcon": "$media:startIcon",
127        "startWindowBackground": "$color:start_window_background",
128        "exported": false,
129        "launchType": "singleton",
130        "skills": [
131          {
132            "actions": [
133              "ohos.want.action.viewData"
134            ],
135            "entities": [
136              "entity.system.browsable"
137            ],
138            "domainVerify": true,
139            "uris": [
140              {
141                "scheme": "example",
142                "host": "test.open.link",
143                "port": "8080",
144                "path": "test"
145              }
146            ]
147          }
148        ]
149      }
150    ],
151    "requestPermissions": [
152      {
153        "name": "ohos.permission.PREPARE_APP_TERMINATE"
154      }
155    ]
156  }
157}