config.json 2.3 KB
Newer Older
M
mamingshuai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{
  "app": {
    "bundleName": "com.example.mybatteryapp",
    "vendor": "example",
    "version": {
      "code": 1,
      "name": "1.0"
    },
    "apiVersion": {
      "compatible": 4,
      "target": 5
    }
  },
  "deviceConfig": {},
  "module": {
    "package": "com.example.mybatteryapp",
17
    "name": ".entry",
M
mamingshuai 已提交
18 19 20 21 22 23 24 25 26 27 28 29
    "deviceType": [
      "phone"
    ],
    "distro": {
      "deliveryWithInstall": true,
      "moduleName": "entry",
      "moduleType": "entry"
    },
    "abilities": [
      {
        "skills": [
          {
30 31 32 33 34 35
              "entities": [
                  "entity.system.home"
              ],
              "actions": [
                  "action.system.home"
              ]
M
mamingshuai 已提交
36 37
          }
        ],
38 39 40 41 42
        "orientation": "unspecified",
        "formsEnabled": false,
        "name": ".MainAbility",
        "srcLanguage": "js",
        "srcPath": "MainAbility",
M
mamingshuai 已提交
43
        "icon": "$media:icon",
44 45
        "description": "$string:MainAbility_desc",
        "label": "$string:MainAbility_label",
M
mamingshuai 已提交
46
        "type": "page",
47 48 49 50 51 52 53 54 55 56 57 58 59 60
        "visible": true,
        "launchType": "standard"
      },
      {
        "orientation": "unspecified",
        "formsEnabled": false,
        "name": ".TestAbility",
        "srcLanguage": "js",
        "srcPath": "TestAbility",
        "icon": "$media:icon",
        "description": "$string:TestAbility_desc",
        "label": "$string:TestAbility_label",
        "type": "page",
        "visible": true,
M
mamingshuai 已提交
61 62 63 64 65 66 67 68 69 70 71 72 73
        "launchType": "standard"
      }
    ],
    "js": [
      {
        "pages": [
          "pages/index/index"
        ],
        "name": "default",
        "window": {
          "designWidth": 720,
          "autoDesignWidth": false
        }
74 75 76 77 78 79 80 81 82 83
      },
      {
        "pages": [
          "pages/index/index"
        ],
        "name": ".TestAbility",
        "window": {
          "designWidth": 720,
          "autoDesignWidth": false
        }
M
mamingshuai 已提交
84
      }
L
logic42 已提交
85 86 87 88 89 90
    ],
    "reqPermissions": [
      {
        "name": "ohos.permission.RUNNING_LOCK",
        "reason": "use ohos.permission.RUNNING_LOCK"
      }
91 92 93 94 95 96 97
    ],
    "testRunner": {
      "name": "OpenHarmonyTestRunner",
      "srcPath": "TestRunner"
    },
    "mainAbility":".MainAbility",
    "srcPath":""
M
mamingshuai 已提交
98
  }
L
logic42 已提交
99
}