module.json5 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. ],
  53. "uris": [
  54. // {
  55. // "scheme": "file",
  56. // "utd":"general.video",
  57. // "linkFeature": "FileOpen",
  58. // },
  59. {
  60. "scheme": "file",
  61. "utd": "general.audio",
  62. "linkFeature": "FileOpen",
  63. },
  64. {
  65. "scheme": "file",
  66. "type": "audio/*",
  67. "linkFeature": "FileOpen",
  68. "maxFileSupported": 1
  69. }
  70. ],
  71. "entities": [
  72. "entity.system.home"
  73. ],
  74. }
  75. ]
  76. },
  77. {
  78. "name": "ShareUIAbility",
  79. "srcEntry": "./ets/entryability/ShareUIAbility.ets",
  80. "description": "$string:EntryAbility_desc",
  81. "icon": "$media:icon",
  82. "label": "$string:EntryAbility_label",
  83. "startWindowIcon": "$media:icon",
  84. "startWindowBackground": "$color:start_window_background",
  85. "orientation": "portrait",
  86. "exported": true,
  87. "backgroundModes": [
  88. // 长时任务类型的配置项
  89. "audioPlayback"
  90. ],
  91. "skills": [
  92. {
  93. "actions": [
  94. // "action.system.home",
  95. "ohos.want.action.sendData"
  96. ],
  97. // "entities": [
  98. // "entity.system.home"
  99. // ],
  100. // 目标应用在配置支持接收的数据类型时,需穷举支持的UTD,比如:支持全部图片类型,可声明:general.image
  101. // maxFileSupported 对于归属指定类型的文件,标识一次支持接收的最大数量。默认为0,代表不支持此类文件的分享。文件类型归属关系参考:@ohos.data.uniformTypeDescriptor (标准化数据定义与描述)
  102. "uris": [
  103. {
  104. "scheme": "file",
  105. "utd": "general.audio",
  106. "linkFeature": "Share",
  107. "maxFileSupported": 1
  108. }
  109. ]
  110. }
  111. ]
  112. }
  113. ],
  114. "requestPermissions": [
  115. {
  116. "name": "ohos.permission.INTERNET",
  117. "usedScene": {
  118. "abilities": [
  119. "EntryAbility"
  120. ],
  121. "when": "inuse"
  122. },
  123. "reason": "$string:reason"
  124. },
  125. {
  126. "name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
  127. "reason": "$string:reason_background",
  128. "usedScene": {
  129. "abilities": [
  130. "EntryAbility",
  131. "ShareUIAbility"
  132. ],
  133. "when": "always"
  134. }
  135. },
  136. ]
  137. }
  138. }