module.json5 3.0 KB

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