• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2024 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    "srcEntry": "./ets/Application/AbilityStage.ts",
20    "description": "$string:entry_desc",
21    "mainElement": "MainAbility",
22    "deviceTypes": [
23      "default",
24      "tablet",
25      "2in1",
26      "wearable"
27    ],
28    "deliveryWithInstall": true,
29    "installationFree": false,
30    "pages": "$profile:main_pages",
31    "uiSyntax": "ets",
32    "abilities": [
33      {
34        "continuable": true,
35        "name": "com.acts.rpcrequest.test.MainAbility",
36        "srcEntry": "./ets/MainAbility/MainAbility.ts",
37        "description": "$string:MainAbility_desc",
38        "icon": "$media:app_icon",
39        "label": "$string:MainAbility_label",
40        "orientation": "portrait",
41        "startWindowIcon": "$media:app_icon",
42        "startWindowBackground": "$color:white",
43        "exported": true,
44        "visible": true,
45        "launchType": "singleton",
46        "skills": [
47          {
48            "entities": [
49              "entity.system.home"
50            ],
51            "actions": [
52              "action.system.home"
53            ]
54          }
55        ]
56      }
57    ],
58    "extensionAbilities": [
59      {
60        "name": "com.acts.rpcrequest.test.ServiceAbility",
61        "srcEntry": "./ets/serviceability/ServiceAbility.ts",
62        "label": "$string:MainAbility_label",
63        "description": "$string:description_serviceability",
64        "type": "service",
65        "visible": true
66      }
67    ],
68    "requestPermissions": [
69      {
70        "name": "ohos.permission.GET_BUNDLE_INFO"
71      },
72      {
73        "name": "ohos.permission.DISTRIBUTED_DATASYNC"
74      },
75      {
76        "name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO"
77      },
78      {
79        "name": "ohos.permission.ACCESS_SERVICE_DM"
80      }
81    ]
82  }
83}