module.json 2.4 KB
Newer Older
C
caochuan 已提交
1 2 3 4 5
{
    "module": {
        "name": "phone",
        "type": "entry",
        "srcEntrance": "./ets/Application/AbilityStage.ts",
C
caochuan 已提交
6
        "description": "$string:phone_entry_dsc",
C
caochuan 已提交
7 8
        "mainElement": "MainAbility",
        "deviceTypes": [
C
caochuan 已提交
9 10
            "tablet",
            "default",
C
caochuan 已提交
11 12 13 14 15 16
            "phone"
        ],
        "deliveryWithInstall": true,
        "installationFree": false,
        "uiSyntax": "ets",
        "pages": "$profile:main_pages",
Z
zhouchaobo 已提交
17 18 19 20 21 22
        "metadata": [
            {
              "name": "ArkTSPartialUpdate",
              "value": "false"
            }
          ],
C
caochuan 已提交
23 24
        "abilities": [
            {
C
caochuan 已提交
25
                "name": "com.example.myapplication.MainAbility",
C
caochuan 已提交
26
                "srcEntrance": "./ets/MainAbility/MainAbility.ts",
C
caochuan 已提交
27
                "description": "$string:phone_entry_main",
C
caochuan 已提交
28
                "icon": "$media:icon",
C
caochuan 已提交
29
                "label": "$string:entry_label",
C
caochuan 已提交
30 31 32 33 34 35 36
                "visible": true,
                "orientation": "portrait",
                "skills": [
                    {
                        "actions": [
                            "action.system.home"
                        ],
C
caochuan 已提交
37
                        "entities": [
C
caochuan 已提交
38 39 40 41 42 43
                            "entity.system.home"
                        ]
                    }
                ]
            }
        ],
C
caochuan 已提交
44
        "requestPermissions": [
C
caochuan 已提交
45 46 47 48 49 50
            {
                "name": "ohos.permission.GET_BUNDLE_INFO",
                "reason": "use ohos.permission.GET_BUNDLE_INFO"
            },
            {
                "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
C
caochuan 已提交
51
                "reason": "use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
C
caochuan 已提交
52 53
            },
            {
C
caochuan 已提交
54 55
                "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS",
                "reason": "use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
C
caochuan 已提交
56 57
            },
            {
C
caochuan 已提交
58 59
                "name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS",
                "reason": "use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
C
caochuan 已提交
60 61 62
            },
            {
                "name": "ohos.permission.MEDIA_LOCATION",
C
caochuan 已提交
63
                "reason": "use ohos.permission.MEDIA_LOCATION"
C
caochuan 已提交
64 65 66
            },
            {
                "name": "ohos.permission.READ_MEDIA",
C
caochuan 已提交
67
                "reason": "use ohos.permission.READ_MEDIA"
C
caochuan 已提交
68 69 70
            },
            {
                "name": "ohos.permission.WRITE_MEDIA",
C
caochuan 已提交
71
                "reason": "use ohos.permission.WRITE_MEDIA"
C
caochuan 已提交
72 73 74
            }
        ]
    }
C
caochuan 已提交
75
}