• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "module": {
3        "name": "testModule",
4        "type": "entry",
5        "srcEntrance": "./ets/Application/AbilityStage.ts",
6        "description": "$string:testModule_entry_dsc",
7        "mainElement": "com.acts.request.MainAbility",
8        "deviceTypes": [
9            "default",
10            "tablet",
11            "2in1"
12        ],
13        "deliveryWithInstall": true,
14        "installationFree": false,
15        "uiSyntax": "ets",
16        "pages": "$profile:main_pages",
17        "metadata": [
18            {
19              "name": "ArkTSPartialUpdate",
20              "value": "false"
21            }
22          ],
23        "abilities": [
24            {
25                "name": "com.acts.request.MainAbility",
26                "srcEntrance": "./ets/MainAbility/MainAbility.ts",
27                "description": "$string:testModule_entry_main",
28                "icon": "$media:icon",
29                "label": "$string:entry_label",
30                "visible": true,
31                "launchType": "singleton",
32                "orientation": "portrait",
33                "skills": [
34                    {
35                        "actions": [
36                            "action.system.home"
37                        ],
38                        "entities":[
39                            "entity.system.home"
40                        ]
41                    }
42                ]
43            }
44        ],
45        "requestPermissions": [
46          {
47            "name": "ohos.permission.GET_BUNDLE_INFO",
48            "reason": "$string:permission_reason",
49            "usedScene": {
50              "abilities": ["MainAbility"],
51              "when": "always"
52            }
53          },
54          {
55            "name": "ohos.permission.READ_CALENDAR",
56            "reason": "$string:permission_reason",
57            "usedScene": {
58              "abilities": ["MainAbility"],
59              "when": "inuse"
60            }
61          },
62          {
63            "name":"ohos.permission.INTERNET",
64            "reason":"need use ohos.permission.INTERNET."
65          },
66          {"name": "ohos.permission.WRITE_MEDIA",
67            "reason": "need use ohos.permission.WRITE_MEDIA",
68            "usedScene": {
69              "ability": [
70                "com.acts.request.test.MainAbility"
71              ],
72              "when":"always"
73            }
74          },
75          {"name": "ohos.permission.READ_MEDIA",
76            "reason": "need use ohos.permission.WRITE_MEDIA",
77            "usedScene": {
78              "ability": [
79                "com.acts.request.test.MainAbility"
80              ],
81              "when":"always"
82            }
83          }
84        ],
85        "metadata": [
86          {
87            "name": "MetaData1",
88            "value": "MetaDataValue",
89            "resource": "$profile:shortcuts_config"
90          }
91        ]
92    }
93}