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