module.json5 1.7 KB

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