module.json 1.4 KB
Newer Older
Mupceet's avatar
Mupceet 已提交
1 2 3 4 5 6 7 8
{
  "module": {
    "name": "phone",
    "type": "entry",
    "srcEntrance": "./ets/Application/AbilityStage.ts",
    "description": "$string:entry_desc",
    "mainElement": "MainAbility",
    "deviceTypes": [
S
add  
shilei 已提交
9
      "tablet",
10
      "default",
Mupceet's avatar
Mupceet 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
      "phone",
      "tablet"
    ],
    "deliveryWithInstall": true,
    "installationFree": false,
    "pages": "$profile:main_pages",
    "uiSyntax": "ets",
    "abilities": [
      {
        "name": "com.example.myapplicationxtsd.MainAbility",
        "srcEntrance": "./ets/MainAbility/MainAbility.ts",
        "description": "$string:entry_desc",
        "icon": "$media:icon",
        "label": "$string:entry_desc",
        "visible": true,
        "skills": [
          {
            "entities": [
              "entity.system.home"
            ],
            "actions": [
              "action.system.home"
            ]
          }
        ]
      }
    ],
    "requestPermissions": [
      {
      "name": "ohos.permission.SYSTEM_FLOAT_WINDOW",
      "reason": "need use ohos.permission.SYSTEM_FLOAT_WINDOW"
      },
      {
      "name": "ohos.permission.CAPTURE_SCREEN",
      "reason": "need use ohos.permission.SYSTEM_FLOAT_WINDOW"
Mupceet's avatar
Mupceet 已提交
46 47 48 49
      },
      {
        "name": "ohos.permission.WRITE_ACCESSIBILITY_CONFIG",
        "reason": "need use ohos.permission.WRITE_ACCESSIBILITY_CONFIG"
Mupceet's avatar
Mupceet 已提交
50 51 52
      }
    ]
  }
53
}