module.json 1.6 KB
Newer Older
W
weiyufeng 已提交
1 2 3 4 5
{
    "module": {
        "name": "phone",
        "type": "entry",
        "srcEntrance": "./ets/Application/AbilityStage.ts",
C
caochuan 已提交
6
        "description": "$string:phone_entry_dsc",
W
weiyufeng 已提交
7 8
        "mainElement": "MainAbility",
        "deviceTypes": [
C
caochuan 已提交
9 10
            "tablet",
            "default",
T
txl 已提交
11
            "phone"
W
weiyufeng 已提交
12 13 14 15 16 17 18
        ],
        "deliveryWithInstall": true,
        "installationFree": false,
        "uiSyntax": "ets",
        "pages": "$profile:main_pages",
        "abilities": [
            {
C
caochuan 已提交
19
                "name": "com.example.myapplication.MainAbility",
W
weiyufeng 已提交
20
                "srcEntrance": "./ets/MainAbility/MainAbility.ts",
C
caochuan 已提交
21
                "description": "$string:phone_entry_main",
W
weiyufeng 已提交
22
                "icon": "$media:icon",
C
caochuan 已提交
23
                "label": "$string:entry_label",
W
weiyufeng 已提交
24 25 26 27 28 29 30
                "visible": true,
                "orientation": "portrait",
                "skills": [
                    {
                        "actions": [
                            "action.system.home"
                        ],
C
caochuan 已提交
31
                        "entities": [
W
weiyufeng 已提交
32 33 34 35 36 37
                            "entity.system.home"
                        ]
                    }
                ]
            }
        ],
C
caochuan 已提交
38
        "requestPermissions": [
W
weiyufeng 已提交
39 40
            {
                "name": "ohos.permission.MEDIA_LOCATION",
C
caochuan 已提交
41
                "reason": "use ohos.permission.MEDIA_LOCATION"
W
weiyufeng 已提交
42 43 44
            },
            {
                "name": "ohos.permission.READ_MEDIA",
C
caochuan 已提交
45
                "reason": "use ohos.permission.READ_MEDIA"
W
weiyufeng 已提交
46 47 48
            },
            {
                "name": "ohos.permission.WRITE_MEDIA",
C
caochuan 已提交
49
                "reason": "use ohos.permission.WRITE_MEDIA"
W
weiyufeng 已提交
50 51 52
            }
        ]
    }
C
caochuan 已提交
53
}