• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-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{
17  "module": {
18    "name": "entry",
19    "type": "entry",
20    "srcEntry": "./ets/application/MyAbilityStage.ets",
21    "description": "$string:entry_desc",
22    "mainElement": "MainAbility",
23    "deviceTypes": [
24      "default",
25      "tablet"
26    ],
27    "deliveryWithInstall": true,
28    "installationFree": false,
29    "pages": "$profile:main_pages",
30    "requestPermissions": [
31      {
32        "name": "ohos.permission.CAMERA",
33        "reason": "$string:use_camera_permission",
34        "usedScene": {
35          "when": "inuse"
36        }
37      },
38      {
39        "name": "ohos.permission.MEDIA_LOCATION",
40        "reason": "$string:media_location_permission",
41        "usedScene": {
42          "when": "inuse"
43        }
44      },
45      {
46        "name": "ohos.permission.READ_IMAGEVIDEO",
47        "reason": "$string:read_image_video_permission",
48        "usedScene": {
49          "when": "inuse"
50        }
51      },
52      {
53        "name": "ohos.permission.WRITE_IMAGEVIDEO",
54        "reason": "$string:write_image_video_permission",
55        "usedScene": {
56          "when": "inuse"
57        }
58      }
59    ],
60    "abilities": [
61      {
62        "name": "MainAbility",
63        "srcEntry": "./ets/mainability/MainAbility.ets",
64        "description": "$string:MainAbility_desc",
65        "icon": "$media:icon",
66        "label": "$string:MainAbility_label",
67        "startWindowIcon": "$media:icon",
68        "startWindowBackground": "$color:white",
69        "visible": true,
70        "skills": [
71          {
72            "entities": [
73              "entity.system.home"
74            ],
75            "actions": [
76              "action.system.home"
77            ]
78          }
79        ]
80      }
81    ]
82  }
83}