module.json5 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "module": {
  3. "name": "entry",
  4. "type": "entry",
  5. "description": "$string:module_desc",
  6. "mainElement": "EntryAbility",
  7. "deviceTypes": [
  8. "phone"
  9. ],
  10. "deliveryWithInstall": true,
  11. "installationFree": false,
  12. "pages": "$profile:main_pages",
  13. "requestPermissions": [
  14. {
  15. "name": "ohos.permission.INTERNET"
  16. },
  17. {
  18. "name": "ohos.permission.APP_TRACKING_CONSENT",
  19. "reason": "$string:reason",
  20. "usedScene": {
  21. "abilities": [
  22. "EntryAbility"
  23. ],
  24. "when": "inuse"
  25. }
  26. }
  27. ],
  28. "abilities": [
  29. {
  30. "name": "EntryAbility",
  31. "srcEntry": "./ets/entryability/EntryAbility.ets",
  32. "description": "$string:EntryAbility_desc",
  33. "icon": "$media:layered_image",
  34. "label": "$string:EntryAbility_label",
  35. "startWindowIcon": "$media:startIcon",
  36. "startWindowBackground": "$color:start_window_background",
  37. "exported": true,
  38. "skills": [
  39. {
  40. "entities": [
  41. "entity.system.home"
  42. ],
  43. "actions": [
  44. "action.system.home"
  45. ]
  46. }
  47. ]
  48. }
  49. ],
  50. // "metadata": [
  51. // {
  52. // "name": "client_id",
  53. // "value": "6917573740100956853"
  54. // }
  55. // ],
  56. "extensionAbilities": [
  57. {
  58. "name": "EntryBackupAbility",
  59. "srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
  60. "type": "backup",
  61. "exported": false,
  62. "metadata": [
  63. {
  64. "name": "ohos.extension.backup",
  65. "resource": "$profile:backup_config"
  66. }
  67. ]
  68. }
  69. ]
  70. }
  71. }