package.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {
  2. "name": "JG-JPush",
  3. "id": "JG-JPush",
  4. "version": "1.2.0",
  5. "description": "极光推送Hbuilder插件",
  6. "_dp_type":"nativeplugin",
  7. "_dp_nativeplugin":{
  8. "ios": {
  9. "deploymentTarget": "11.0",
  10. "validArchitectures": [
  11. "arm64"
  12. ],
  13. "plugins": [{
  14. "type": "module",
  15. "name": "JG-JPush",
  16. "class": "JPushModule"
  17. }],
  18. "hooksClass": "JPushProxy",
  19. "integrateType": "framework",
  20. "frameworks": [
  21. "CFNetwork.framework",
  22. "CoreFoundation.framework",
  23. "CoreTelephony.framework",
  24. "SystemConfiguration.framework",
  25. "CoreGraphics.framework",
  26. "Foundation.framework",
  27. "UIKit.framework",
  28. "Security.framework",
  29. "libz.tbd",
  30. "AdSupport.framework",
  31. "UserNotifications.framework",
  32. "libresolv.tbd",
  33. "WebKit.framework",
  34. "AppTrackingTransparency.framework",
  35. "StoreKit.framework"
  36. ],
  37. "resources": [
  38. ],
  39. "capabilities": {
  40. "entitlements": {
  41. "aps-environment":"development"
  42. }
  43. },
  44. "privacies": [
  45. "NSLocationAlwaysAndWhenInUseUsageDescription",
  46. "NSLocationAlwaysUsageDescription",
  47. "NSLocationWhenInUseUsageDescription"
  48. ],
  49. "parameters": {
  50. "JPUSH_ISPRODUCTION_IOS": {
  51. "des": "[iOS]是否是生产环境,是填true,不是填false或者不填",
  52. "key": "JPush:ISPRODUCTION"
  53. },
  54. "JPUSH_ADVERTISINGID_IOS": {
  55. "des": "[iOS]广告标识符(IDFA)如果不需要使用IDFA,可不填",
  56. "key": "JPush:ADVERTISINGID"
  57. },
  58. "JPUSH_DEFAULTINITJPUSH_IOS": {
  59. "des": "[iOS]是否默认初始化,是填true,不是填false或者不填",
  60. "key": "JPush:DEFAULTINITJPUSH"
  61. }
  62. }
  63. },
  64. "android": {
  65. "plugins": [
  66. {
  67. "type": "module",
  68. "name": "JG-JPush",
  69. "class": "cn.jiguang.uniplugin_jpush.JPushModule"
  70. }
  71. ],
  72. "integrateType": "aar",
  73. "minSdkVersion": "19",
  74. "permissions": [
  75. "${applicationId}.permission.JPUSH_MESSAGE",
  76. "android.permission.INTERNET",
  77. "android.permission.ACCESS_NETWORK_STATE",
  78. "android.permission.POST_NOTIFICATIONS",
  79. "com.huawei.android.launcher.permission.CHANGE_BADGE",
  80. "com.vivo.notification.permission.BADGE_ICON",
  81. "com.hihonor.android.launcher.permission.CHANGE_BADGE",
  82. "android.permission.VIBRATE",
  83. "android.permission.ACCESS_COARSE_LOCATION",
  84. "android.permission.ACCESS_FINE_LOCATION",
  85. "android.permission.ACCESS_BACKGROUND_LOCATION",
  86. "android.permission.READ_PHONE_STATE",
  87. "android.permission.QUERY_ALL_PACKAGES",
  88. "android.permission.GET_TASKS",
  89. "android.permission.ACCESS_WIFI_STATE",
  90. "android.permission.WRITE_EXTERNAL_STORAGE",
  91. "android.permission.READ_EXTERNAL_STORAGE",
  92. "${applicationId}.permission.MIPUSH_RECEIVE",
  93. "com.coloros.mcs.permission.RECIEVE_MCS_MESSAGE",
  94. "com.heytap.mcs.permission.RECIEVE_MCS_MESSAGE"
  95. ],
  96. "parameters": {
  97. "JPUSH_OPPO_APPKEY": {
  98. "des": "厂商OPPO-appkey,示例:OP-12345678",
  99. "key": "OPPO_APPKEY"
  100. },
  101. "JPUSH_OPPO_APPID":{
  102. "des": "厂商OPPO-appId,示例:OP-12345678",
  103. "key": "OPPO_APPID"
  104. },
  105. "JPUSH_OPPO_APPSECRET":{
  106. "des": "厂商OPPO-appSecret,示例:OP-12345678",
  107. "key": "OPPO_APPSECRET"
  108. },
  109. "JPUSH_VIVO_APPKEY":{
  110. "des": "厂商VIVO-appkey,示例:12345678",
  111. "key": "com.vivo.push.api_key"
  112. },
  113. "JPUSH_VIVO_APPID":{
  114. "des": "厂商VIVO-appId,示例:12345678",
  115. "key": "com.vivo.push.app_id"
  116. },
  117. "JPUSH_MEIZU_APPKEY":{
  118. "des": "厂商MEIZU-appKey,示例:MZ-12345678",
  119. "key": "MEIZU_APPKEY"
  120. },
  121. "JPUSH_MEIZU_APPID":{
  122. "des": "厂商MEIZU-appId,示例:MZ-12345678",
  123. "key": "MEIZU_APPID"
  124. },
  125. "JPUSH_XIAOMI_APPKEY":{
  126. "des": "厂商XIAOMI-appKey,示例:MI-12345678",
  127. "key": "XIAOMI_APPKEY"
  128. },
  129. "JPUSH_XIAOMI_APPID":{
  130. "des": "厂商XIAOMI-appId,示例:MI-12345678",
  131. "key": "XIAOMI_APPID"
  132. },
  133. "JPUSH_HUAWEI_APPID":{
  134. "des": "厂商HUAWEI-appId,示例:appid=12346578",
  135. "key": "com.huawei.hms.client.appid"
  136. },
  137. "JPUSH_HONOR_APPID" : {
  138. "des" : "厂商HONOR-appId,示例:12346578",
  139. "key" : "com.hihonor.push.app_id"
  140. },
  141. "JPUSH_GOOGLE_API_KEY" : {
  142. "des" : "厂商google api_key,示例:g-12346578",
  143. "key" : "google_api_key"
  144. },
  145. "JPUSH_GOOGLE_APP_ID" : {
  146. "des" : "厂商google mobilesdk_app_id,示例:g-12346578",
  147. "key" : "google_app_id"
  148. },
  149. "JPUSH_GOOGLE_PROJECT_NUMBER" : {
  150. "des" : "厂商google project_number,示例:g-12346578",
  151. "key" : "gcm_defaultSenderId"
  152. },
  153. "JPUSH_GOOGLE_PROJECT_ID" : {
  154. "des" : "厂商google project_id ,示例:g-12346578",
  155. "key" : "project_id"
  156. },
  157. "JPUSH_GOOGLE_STORAGE_BUCKET" : {
  158. "des" : "厂商google storage_bucket,示例:g-12346578",
  159. "key" : "google_storage_bucket"
  160. }
  161. }
  162. }
  163. }
  164. }