• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-2023 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{
17  "module": {
18    "name": "entry",
19    "type": "entry",
20    "srcEntry": "./ets/Application/MyAbilityStage.ts",
21    "description": "$string:entry_desc",
22    "mainElement": "LauncherAbility",
23    "deviceTypes": [
24      "default",
25      "tablet"
26    ],
27    "deliveryWithInstall": true,
28    "installationFree": false,
29    "pages": "$profile:main_pages",
30    "abilities": [
31      {
32        "name": "MainAbility",
33        "srcEntrance": "./ets/MainAbility/MainAbility.ts",
34        "description": "$string:MainAbility_desc",
35        "icon": "$media:icon",
36        "label": "$string:MainAbility_label",
37        "startWindowIcon": "$media:icon",
38        "startWindowBackground": "$color:pearl",
39        "visible": true,
40      },
41      {
42        "name": "LauncherAbility",
43        "srcEntrance": "./ets/LauncherAbility/LauncherAbility.ts",
44        "description": "$string:LauncherAbility_desc",
45        "icon": "$media:icon",
46        "label": "$string:LauncherAbility_label",
47        "startWindowIcon": "$media:iconBig",
48        "startWindowBackground": "$color:pearl",
49        "visible": true,
50        "skills": [
51          {
52            "entities": [
53              "entity.system.home"
54            ],
55            "actions": [
56              "action.system.home"
57            ]
58          }
59        ]
60      }
61    ],
62    "requestPermissions": [
63      {
64        "name": "ohos.permission.COMMONEVENT_STICKY"
65      },
66      {
67        "name": "ohos.permission.REQUIRE_FORM"
68      },
69      {
70        "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
71      }
72    ],
73    "extensionAbilities": [
74      {
75        "name": "EntryFormAbility",
76        "srcEntry": "./ets/entryformability/EntryFormAbility.ts",
77        "label": "$string:EntryFormAbility_label",
78        "description": "$string:EntryFormAbility_desc",
79        "type": "form",
80        "metadata": [
81          {
82            "name": "ohos.extension.form",
83            "resource": "$profile:form_config"
84          }
85        ]
86      }
87    ]
88  }
89}