module.json5 5.0 KB

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