@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,80 +0,0 @@
1
- ## Android Setup
2
-
3
- - [Plugin Installation and Configuration](#plugin-installation-and-configuration)
4
-
5
- ### Plugin Installation and Configuration
6
-
7
- 1. In your `android/app/build.gradle` file, add the `codepush.gradle` file as an additional build task definition to the end of the file:
8
-
9
- ```gradle
10
- ...
11
- apply from: "../../node_modules/@appzung/react-native-code-push/android/codepush.gradle"
12
- ...
13
- ```
14
-
15
- 2. Update the `MainApplication` file to use CodePush via the following changes:
16
-
17
- If your MainApplication is a Kotlin file, update the `MainApplication.kt`
18
-
19
- ```kotlin
20
- ...
21
- // 1. Import the plugin class.
22
- import com.appzung.codepush.react.CodePush
23
-
24
- class MainApplication : Application(), ReactApplication {
25
-
26
- override val reactNativeHost: ReactNativeHost =
27
- object : DefaultReactNativeHost(this) {
28
- ...
29
-
30
- // 2. Override the getJSBundleFile method in order to let
31
- // the CodePush runtime determine where to get the JS
32
- // bundle location from on each app start
33
- override fun getJSBundleFile(): String {
34
- return CodePush.getJSBundleFile()
35
- }
36
- };
37
- }
38
- ```
39
-
40
- If your MainApplication is a Java file: update the `MainApplication.java`
41
-
42
- ```java
43
- ...
44
- // 1. Import the plugin class.
45
- import com.appzung.codepush.react.CodePush;
46
-
47
- public class MainApplication extends Application implements ReactApplication {
48
-
49
- private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
50
- ...
51
-
52
- // 2. Override the getJSBundleFile method in order to let
53
- // the CodePush runtime determine where to get the JS
54
- // bundle location from on each app start
55
- @Override
56
- protected String getJSBundleFile() {
57
- return CodePush.getJSBundleFile();
58
- }
59
- };
60
- }
61
- ```
62
-
63
- 3. Add the release channel public ID to `strings.xml`:
64
-
65
- To let the CodePush runtime know which release channel it should query for updates, open your app's `strings.xml` file and add a new string named `CodePushReleaseChannelPublicId`, whose value is the public ID of the release channel you want to configure this app against. You can retrieve this value by running `appzung release-channels list` in the AppZung CLI and copying the value of the `Public ID` column.
66
-
67
- You may want to refer to the [multiple environments](./advanced-usage.md#multiple-environments) docs before actually moving your app's usage of CodePush into production.
68
-
69
- Your `strings.xml` should look like this:
70
-
71
- ```xml
72
- <resources>
73
- <string name="app_name">AppName</string>
74
- <string moduleConfig="true" name="CodePushReleaseChannelPublicId">ReleaseChannelPublicId</string>
75
- </resources>
76
- ```
77
-
78
- _Note: If you need to dynamically use a different release channel, you can also override your release channel public ID in JS code using [Code-Push options](./api-js/interfaces/CodePushOptions.md)_
79
-
80
- 4. [Configure code signing](./code-signing.md), this is optional but recommended for security
package/docs/setup-ios.md DELETED
@@ -1,108 +0,0 @@
1
- ## iOS Setup
2
-
3
- - [Plugin Installation and Configuration](#plugin-installation-and-configuration)
4
-
5
- ### Plugin Installation and Configuration
6
-
7
- 1. Run `cd ios && pod install && cd ..` to install all the necessary CocoaPods dependencies.
8
-
9
- 2. Open up the `AppDelegate.m`/`AppDelegate.swift` file, and add an import statement for the CodePush headers:
10
-
11
- ```objective-c
12
- #import <CodePush/CodePush.h>
13
- ```
14
-
15
- ```swift
16
- import CodePush
17
- ```
18
-
19
- 3. Find the following line of code, which sets the source URL for bridge for production releases:
20
-
21
- ```objective-c
22
- return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
23
- ```
24
-
25
- ```swift
26
- Bundle.main.url(forResource: "main", withExtension: "jsbundle")
27
- ```
28
-
29
- 4. Replace it with this line:
30
-
31
- ```objective-c
32
- return [CodePush bundleURL];
33
- ```
34
-
35
- ```swift
36
- CodePush.bundleURL()
37
- ```
38
-
39
- This change configures your app to always load the most recent version of your app's JS bundle. On the first launch, this will correspond to the file that was compiled with the app. However, after an update has been pushed via CodePush, this will return the location of the most recently installed update.
40
-
41
- _NOTE: The `bundleURL` method assumes your app's JS bundle is named `main.jsbundle`. If you have configured your app to use a different file name, simply call the `bundleURLForResource:` method (which assumes you're using the `.jsbundle` extension) or `bundleURLForResource:withExtension:` method instead, in order to overwrite that default behavior_
42
-
43
- Typically, you're only going to want to use CodePush to resolve your JS bundle location within release builds, and therefore, we recommend using the `DEBUG` pre-processor macro to dynamically switch between using the packager server and CodePush, depending on whether you are debugging or not. This will make it much simpler to ensure you get the right behavior you want in production, while still being able to use the Chrome Dev Tools, live reload, etc. at debug-time.
44
-
45
- Your `sourceURLForBridge` method should look like this:
46
-
47
- ```objective-c
48
- - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
49
- {
50
- #if DEBUG
51
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
52
- #else
53
- return [CodePush bundleURL];
54
- #endif
55
- }
56
- ```
57
-
58
- ```swift
59
- override func bundleURL() -> URL? {
60
- #if DEBUG
61
- RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
62
- #else
63
- CodePush.bundleURL()
64
- #endif
65
- }
66
- ```
67
-
68
- 5. Add the Release channel public ID to `Info.plist`:
69
-
70
- To let the CodePush runtime know which release channel it should query for updates against, open your app's `Info.plist` file and add a new entry named `CodePushReleaseChannelPublicId`, whose value is the public ID of the release channel you want to configure this app against. You can retrieve this value by running `appzung release-channels list` in the AppZung CLI and copying the value of the `Public ID` column.
71
-
72
- You may want to refer to the [multiple environments](./advanced-usage.md#multiple-environments) docs before actually moving your app's usage of CodePush into production.
73
-
74
- _Note: If you need to dynamically use a different release channel, you can also override your release channel public ID in JS code using [Code-Push options](./api-js/interfaces/CodePushOptions.mds)_
75
-
76
- 6. [Configure code signing](./code-signing.md), this is optional but recommended for security
77
-
78
- ### (optional) HTTP exception domains configuration
79
-
80
- CodePush plugin makes HTTPS requests to the following domains:
81
-
82
- - codepush.appzung.com
83
- - release-package-files-eu.appzung.com
84
-
85
- If you want to change the default HTTP security configuration for any of these domains (most of the time you don't), you have to define the [`NSAppTransportSecurity` (ATS)][ats] configuration inside your **Info.plist** file:
86
-
87
- ```xml
88
- <plist version="1.0">
89
- <dict>
90
- <!-- ...other configs... -->
91
-
92
- <key>NSAppTransportSecurity</key>
93
- <dict>
94
- <key>NSExceptionDomains</key>
95
- <dict>
96
- <key>codepush.appzung.com</key>
97
- <dict><!-- read the ATS Apple Docs for available options --></dict>
98
- </dict>
99
- </dict>
100
-
101
- <!-- ...other configs... -->
102
- </dict>
103
- </plist>
104
- ```
105
-
106
- Before doing anything, please [read the docs][ats] first.
107
-
108
- [ats]: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33
@@ -1,55 +0,0 @@
1
- ## Windows Setup
2
-
3
- Once you've acquired the CodePush plugin, you need to integrate it into the Visual Studio project of your React Native app and configure it correctly. To do this, take the following steps:
4
-
5
- ### Plugin Installation (Windows-npx)
6
-
7
- Once the plugin has been downloaded, run `npx react-native autolink-windows` in your application's root directory to automatically add the CodePush c++ project to your application's windows solution file.
8
-
9
- ### Plugin Configuration (Windows)
10
-
11
- 1. Replace the following files located at `windows/<app name>` with those in the CodePushDemoAppCpp example app in this repo found at `Examples/CodePushDemoAppCpp/windows/CodePushDemoAppCpp`:
12
-
13
- 1. app.h
14
- 2. app.cpp
15
- 3. app.xaml
16
-
17
- 2. In the above files, replace any occurance of `CodePushDemoAppCpp` with the name of your application
18
-
19
- 3. Enter your application's app version and release channel public ID to the `configMap` object at the top of your app's `OnLaunched` method in `App.cpp`:
20
-
21
- ```c++
22
- ...
23
- void App::OnLaunched(activation::LaunchActivatedEventArgs const& e)
24
- {
25
- winrt::Microsoft::CodePush::ReactNative::CodePushConfig::SetHost(Host());
26
- auto configMap{ winrt::single_threaded_map<hstring, hstring>() };
27
- configMap.Insert(L"appVersion", L"1.0.0");
28
- configMap.Insert(L"releaseChannelPublicId", L"<app release channel public id>");
29
- winrt::Microsoft::CodePush::ReactNative::CodePushConfig::Init(configMap);
30
- ...
31
- }
32
- ...
33
- ```
34
-
35
- ### Plugin Configuration (Windows) C#
36
-
37
- 1. add name space `Microsoft.CodePush` to `App.xaml.cs`
38
-
39
- 2. add app version and release channel public ID to `configMap` at the start of your app's `OnLaunched` method in `App.xaml.cs`.
40
-
41
- ```c#
42
- using Microsoft.CodePush;
43
-
44
- ...
45
- protected override void OnLaunched(LaunchActivatedEventArgs e)
46
- {
47
- Microsoft.CodePush.ReactNative.CodePushConfig.SetHost(Host);
48
- IDictionary<string, string> configMap = new Dictionary<string, string>();
49
- configMap.Add("appVersion", "1.0.0");
50
- configMap.Add("releaseChannelPublicId", "release channel public id");
51
- Microsoft.CodePush.ReactNative.CodePushConfig.Init(configMap);
52
- ...
53
- }
54
- ...
55
- ```
package/typedoc.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "plugin": ["typedoc-plugin-markdown"],
3
- "entryPoints": ["./src/index.ts"],
4
- "out": "./docs/api-js",
5
- "readme": "none",
6
- "formatWithPrettier": true,
7
- "includeVersion": true,
8
- "disableSources": true
9
- }