• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "module": {
3    "name": "entry",
4    "type": "entry",
5    "srcEntrance": "./ets/Application/AbilityStage.ts",
6    "description": "$string:mainability_description",
7    "mainElement": "MainAbility",
8    "deviceTypes": [
9      "default",
10      "tablet",
11      "wearable",
12      "car",
13      "tv"
14    ],
15    "deliveryWithInstall": true,
16    "installationFree": false,
17    "pages": "$profile:main_pages",
18    "uiSyntax": "ets",
19    "metadata": [
20      {
21        "name": "ArkTSPartialUpdate",
22        "value": "true",
23      }
24    ],
25    "requestPermissions": [
26      {
27        "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND"
28      },
29      {
30        "name": "ohos.permission.READ_MEDIA"
31      },
32      {
33        "name": "ohos.permission.WRITE_MEDIA"
34      },
35      {
36        "name": "ohos.permission.WRITE_EXTERNAL_MEDIA_MEMORY"
37      },
38      {
39        "name": "ohos.permission.MEDIA_LOCATION"
40      },
41      {
42        "name": "ohos.permission.REQUIRE_FORM"
43      },
44      {
45        "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
46      },
47      {
48        "name": "ohos.permission.DISTRIBUTED_DATASYNC"
49      }
50    ],
51    "abilities": [
52      {
53        "name": "com.ohos.photos.MainAbility",
54        "srcEntrance": "./ets/MainAbility/MainAbility.ts",
55        "description": "$string:description_mainability",
56        "icon": "$media:ohos_gallery",
57        "label": "$string:app_name",
58        "visible": true,
59        "launchType": "singleton",
60        "startWindowIcon": "$media:app_icon",
61        "startWindowBackground": "$color:white",
62        "skills": [
63          {
64            "entities": [
65              "entity.system.home"
66            ],
67            "actions": [
68              "action.system.home",
69              "ohos.want.action.viewData",
70              "ohos.want.action.photoPicker"
71            ],
72            "uris": [
73              {
74                "type": "image/*"
75              },
76              {
77                "type": "video/*"
78              },
79              {
80                "type": "multipleselect"
81              },
82              {
83                "type": "singleselect"
84              }
85            ]
86          }
87        ]
88      }
89    ],
90    "extensionAbilities": [
91      {
92        "name": "com.ohos.photos.FormAbility",
93        "srcEntrance": "./ets/FormAbility/FormAbility.ts",
94        "label": "$string:form_FormAbility_label",
95        "description": "$string:app_name",
96        "type": "form",
97        "metadata": [
98          {
99            "name": "ohos.extension.form",
100            "resource": "$profile:form_config"
101          }
102        ]
103      }
104    ]
105  },
106}