config.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "app": {
  3. "vendor": "example",
  4. "bundleName": "com.fujica.abk",
  5. "version": {
  6. "code": 1000000,
  7. "name": "1.0.0"
  8. }
  9. },
  10. "deviceConfig": {},
  11. "module": {
  12. "allowClassMap": true,
  13. "reqPermissions": [
  14. {
  15. "name": "ohos.permission.LOCATION",
  16. "reason": "需要定位权限以在地图上显示当前位置",
  17. "usedScene": {
  18. "ability": [
  19. "com.fujica.abk.MainAbility"
  20. ],
  21. "when": "inuse"
  22. }
  23. },
  24. {
  25. "name": "ohos.permission.APPROXIMATELY_LOCATION",
  26. "reason": "需要大致位置权限",
  27. "usedScene": {
  28. "ability": [
  29. "com.fujica.abk.MainAbility"
  30. ],
  31. "when": "inuse"
  32. }
  33. },
  34. {
  35. "name": "ohos.permission.INTERNET",
  36. "reason": "access internet",
  37. "usedScene": {
  38. "ability": [
  39. "com.fujica.abk.MainAbility"
  40. ],
  41. "when": "always"
  42. }
  43. },
  44. {
  45. "name": "ohos.permission.GET_NETWORK_INFO",
  46. "reason": "GET_NETWORK_INFO",
  47. "usedScene": {
  48. "ability": [
  49. "com.fujica.abk.MainAbility"
  50. ],
  51. "when": "always"
  52. }
  53. }
  54. ],
  55. "metaData":{
  56. "customizeData":[
  57. {
  58. "name": "hwc-theme",
  59. "value": "androidhwext:style/Theme.Emui.Light.NoTitleBar",
  60. "extra": ""
  61. }
  62. ]
  63. },
  64. "mainAbility": "com.fujica.abk.MainAbility",
  65. "deviceType": [
  66. "car","phone"
  67. ],
  68. "abilities": [
  69. {
  70. "skills": [
  71. {
  72. "entities": [
  73. "entity.system.home"
  74. ],
  75. "actions": [
  76. "action.system.home"
  77. ]
  78. }
  79. ],
  80. "orientation": "landscape",
  81. "visible": true,
  82. "name": "com.fujica.abk.MainAbility",
  83. "icon": "$media:icon",
  84. "description": "$string:mainability_description",
  85. "formsEnabled": true,
  86. "label": "$string:entry_MainAbility",
  87. "type": "page",
  88. "forms": [
  89. {
  90. "jsComponentName": "widget",
  91. "isDefault": true,
  92. "scheduledUpdateTime": "10:30",
  93. "defaultDimension": "2*2",
  94. "name": "widget",
  95. "description": "This is a service widget.",
  96. "colorMode": "auto",
  97. "type": "JS",
  98. "supportDimensions": [
  99. "2*2"
  100. ],
  101. "updateEnabled": true,
  102. "updateDuration": 1
  103. }
  104. ],
  105. "launchType": "standard"
  106. }
  107. ],
  108. "distro": {
  109. "moduleType": "entry",
  110. "installationFree": true,
  111. "deliveryWithInstall": true,
  112. "moduleName": "entry"
  113. },
  114. "package": "com.fujica.abk",
  115. "name": ".MyApplication",
  116. "js": [
  117. {
  118. "pages": [
  119. "pages/index/index"
  120. ],
  121. "name": "widget",
  122. "window": {
  123. "designWidth": 720,
  124. "autoDesignWidth": true
  125. },
  126. "type": "form"
  127. }
  128. ]
  129. }
  130. }