module.json5 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "module": {
  3. "name": "entry",
  4. "type": "entry",
  5. "description": "$string:module_desc",
  6. "mainElement": "EntryAbility",
  7. "srcEntry": "./ets/MyAbilityStage.ets",
  8. "deviceTypes": [
  9. "phone",
  10. "tablet",
  11. "2in1",
  12. "tv"
  13. ],
  14. "querySchemes": [//支付宝配置
  15. "https",
  16. "alipays",
  17. "weixin",
  18. "wxopensdk"
  19. ],
  20. "deliveryWithInstall": true,
  21. "installationFree": false,
  22. "pages": "$profile:main_pages",
  23. "metadata": [
  24. {
  25. "name": "ArkTSPartialUpdate",
  26. "value": "true"
  27. },
  28. {
  29. "name": "client_id",
  30. "value": "6917560202517406526"
  31. }
  32. ],
  33. "abilities": [
  34. {
  35. "name": "EntryAbility",
  36. "srcEntry": "./ets/entryability/EntryAbility.ets",
  37. "description": "$string:EntryAbility_desc",
  38. "icon": "$media:layered_image",
  39. "label": "$string:EntryAbility_label",
  40. "startWindowIcon": "$media:layered_image",
  41. "startWindowBackground": "$color:start_window_background",
  42. "orientation": "auto_rotation_restricted",
  43. "exported": true,
  44. "backgroundModes": [
  45. // 长时任务类型的配置项
  46. "audioPlayback"
  47. ],
  48. "skills": [
  49. {
  50. "actions": [
  51. "action.system.home",
  52. "ohos.want.action.viewData",//碰一碰分享增加
  53. "ohos.want.action.sendData"
  54. ],
  55. "uris": [
  56. {
  57. "scheme": "file",
  58. "utd": "general.audio",
  59. "maxFileSupported": 1
  60. },
  61. {
  62. "scheme": "file",
  63. "utd": "general.video",
  64. "maxFileSupported": 1
  65. },
  66. {
  67. "scheme": "file",
  68. "type": "audio/*",
  69. "linkFeature": "FileOpen",
  70. "maxFileSupported": 1
  71. },
  72. {
  73. "scheme": "file",
  74. "type": "video/*",
  75. "linkFeature": "FileOpen",
  76. "maxFileSupported": 1
  77. },
  78. ],
  79. // "domainVerify": true,//碰一碰分享增加
  80. "entities": [
  81. "entity.system.home",
  82. // "entity.system.browsable"//碰一碰分享增加
  83. ],
  84. }
  85. ]
  86. },
  87. ],
  88. "requestPermissions": [
  89. {
  90. "name": "ohos.permission.INTERNET",
  91. "usedScene": {
  92. "abilities": [
  93. "EntryAbility"
  94. ],
  95. "when": "inuse"
  96. },
  97. "reason": "$string:reason"
  98. },
  99. {
  100. "name": "ohos.permission.FILE_ACCESS_PERSIST",
  101. "reason": "$string:FILE_ACCESS_PERSIST_REASON",
  102. "usedScene": {
  103. "abilities": [
  104. "EntryAbility"
  105. ],
  106. "when": "always"
  107. }
  108. },
  109. {
  110. "name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
  111. "reason": "$string:reason_background",
  112. "usedScene": {
  113. "abilities": [
  114. "EntryAbility",
  115. ],
  116. "when": "always"
  117. }
  118. },
  119. {
  120. "name": "ohos.permission.ACCESS_CAR_DISTRIBUTED_ENGINE"
  121. },
  122. {
  123. "name": "ohos.permission.ACCESS_SERVICE_NAVIGATION_INFO"
  124. }
  125. ],
  126. }
  127. }