@appzung/react-native-code-push 11.0.0-rc4 → 11.0.0-rc6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/android/app/src/main/java/com/appzung/codepush/react/CodePushConstants.java +2 -0
  2. package/android/app/src/main/java/com/appzung/codepush/react/CodePushNativeModule.java +62 -0
  3. package/ios/CodePush/CodePush.h +2 -0
  4. package/ios/CodePush/CodePush.m +28 -0
  5. package/ios/CodePush/CodePushConfig.m +50 -0
  6. package/lib/commonjs/CodePush.js +5 -0
  7. package/lib/commonjs/CodePush.js.map +1 -1
  8. package/lib/commonjs/allowRestart.js +4 -2
  9. package/lib/commonjs/allowRestart.js.map +1 -1
  10. package/lib/commonjs/checkForUpdates.js +3 -2
  11. package/lib/commonjs/checkForUpdates.js.map +1 -1
  12. package/lib/commonjs/clearUpdates.js +4 -2
  13. package/lib/commonjs/clearUpdates.js.map +1 -1
  14. package/lib/commonjs/dataTransmission.js +28 -0
  15. package/lib/commonjs/dataTransmission.js.map +1 -0
  16. package/lib/commonjs/disallowRestart.js +4 -2
  17. package/lib/commonjs/disallowRestart.js.map +1 -1
  18. package/lib/commonjs/enums/LogLevel.enum.js +17 -0
  19. package/lib/commonjs/enums/LogLevel.enum.js.map +1 -0
  20. package/lib/commonjs/index.js +60 -0
  21. package/lib/commonjs/index.js.map +1 -1
  22. package/lib/commonjs/internals/CodePushApiSdk.js +23 -1
  23. package/lib/commonjs/internals/CodePushApiSdk.js.map +1 -1
  24. package/lib/commonjs/internals/CodePushApiSdk.types.js.map +1 -1
  25. package/lib/commonjs/internals/RemotePackageImplementation.js +2 -1
  26. package/lib/commonjs/internals/RemotePackageImplementation.js.map +1 -1
  27. package/lib/commonjs/internals/logger.js +51 -0
  28. package/lib/commonjs/internals/logger.js.map +1 -0
  29. package/lib/commonjs/internals/shouldUpdateBeIgnored.js +6 -5
  30. package/lib/commonjs/internals/shouldUpdateBeIgnored.js.map +1 -1
  31. package/lib/commonjs/internals/utils/log.js +10 -3
  32. package/lib/commonjs/internals/utils/log.js.map +1 -1
  33. package/lib/commonjs/internals/utils/requestFetchAdapter.js +5 -0
  34. package/lib/commonjs/internals/utils/requestFetchAdapter.js.map +1 -1
  35. package/lib/commonjs/internals/version.js +1 -1
  36. package/lib/commonjs/logLevel.js +15 -0
  37. package/lib/commonjs/logLevel.js.map +1 -0
  38. package/lib/commonjs/logger.js +19 -0
  39. package/lib/commonjs/logger.js.map +1 -0
  40. package/lib/commonjs/notifyAppReady.js +17 -8
  41. package/lib/commonjs/notifyAppReady.js.map +1 -1
  42. package/lib/commonjs/restartApp.js +2 -2
  43. package/lib/commonjs/restartApp.js.map +1 -1
  44. package/lib/commonjs/sync.js +32 -27
  45. package/lib/commonjs/sync.js.map +1 -1
  46. package/lib/commonjs/telemetry.js +28 -0
  47. package/lib/commonjs/telemetry.js.map +1 -0
  48. package/lib/module/CodePush.js +5 -0
  49. package/lib/module/CodePush.js.map +1 -1
  50. package/lib/module/allowRestart.js +3 -1
  51. package/lib/module/allowRestart.js.map +1 -1
  52. package/lib/module/checkForUpdates.js +3 -2
  53. package/lib/module/checkForUpdates.js.map +1 -1
  54. package/lib/module/clearUpdates.js +3 -1
  55. package/lib/module/clearUpdates.js.map +1 -1
  56. package/lib/module/dataTransmission.js +24 -0
  57. package/lib/module/dataTransmission.js.map +1 -0
  58. package/lib/module/disallowRestart.js +3 -1
  59. package/lib/module/disallowRestart.js.map +1 -1
  60. package/lib/module/enums/LogLevel.enum.js +13 -0
  61. package/lib/module/enums/LogLevel.enum.js.map +1 -0
  62. package/lib/module/index.js +5 -0
  63. package/lib/module/index.js.map +1 -1
  64. package/lib/module/internals/CodePushApiSdk.js +23 -1
  65. package/lib/module/internals/CodePushApiSdk.js.map +1 -1
  66. package/lib/module/internals/CodePushApiSdk.types.js.map +1 -1
  67. package/lib/module/internals/RemotePackageImplementation.js +2 -1
  68. package/lib/module/internals/RemotePackageImplementation.js.map +1 -1
  69. package/lib/module/internals/logger.js +44 -0
  70. package/lib/module/internals/logger.js.map +1 -0
  71. package/lib/module/internals/shouldUpdateBeIgnored.js +6 -5
  72. package/lib/module/internals/shouldUpdateBeIgnored.js.map +1 -1
  73. package/lib/module/internals/utils/log.js +11 -3
  74. package/lib/module/internals/utils/log.js.map +1 -1
  75. package/lib/module/internals/utils/requestFetchAdapter.js +5 -0
  76. package/lib/module/internals/utils/requestFetchAdapter.js.map +1 -1
  77. package/lib/module/internals/version.js +1 -1
  78. package/lib/module/logLevel.js +9 -0
  79. package/lib/module/logLevel.js.map +1 -0
  80. package/lib/module/logger.js +4 -0
  81. package/lib/module/logger.js.map +1 -0
  82. package/lib/module/notifyAppReady.js +17 -8
  83. package/lib/module/notifyAppReady.js.map +1 -1
  84. package/lib/module/restartApp.js +2 -2
  85. package/lib/module/restartApp.js.map +1 -1
  86. package/lib/module/sync.js +32 -27
  87. package/lib/module/sync.js.map +1 -1
  88. package/lib/module/telemetry.js +24 -0
  89. package/lib/module/telemetry.js.map +1 -0
  90. package/lib/typescript/commonjs/src/CodePush.d.ts.map +1 -1
  91. package/lib/typescript/commonjs/src/allowRestart.d.ts +1 -1
  92. package/lib/typescript/commonjs/src/allowRestart.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/src/checkForUpdates.d.ts.map +1 -1
  94. package/lib/typescript/commonjs/src/clearUpdates.d.ts +1 -1
  95. package/lib/typescript/commonjs/src/clearUpdates.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/src/dataTransmission.d.ts +13 -0
  97. package/lib/typescript/commonjs/src/dataTransmission.d.ts.map +1 -0
  98. package/lib/typescript/commonjs/src/disallowRestart.d.ts +1 -1
  99. package/lib/typescript/commonjs/src/disallowRestart.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/src/enums/LogLevel.enum.d.ts +10 -0
  101. package/lib/typescript/commonjs/src/enums/LogLevel.enum.d.ts.map +1 -0
  102. package/lib/typescript/commonjs/src/index.d.ts +5 -0
  103. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  104. package/lib/typescript/commonjs/src/internals/CodePushApiSdk.d.ts +3 -1
  105. package/lib/typescript/commonjs/src/internals/CodePushApiSdk.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/src/internals/CodePushApiSdk.types.d.ts +2 -0
  107. package/lib/typescript/commonjs/src/internals/CodePushApiSdk.types.d.ts.map +1 -1
  108. package/lib/typescript/commonjs/src/internals/RNAppZungCodePushModuleSpec.d.ts +4 -0
  109. package/lib/typescript/commonjs/src/internals/RNAppZungCodePushModuleSpec.d.ts.map +1 -1
  110. package/lib/typescript/commonjs/src/internals/RemotePackageImplementation.d.ts.map +1 -1
  111. package/lib/typescript/commonjs/src/internals/logger.d.ts +33 -0
  112. package/lib/typescript/commonjs/src/internals/logger.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/src/internals/shouldUpdateBeIgnored.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/src/internals/utils/log.d.ts +2 -1
  115. package/lib/typescript/commonjs/src/internals/utils/log.d.ts.map +1 -1
  116. package/lib/typescript/commonjs/src/internals/utils/requestFetchAdapter.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/src/internals/version.d.ts +1 -1
  118. package/lib/typescript/commonjs/src/logLevel.d.ts +4 -0
  119. package/lib/typescript/commonjs/src/logLevel.d.ts.map +1 -0
  120. package/lib/typescript/commonjs/src/logger.d.ts +3 -0
  121. package/lib/typescript/commonjs/src/logger.d.ts.map +1 -0
  122. package/lib/typescript/commonjs/src/notifyAppReady.d.ts +2 -0
  123. package/lib/typescript/commonjs/src/notifyAppReady.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/src/restartApp.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/src/sync.d.ts +2 -0
  126. package/lib/typescript/commonjs/src/sync.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/telemetry.d.ts +13 -0
  128. package/lib/typescript/commonjs/src/telemetry.d.ts.map +1 -0
  129. package/lib/typescript/module/src/CodePush.d.ts.map +1 -1
  130. package/lib/typescript/module/src/allowRestart.d.ts +1 -1
  131. package/lib/typescript/module/src/allowRestart.d.ts.map +1 -1
  132. package/lib/typescript/module/src/checkForUpdates.d.ts.map +1 -1
  133. package/lib/typescript/module/src/clearUpdates.d.ts +1 -1
  134. package/lib/typescript/module/src/clearUpdates.d.ts.map +1 -1
  135. package/lib/typescript/module/src/dataTransmission.d.ts +13 -0
  136. package/lib/typescript/module/src/dataTransmission.d.ts.map +1 -0
  137. package/lib/typescript/module/src/disallowRestart.d.ts +1 -1
  138. package/lib/typescript/module/src/disallowRestart.d.ts.map +1 -1
  139. package/lib/typescript/module/src/enums/LogLevel.enum.d.ts +10 -0
  140. package/lib/typescript/module/src/enums/LogLevel.enum.d.ts.map +1 -0
  141. package/lib/typescript/module/src/index.d.ts +5 -0
  142. package/lib/typescript/module/src/index.d.ts.map +1 -1
  143. package/lib/typescript/module/src/internals/CodePushApiSdk.d.ts +3 -1
  144. package/lib/typescript/module/src/internals/CodePushApiSdk.d.ts.map +1 -1
  145. package/lib/typescript/module/src/internals/CodePushApiSdk.types.d.ts +2 -0
  146. package/lib/typescript/module/src/internals/CodePushApiSdk.types.d.ts.map +1 -1
  147. package/lib/typescript/module/src/internals/RNAppZungCodePushModuleSpec.d.ts +4 -0
  148. package/lib/typescript/module/src/internals/RNAppZungCodePushModuleSpec.d.ts.map +1 -1
  149. package/lib/typescript/module/src/internals/RemotePackageImplementation.d.ts.map +1 -1
  150. package/lib/typescript/module/src/internals/logger.d.ts +33 -0
  151. package/lib/typescript/module/src/internals/logger.d.ts.map +1 -0
  152. package/lib/typescript/module/src/internals/shouldUpdateBeIgnored.d.ts.map +1 -1
  153. package/lib/typescript/module/src/internals/utils/log.d.ts +2 -1
  154. package/lib/typescript/module/src/internals/utils/log.d.ts.map +1 -1
  155. package/lib/typescript/module/src/internals/utils/requestFetchAdapter.d.ts.map +1 -1
  156. package/lib/typescript/module/src/internals/version.d.ts +1 -1
  157. package/lib/typescript/module/src/logLevel.d.ts +4 -0
  158. package/lib/typescript/module/src/logLevel.d.ts.map +1 -0
  159. package/lib/typescript/module/src/logger.d.ts +3 -0
  160. package/lib/typescript/module/src/logger.d.ts.map +1 -0
  161. package/lib/typescript/module/src/notifyAppReady.d.ts +2 -0
  162. package/lib/typescript/module/src/notifyAppReady.d.ts.map +1 -1
  163. package/lib/typescript/module/src/restartApp.d.ts.map +1 -1
  164. package/lib/typescript/module/src/sync.d.ts +2 -0
  165. package/lib/typescript/module/src/sync.d.ts.map +1 -1
  166. package/lib/typescript/module/src/telemetry.d.ts +13 -0
  167. package/lib/typescript/module/src/telemetry.d.ts.map +1 -0
  168. package/package.json +23 -14
  169. package/scripts/generateBundledResourcesHash.js +73 -68
  170. package/scripts/getFilesInFolder.js +12 -12
  171. package/scripts/recordFilesBeforeBundleCommand.js +19 -20
  172. package/src/CodePush.tsx +6 -0
  173. package/src/allowRestart.ts +3 -1
  174. package/src/checkForUpdates.ts +3 -2
  175. package/src/clearUpdates.ts +3 -1
  176. package/src/dataTransmission.ts +21 -0
  177. package/src/disallowRestart.ts +3 -1
  178. package/src/enums/LogLevel.enum.ts +9 -0
  179. package/src/index.ts +5 -0
  180. package/src/internals/CodePushApiSdk.ts +27 -0
  181. package/src/internals/CodePushApiSdk.types.ts +2 -0
  182. package/src/internals/RNAppZungCodePushModuleSpec.ts +6 -0
  183. package/src/internals/RemotePackageImplementation.ts +2 -1
  184. package/src/internals/logger.ts +46 -0
  185. package/src/internals/shouldUpdateBeIgnored.ts +6 -5
  186. package/src/internals/utils/log.ts +13 -3
  187. package/src/internals/utils/requestFetchAdapter.ts +8 -0
  188. package/src/internals/version.ts +1 -1
  189. package/src/logLevel.ts +9 -0
  190. package/src/logger.ts +2 -0
  191. package/src/notifyAppReady.ts +19 -7
  192. package/src/restartApp.ts +2 -2
  193. package/src/sync.ts +38 -26
  194. package/src/telemetry.ts +21 -0
  195. package/docs/advanced-usage.md +0 -71
  196. package/docs/api-android.md +0 -22
  197. package/docs/api-ios.md +0 -19
  198. package/docs/api-js/README.md +0 -55
  199. package/docs/api-js/enumerations/CheckFrequency.md +0 -33
  200. package/docs/api-js/enumerations/DeploymentStatus.md +0 -25
  201. package/docs/api-js/enumerations/InstallMode.md +0 -50
  202. package/docs/api-js/enumerations/SyncStatus.md +0 -85
  203. package/docs/api-js/enumerations/UpdateState.md +0 -37
  204. package/docs/api-js/functions/allowRestart.md +0 -17
  205. package/docs/api-js/functions/checkForUpdate.md +0 -29
  206. package/docs/api-js/functions/clearUpdates.md +0 -19
  207. package/docs/api-js/functions/disallowRestart.md +0 -17
  208. package/docs/api-js/functions/getClientUniqueId.md +0 -15
  209. package/docs/api-js/functions/getUpdateMetadata.md +0 -23
  210. package/docs/api-js/functions/notifyAppReady.md +0 -17
  211. package/docs/api-js/functions/resetClientUniqueId.md +0 -15
  212. package/docs/api-js/functions/restartApp.md +0 -25
  213. package/docs/api-js/functions/sync.md +0 -43
  214. package/docs/api-js/functions/withCodePush.md +0 -65
  215. package/docs/api-js/interfaces/CodePushOptions.md +0 -118
  216. package/docs/api-js/interfaces/DownloadProgress.md +0 -23
  217. package/docs/api-js/interfaces/LocalPackage.md +0 -171
  218. package/docs/api-js/interfaces/Package.md +0 -98
  219. package/docs/api-js/interfaces/RemotePackage.md +0 -169
  220. package/docs/api-js/interfaces/RollbackRetryOptions.md +0 -28
  221. package/docs/api-js/interfaces/StatusReport.md +0 -47
  222. package/docs/api-js/interfaces/SyncOptions.md +0 -80
  223. package/docs/api-js/interfaces/UpdateDialog.md +0 -89
  224. package/docs/api-js/type-aliases/DownloadProgressCallback.md +0 -21
  225. package/docs/api-js/type-aliases/HandleBinaryVersionMismatchCallback.md +0 -23
  226. package/docs/api-js/type-aliases/SyncStatusChangedCallback.md +0 -23
  227. package/docs/api-js/variables/DEFAULT_UPDATE_DIALOG.md +0 -12
  228. package/docs/code-signing.md +0 -64
  229. package/docs/migrating-to-v10.md +0 -31
  230. package/docs/setup-android.md +0 -80
  231. package/docs/setup-ios.md +0 -108
  232. package/docs/setup-windows.md +0 -55
  233. package/typedoc.json +0 -9
@@ -1,98 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / Package
6
-
7
- # Interface: Package
8
-
9
- ## Extended by
10
-
11
- - [`LocalPackage`](LocalPackage.md)
12
- - [`RemotePackage`](RemotePackage.md)
13
-
14
- ## Properties
15
-
16
- ### appVersion
17
-
18
- > **appVersion**: `string`
19
-
20
- The app binary version that this update is dependent on. This is the value that was
21
- specified via the --target-binary-version parameter when calling the CLI's release command.
22
-
23
- ---
24
-
25
- ### description
26
-
27
- > **description**: `string`
28
-
29
- The description of the update. This is the same value that you specified in the CLI when you released the update.
30
-
31
- ---
32
-
33
- ### failedInstall
34
-
35
- > **failedInstall**: `boolean`
36
-
37
- Indicates whether this update has been previously installed but was rolled back.
38
-
39
- The `sync` method will automatically ignore updates which have previously failed, so you only need to worry about this property if using `checkForUpdate`.
40
-
41
- ---
42
-
43
- ### isFirstRun
44
-
45
- > **isFirstRun**: `boolean`
46
-
47
- Indicates whether this is the first time the update has been run after being installed.
48
-
49
- This is useful for determining whether you would like to show a "What's New?" UI to the end user after installing an update.
50
-
51
- ---
52
-
53
- ### isMandatory
54
-
55
- > **isMandatory**: `boolean`
56
-
57
- Indicates whether the update is considered mandatory. This is the value that was specified in the CLI when the update was released.
58
-
59
- ---
60
-
61
- ### isPending
62
-
63
- > **isPending**: `boolean`
64
-
65
- Indicates whether this update is in a "pending" state. When true, that means the update has been downloaded and installed, but the app restart
66
- needed to apply it hasn't occurred yet, and therefore, its changes aren't currently visible to the end-user.
67
-
68
- ---
69
-
70
- ### label
71
-
72
- > **label**: `string`
73
-
74
- The internal label automatically given to the update by the CodePush server. This value uniquely identifies the update within its release channel.
75
-
76
- ---
77
-
78
- ### packageHash
79
-
80
- > **packageHash**: `string`
81
-
82
- The SHA hash value of the update.
83
-
84
- ---
85
-
86
- ### packageSize
87
-
88
- > **packageSize**: `number`
89
-
90
- The size of the code contained within the update, in bytes.
91
-
92
- ---
93
-
94
- ### releaseChannelPublicId
95
-
96
- > **releaseChannelPublicId**: `string`
97
-
98
- The release channel public ID that was used to originally download this update.
@@ -1,169 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / RemotePackage
6
-
7
- # Interface: RemotePackage
8
-
9
- Represents an available update on the CodePush server that hasn't been downloaded yet.
10
-
11
- ## Extends
12
-
13
- - [`Package`](Package.md)
14
-
15
- ## Properties
16
-
17
- ### appVersion
18
-
19
- > **appVersion**: `string`
20
-
21
- The app binary version that this update is dependent on. This is the value that was
22
- specified via the --target-binary-version parameter when calling the CLI's release command.
23
-
24
- #### Inherited from
25
-
26
- [`Package`](Package.md).[`appVersion`](Package.md#appversion)
27
-
28
- ---
29
-
30
- ### description
31
-
32
- > **description**: `string`
33
-
34
- The description of the update. This is the same value that you specified in the CLI when you released the update.
35
-
36
- #### Inherited from
37
-
38
- [`Package`](Package.md).[`description`](Package.md#description)
39
-
40
- ---
41
-
42
- ### downloadUrl
43
-
44
- > **downloadUrl**: `string`
45
-
46
- The URL at which the package is available for download.
47
-
48
- This property is only needed for advanced usage, since the `download` method will automatically handle the acquisition of updates for you.
49
-
50
- ---
51
-
52
- ### failedInstall
53
-
54
- > **failedInstall**: `boolean`
55
-
56
- Indicates whether this update has been previously installed but was rolled back.
57
-
58
- The `sync` method will automatically ignore updates which have previously failed, so you only need to worry about this property if using `checkForUpdate`.
59
-
60
- #### Inherited from
61
-
62
- [`Package`](Package.md).[`failedInstall`](Package.md#failedinstall)
63
-
64
- ---
65
-
66
- ### isFirstRun
67
-
68
- > **isFirstRun**: `boolean`
69
-
70
- Indicates whether this is the first time the update has been run after being installed.
71
-
72
- This is useful for determining whether you would like to show a "What's New?" UI to the end user after installing an update.
73
-
74
- #### Inherited from
75
-
76
- [`Package`](Package.md).[`isFirstRun`](Package.md#isfirstrun)
77
-
78
- ---
79
-
80
- ### isMandatory
81
-
82
- > **isMandatory**: `boolean`
83
-
84
- Indicates whether the update is considered mandatory. This is the value that was specified in the CLI when the update was released.
85
-
86
- #### Inherited from
87
-
88
- [`Package`](Package.md).[`isMandatory`](Package.md#ismandatory)
89
-
90
- ---
91
-
92
- ### isPending
93
-
94
- > **isPending**: `boolean`
95
-
96
- Indicates whether this update is in a "pending" state. When true, that means the update has been downloaded and installed, but the app restart
97
- needed to apply it hasn't occurred yet, and therefore, its changes aren't currently visible to the end-user.
98
-
99
- #### Inherited from
100
-
101
- [`Package`](Package.md).[`isPending`](Package.md#ispending)
102
-
103
- ---
104
-
105
- ### label
106
-
107
- > **label**: `string`
108
-
109
- The internal label automatically given to the update by the CodePush server. This value uniquely identifies the update within its release channel.
110
-
111
- #### Inherited from
112
-
113
- [`Package`](Package.md).[`label`](Package.md#label)
114
-
115
- ---
116
-
117
- ### packageHash
118
-
119
- > **packageHash**: `string`
120
-
121
- The SHA hash value of the update.
122
-
123
- #### Inherited from
124
-
125
- [`Package`](Package.md).[`packageHash`](Package.md#packagehash)
126
-
127
- ---
128
-
129
- ### packageSize
130
-
131
- > **packageSize**: `number`
132
-
133
- The size of the code contained within the update, in bytes.
134
-
135
- #### Inherited from
136
-
137
- [`Package`](Package.md).[`packageSize`](Package.md#packagesize)
138
-
139
- ---
140
-
141
- ### releaseChannelPublicId
142
-
143
- > **releaseChannelPublicId**: `string`
144
-
145
- The release channel public ID that was used to originally download this update.
146
-
147
- #### Inherited from
148
-
149
- [`Package`](Package.md).[`releaseChannelPublicId`](Package.md#releasechannelpublicid)
150
-
151
- ## Methods
152
-
153
- ### download()
154
-
155
- > **download**(`downloadProgressCallback`?): `Promise`\<[`LocalPackage`](LocalPackage.md)\>
156
-
157
- Downloads the available update from the CodePush service.
158
-
159
- #### Parameters
160
-
161
- ##### downloadProgressCallback?
162
-
163
- [`DownloadProgressCallback`](../type-aliases/DownloadProgressCallback.md)
164
-
165
- An optional callback that allows tracking the progress of the update while it is being downloaded.
166
-
167
- #### Returns
168
-
169
- `Promise`\<[`LocalPackage`](LocalPackage.md)\>
@@ -1,28 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / RollbackRetryOptions
6
-
7
- # Interface: RollbackRetryOptions
8
-
9
- ## Properties
10
-
11
- ### delayInHours?
12
-
13
- > `optional` **delayInHours**: `number`
14
-
15
- Specifies the minimum time in hours that the app will wait after the latest rollback before attempting to reinstall same rolled-back package.
16
-
17
- Defaults to `24`.
18
-
19
- ---
20
-
21
- ### maxRetryAttempts?
22
-
23
- > `optional` **maxRetryAttempts**: `number`
24
-
25
- Specifies the maximum number of retry attempts that the app can make before it stops trying.
26
- Cannot be less than `1`.
27
-
28
- Defaults to `1`.
@@ -1,47 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / StatusReport
6
-
7
- # Interface: StatusReport
8
-
9
- ## Properties
10
-
11
- ### appVersion?
12
-
13
- > `optional` **appVersion**: `string`
14
-
15
- The version of the app that was deployed (for a native app upgrade).
16
-
17
- ---
18
-
19
- ### package?
20
-
21
- > `optional` **package**: [`Package`](Package.md)
22
-
23
- Details of the package that was deployed (or attempted to).
24
-
25
- ---
26
-
27
- ### previousLabelOrAppVersion?
28
-
29
- > `optional` **previousLabelOrAppVersion**: `string`
30
-
31
- The label (v#) of the package that was upgraded from.
32
-
33
- ---
34
-
35
- ### previousReleaseChannelPublicId?
36
-
37
- > `optional` **previousReleaseChannelPublicId**: `string`
38
-
39
- Release channel used when deploying the previous package.
40
-
41
- ---
42
-
43
- ### status
44
-
45
- > **status**: [`DeploymentStatus`](../enumerations/DeploymentStatus.md)
46
-
47
- Whether the deployment succeeded or failed.
@@ -1,80 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / SyncOptions
6
-
7
- # Interface: SyncOptions
8
-
9
- ## Extended by
10
-
11
- - [`CodePushOptions`](CodePushOptions.md)
12
-
13
- ## Properties
14
-
15
- ### ignoreFailedUpdates?
16
-
17
- > `optional` **ignoreFailedUpdates**: `boolean`
18
-
19
- ---
20
-
21
- ### installMode?
22
-
23
- > `optional` **installMode**: [`InstallMode`](../enumerations/InstallMode.md)
24
-
25
- Specifies when you would like to install regular updates (i.e. those that aren't marked as mandatory).
26
-
27
- Defaults to InstallMode.ON_NEXT_RESTART.
28
-
29
- ---
30
-
31
- ### mandatoryInstallMode?
32
-
33
- > `optional` **mandatoryInstallMode**: [`InstallMode`](../enumerations/InstallMode.md)
34
-
35
- Specifies when you would like to install updates which are marked as mandatory.
36
-
37
- Defaults to InstallMode.IMMEDIATE.
38
-
39
- ---
40
-
41
- ### minimumBackgroundDuration?
42
-
43
- > `optional` **minimumBackgroundDuration**: `number`
44
-
45
- Specifies the minimum number of seconds that the app needs to have been in the background before restarting the app. This property
46
- only applies to updates which are installed using `InstallMode.ON_NEXT_RESUME` or `InstallMode.ON_NEXT_SUSPEND`, and can be useful
47
- for getting your update in front of end users sooner, without being too obtrusive. Defaults to `0`, which has the effect of applying
48
- the update immediately after a resume or unless the app suspension is long enough to not matter, regardless how long it was in the background.
49
-
50
- ---
51
-
52
- ### releaseChannelPublicId?
53
-
54
- > `optional` **releaseChannelPublicId**: `string`
55
-
56
- Specifies the release channel you want to query for an update against.
57
-
58
- By default, this value is derived from the Info.plist file (iOS) and strings resources (Android), but this option allows you to override it from the JS-side if you need to dynamically use a different release channel for a specific call to sync.
59
-
60
- ---
61
-
62
- ### rollbackRetryOptions?
63
-
64
- > `optional` **rollbackRetryOptions**: `true` \| [`RollbackRetryOptions`](RollbackRetryOptions.md)
65
-
66
- The rollback retry mechanism allows the application to attempt to reinstall an update that was previously rolled back (with the restrictions specified in the options).
67
-
68
- This defaults to null, which has the effect of disabling the retry mechanism.
69
- Setting this to true will enable the retry mechanism with the default settings, and passing an object to this parameter allows enabling the rollback retry as well as overriding one or more of the default values.
70
-
71
- ---
72
-
73
- ### updateDialog?
74
-
75
- > `optional` **updateDialog**: `true` \| [`UpdateDialog`](UpdateDialog.md)
76
-
77
- Used to determine whether a confirmation dialog should be displayed to the end user when an update is available, and if so, what strings to use.
78
-
79
- Defaults to null, which has the effect of disabling the dialog completely.
80
- Setting this to true will enable the dialog with the default strings, and passing an object to this parameter allows enabling the dialog as well as overriding one or more of the default strings.
@@ -1,89 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / UpdateDialog
6
-
7
- # Interface: UpdateDialog
8
-
9
- ## Properties
10
-
11
- ### appendReleaseDescription?
12
-
13
- > `optional` **appendReleaseDescription**: `boolean`
14
-
15
- Indicates whether you would like to append the description of an available release to the
16
- notification message which is displayed to the end user.
17
-
18
- Defaults to false.
19
-
20
- ---
21
-
22
- ### descriptionPrefix?
23
-
24
- > `optional` **descriptionPrefix**: `string`
25
-
26
- Indicates the string you would like to prefix the release description with, if any, when
27
- displaying the update notification to the end user.
28
-
29
- Defaults to " Description: "
30
-
31
- ---
32
-
33
- ### mandatoryContinueButtonLabel?
34
-
35
- > `optional` **mandatoryContinueButtonLabel**: `string`
36
-
37
- The text to use for the button the end user must press in order to install a mandatory update.
38
-
39
- Defaults to "Continue".
40
-
41
- ---
42
-
43
- ### mandatoryUpdateMessage?
44
-
45
- > `optional` **mandatoryUpdateMessage**: `string`
46
-
47
- The text used as the body of an update notification, when the update is specified as mandatory.
48
-
49
- Defaults to "An update is available that must be installed.".
50
-
51
- ---
52
-
53
- ### optionalIgnoreButtonLabel?
54
-
55
- > `optional` **optionalIgnoreButtonLabel**: `string`
56
-
57
- The text to use for the button the end user can press in order to ignore an optional update that is available.
58
-
59
- Defaults to "Ignore".
60
-
61
- ---
62
-
63
- ### optionalInstallButtonLabel?
64
-
65
- > `optional` **optionalInstallButtonLabel**: `string`
66
-
67
- The text to use for the button the end user can press in order to install an optional update.
68
-
69
- Defaults to "Install".
70
-
71
- ---
72
-
73
- ### optionalUpdateMessage?
74
-
75
- > `optional` **optionalUpdateMessage**: `string`
76
-
77
- The text used as the body of an update notification, when the update is optional.
78
-
79
- Defaults to "An update is available. Would you like to install it?".
80
-
81
- ---
82
-
83
- ### title?
84
-
85
- > `optional` **title**: `string`
86
-
87
- The text used as the header of an update notification that is displayed to the end user.
88
-
89
- Defaults to "Update available".
@@ -1,21 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / DownloadProgressCallback
6
-
7
- # Type Alias: DownloadProgressCallback()
8
-
9
- > **DownloadProgressCallback**: (`progress`) => `void`
10
-
11
- Called periodically when an available update is being downloaded from the CodePush server.
12
-
13
- ## Parameters
14
-
15
- ### progress
16
-
17
- [`DownloadProgress`](../interfaces/DownloadProgress.md)
18
-
19
- ## Returns
20
-
21
- `void`
@@ -1,23 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / HandleBinaryVersionMismatchCallback
6
-
7
- # Type Alias: HandleBinaryVersionMismatchCallback()
8
-
9
- > **HandleBinaryVersionMismatchCallback**: (`update`) => `void`
10
-
11
- Called when there are any binary update available.
12
-
13
- ## Parameters
14
-
15
- ### update
16
-
17
- #### appVersion
18
-
19
- `string`
20
-
21
- ## Returns
22
-
23
- `void`
@@ -1,23 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / SyncStatusChangedCallback
6
-
7
- # Type Alias: SyncStatusChangedCallback()
8
-
9
- > **SyncStatusChangedCallback**: (`status`) => `void`
10
-
11
- Called when the sync process moves from one stage to another in the overall update process.
12
-
13
- The method is called with a status code which represents the current state, and can be any of the `SyncStatus` values.
14
-
15
- ## Parameters
16
-
17
- ### status
18
-
19
- [`SyncStatus`](../enumerations/SyncStatus.md)
20
-
21
- ## Returns
22
-
23
- `void`
@@ -1,12 +0,0 @@
1
- [**@appzung/react-native-code-push v11.0.0-rc4**](../README.md)
2
-
3
- ---
4
-
5
- [@appzung/react-native-code-push](../README.md) / DEFAULT_UPDATE_DIALOG
6
-
7
- # Variable: DEFAULT_UPDATE_DIALOG
8
-
9
- > `const` **DEFAULT_UPDATE_DIALOG**: [`UpdateDialog`](../interfaces/UpdateDialog.md)
10
-
11
- Represents the default settings that will be used by the sync method if
12
- an update dialog is configured to be displayed.
@@ -1,64 +0,0 @@
1
- ## Code signing
2
-
3
- - [Configure your release process](#configure-your-release-process)
4
- - [Setup Android](#setup-android)
5
- - [Setup iOS](#setup-ios)
6
-
7
- Code signing is a security feature that helps ensure the integrity and authenticity of your app updates.
8
- It means no attacker can alter your bundled code sent to AppZung.
9
-
10
- ### Configure your release process
11
-
12
- Generate the key pair:
13
-
14
- ```shell
15
- # generate private RSA key
16
- openssl genrsa -out private_codepush_signing_key.pem
17
- # export public key
18
- openssl rsa -pubout -in private_codepush_signing_key.pem -out public_codepush_signing_key.pem
19
- ```
20
-
21
- Store the private key securely.
22
-
23
- In the `appzung releases deploy-react-native` command that you run during your release process, add the `--private-key-path` flag pointing to the private key path.
24
- You should see `Code signing: true` in the confirmation text in interactive mode.
25
-
26
- After following the setup for your app below, if you previously sent a CodePush release without code-signing (the `--private-key-path` CLI flag), it is expected that when you check for updates CodePush doesn't present you this update, since it now expects a code signed release. Make sure when you test your integration that you sent a code-signed release.
27
-
28
- ### Setup Android
29
-
30
- Add the `CodePushSigningPublicKey` string resource in `/android/app/src/main/res/values/strings.xml`. It may look like this:
31
-
32
- ```xml
33
- <resources>
34
- <string name="app_name">my_app</string>
35
- <string name="CodePushSigningPublicKey">-----BEGIN PUBLIC KEY-----
36
- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtPSR9lkGzZ4FR0lxF+ZA
37
- P6jJ8+Xi5L601BPN4QESoRVSrJM08roOCVrs4qoYqYJy3Of2cQWvNBEh8ti3FhHu
38
- tiuLFpNdfzM4DjAw0Ti5hOTfTixqVBXTJPYpSjDh7K6tUvp9MV0l5q/Ps3se1vud
39
- M1/X6g54lIX/QoEXTdMgR+SKXvlUIC13T7GkDHT6Z4RlwxkWkOmf2tGguRcEBL6j
40
- ww7w/3g0kWILz7nNPtXyDhIB9WLH7MKSJWdVCZm+cAqabUfpCFo7sHiyHLnUxcVY
41
- OTw3sz9ceaci7z2r8SZdsfjyjiDJrq69eWtvKVUpredy9HtyALtNuLjDITahdh8A
42
- zwIDAQAB
43
- -----END PUBLIC KEY-----</string>
44
- </resources>
45
- ```
46
-
47
- ### Setup iOS
48
-
49
- Add record in `Info.plist` with name `CodePushSigningPublicKey` and string value of public key content. Example:
50
-
51
- ```xml
52
- <plist version="1.0">
53
- <dict>
54
- <!-- ...other configs... -->
55
-
56
- <key>CodePushSigningPublicKey</key>
57
- <string>-----BEGIN PUBLIC KEY-----
58
- MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANkWYydPuyOumR/sn2agNBVDnzyRpM16NAUpYPGxNgjSEp0etkDNgzzdzyvyl+OsAGBYF3jCxYOXozum+uV5hQECAwEAAQ==
59
- -----END PUBLIC KEY-----</string>
60
-
61
- <!-- ...other configs... -->
62
- </dict>
63
- </plist>
64
- ```
@@ -1,31 +0,0 @@
1
- ## Migration steps to @appzung/react-native-code-push v10+
2
-
3
- If you are less in a hurry, you can migrate to `@appzung/react-native-code-push` v10+ where we will add new features in the future and actively support the module.
4
-
5
- ### Switch to @appzung/react-native-code-push npm package
6
-
7
- 1. Replace `react-native-code-push` in your package.json with `@appzung/react-native-code-push`: `@appzung/react-native-code-push: "^10.0.0"`
8
- 2. Run `npm install` (or `yarn` depending on your project)
9
-
10
- ### Change your JS code
11
-
12
- 1. Replace every `react-native-code-push` imports with `@appzung/react-native-code-push` imports
13
- 2. (optional) As the package is now compatible with ESM, if you call CodePush functions like `CodePush.sync()` or import types/interfaces, you may have to replace your imports `import CodePush from` to selective imports `import withCodePush, { sync, DownloadProgress } from` (or `import * as CodePush from`)
14
- 3. (optional) If you use a jest global mock, move the mock from `__mocks__/react-native-code-push.ts` to `__mocks__/@appzung/react-native-code-push.ts`
15
- 4. (optional) If you use dynamic deployment assignation, rename `deploymentKey` option to `releaseChannelPublicId` (TypeScript should catch that)
16
-
17
- ### Change your iOS setup
18
-
19
- 1. Run `bundle exec pod install`
20
- 2. Rename `CodePushDeploymentKey` to `CodePushReleaseChannelPublicId` in your `Info.plist`
21
- 3. (optional) If you already use code signing, rename `CodePushPublicKey` to `CodePushSigningPublicKey` in your `Info.plist`
22
-
23
- ### Change your Android setup
24
-
25
- 1. In `android/settings.gradle` remove the lines about CodePush : `include ':react-native-code-push'` and `project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')`
26
- 2. In `android/app/build.gradle` change the line about CodePush: `apply from: "../../node_modules/@appzung/react-native-code-push/android/codepush.gradle"`
27
- 3. In your Android files (eg. `MainApplication.kt`), rename every `com.microsoft.codepush` prefix imports with `com.appzung.codepush`
28
- 4. Rename `CodePushDeploymentKey` to `CodePushReleaseChannelPublicId` in your strings resources (located either at strings.xml or app/build.gradle).
29
- 5. (optional) If you already use code signing, rename `CodePushPublicKey` to `CodePushSigningPublicKey` in your strings resources
30
- 6. (optional) If you used `CodePushBuilder` to instantiate CodePush manually, it has been removed, consider using the standard way or contact us if you really need this
31
- 7. (optional) If you used a custom CodePush `packageInstance` in your `react-native.config.js` file, it is no longer possible, consider using the standard way or contact us if you really need this