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{
17  "module": {
18    "name": "phone",
19    "type": "entry",
20    "srcEntry": "./ets/Application/AbilityStage.ts",
21    "description": "$string:entry_desc",
22    "mainElement": "com.ohos.camera.MainAbility",
23    "deviceTypes": [
24      "default"
25    ],
26    "deliveryWithInstall": true,
27    "installationFree": false,
28    "pages": "$profile:main_pages",
29    "metadata": [
30      {
31        "name": "ArkTSPartialUpdate",
32        "value": "true"
33      }
34    ],
35    "requestPermissions": [
36      {
37        "name": "ohos.permission.MEDIA_LOCATION"
38      },
39      {
40        "name": "ohos.permission.INTERNET"
41      },
42      {
43        "name": "ohos.permission.MODIFY_AUDIO_SETTINGS"
44      },
45      {
46        "name": "ohos.permission.READ_IMAGEVIDEO"
47      },
48      {
49        "name": "ohos.permission.WRITE_IMAGEVIDEO"
50      },
51      {
52        "name": "ohos.permission.GET_BUNDLE_INFO"
53      },
54      {
55        "name": "ohos.permission.CAMERA"
56      },
57      {
58        "name": "ohos.permission.MICROPHONE"
59      },
60      {
61        "name": "ohos.permission.DISTRIBUTED_DATASYNC"
62      },
63      {
64        "name": "ohos.permission.LOCATION"
65      },
66      {
67        "name": "ohos.permission.LOCATION_IN_BACKGROUND"
68      },
69      {
70        "name": "ohos.permission.APPROXIMATELY_LOCATION"
71      },
72      {
73        "name": "ohos.permission.ACCESS_SERVICE_DM"
74      },
75      {
76        "name": "ohos.permission.PROXY_AUTHORIZATION_URI"
77      }
78    ],
79    "abilities": [
80      {
81        "name": "com.ohos.camera.MainAbility",
82        "srcEntrance": "./ets/MainAbility/MainAbility.ts",
83        "startWindowIcon": "$media:icon",
84        "startWindowBackground": "$color:startWindowBackground",
85        "launchType": "singleton",
86        "description": "$string:mainability_description",
87        "icon": "$media:icon",
88        "label": "$string:app_name",
89        "visible": true,
90        "skills": [
91          {
92            "entities": [
93              "entity.system.home"
94            ],
95            "actions": [
96              "action.system.home",
97              "ohos.want.action.imageCapture",
98              "ohos.want.action.videoCapture"
99            ],
100            "uris": [
101              {
102                "scheme": "file",
103                "pathStartWith": "file:\/\/"
104              },
105              {
106                "scheme": "",
107                "type": ""
108              }
109            ]
110          }
111        ],
112        "supportWindowMode": [
113          "fullscreen"
114        ]
115      }
116    ],
117    "extensionAbilities": [
118      {
119        "name": "com.ohos.camera.FormAbility",
120        "srcEntrance": "./ets/FormAbility/FormAbility.ts",
121        "label": "$string:app_name",
122        "description": "$string:app_name",
123        "type": "form",
124        "metadata": [
125          {
126            "name": "ohos.extension.form",
127            "resource": "$profile:form_config"
128          }
129        ]
130      },
131      {
132        "name": "com.ohos.camera.ExtensionPickerAbility",
133        "srcEntrance": "./ets/MainAbility/ExtensionPickerAbility.ts",
134        "label": "$string:app_name",
135        "description": "ExtensionPickerAbility",
136        "visible": true,
137        "type": "sysPicker/camera",
138        "skills": [
139          {
140            "actions": [
141              "ohos.want.action.imageCapture",
142              "ohos.want.action.videoCapture",
143              "collaborationFwk.CameraAbility.TakePhoto"
144            ],
145            "uris": [
146              {
147                "scheme": "file",
148                "pathStartWith": "file:\/\/"
149              },
150              {
151                "scheme": "",
152                "type": ""
153              }
154            ]
155          }
156        ],
157        "metadata": [
158          {
159            "name": "collaborationService",
160            "value": "true",
161            "resource": "$profile:form_config"
162          }
163        ]
164      }
165    ]
166  }
167}