@appzung/react-native-code-push 10.0.1 → 10.1.1
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.
- package/README.md +3 -3
- package/android/app/src/main/java/com/appzung/codepush/react/CodePush.java +3 -0
- package/android/app/src/main/java/com/appzung/codepush/react/CodePushNativeModule.java +14 -0
- package/ios/CodePush/CodePush.h +1 -0
- package/ios/CodePush/CodePush.m +64 -13
- package/ios/CodePush/CodePushConfig.m +4 -0
- package/lib/commonjs/CodePush.js +6 -2
- package/lib/commonjs/CodePush.js.map +1 -1
- package/lib/commonjs/allowRestart.js +2 -0
- package/lib/commonjs/allowRestart.js.map +1 -1
- package/lib/commonjs/checkForUpdates.js +23 -25
- package/lib/commonjs/checkForUpdates.js.map +1 -1
- package/lib/commonjs/clearUpdates.js +2 -1
- package/lib/commonjs/clearUpdates.js.map +1 -1
- package/lib/commonjs/disallowRestart.js +2 -0
- package/lib/commonjs/disallowRestart.js.map +1 -1
- package/lib/commonjs/enums/CheckFrequency.enum.js +2 -2
- package/lib/commonjs/enums/InstallMode.enum.js +7 -3
- package/lib/commonjs/enums/InstallMode.enum.js.map +1 -1
- package/lib/commonjs/enums/SyncStatus.enum.js +7 -7
- package/lib/commonjs/enums/UpdateState.enum.js +7 -6
- package/lib/commonjs/enums/UpdateState.enum.js.map +1 -1
- package/lib/commonjs/getClientUniqueId.js +16 -0
- package/lib/commonjs/getClientUniqueId.js.map +1 -0
- package/lib/commonjs/index.js +34 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internals/CodePushApiSdk.errors.js +26 -0
- package/lib/commonjs/internals/CodePushApiSdk.errors.js.map +1 -0
- package/lib/commonjs/internals/CodePushApiSdk.js +100 -0
- package/lib/commonjs/internals/CodePushApiSdk.js.map +1 -0
- package/lib/commonjs/{enums/DeploymentStatus.enum.js → internals/CodePushApiSdk.types.js} +3 -2
- package/lib/commonjs/internals/CodePushApiSdk.types.js.map +1 -0
- package/lib/commonjs/internals/RemotePackageImplementation.js +6 -5
- package/lib/commonjs/internals/RemotePackageImplementation.js.map +1 -1
- package/lib/commonjs/internals/getConfiguration.js +4 -0
- package/lib/commonjs/internals/getConfiguration.js.map +1 -1
- package/lib/commonjs/internals/utils/fetchRetry.js +59 -0
- package/lib/commonjs/internals/utils/fetchRetry.js.map +1 -0
- package/lib/commonjs/internals/utils/queryStringify.js +25 -0
- package/lib/commonjs/internals/utils/queryStringify.js.map +1 -0
- package/lib/commonjs/internals/utils/requestFetchAdapter.js +33 -0
- package/lib/commonjs/internals/utils/requestFetchAdapter.js.map +1 -0
- package/lib/commonjs/internals/version.js +1 -1
- package/lib/commonjs/notifyAppReady.js +11 -9
- package/lib/commonjs/notifyAppReady.js.map +1 -1
- package/lib/commonjs/resetClientUniqueId.js +18 -0
- package/lib/commonjs/resetClientUniqueId.js.map +1 -0
- package/lib/commonjs/restartApp.js +2 -0
- package/lib/commonjs/restartApp.js.map +1 -1
- package/lib/commonjs/sync.js +5 -3
- package/lib/commonjs/sync.js.map +1 -1
- package/lib/module/CodePush.js +6 -2
- package/lib/module/CodePush.js.map +1 -1
- package/lib/module/allowRestart.js +2 -0
- package/lib/module/allowRestart.js.map +1 -1
- package/lib/module/checkForUpdates.js +23 -25
- package/lib/module/checkForUpdates.js.map +1 -1
- package/lib/module/clearUpdates.js +2 -1
- package/lib/module/clearUpdates.js.map +1 -1
- package/lib/module/disallowRestart.js +2 -0
- package/lib/module/disallowRestart.js.map +1 -1
- package/lib/module/enums/CheckFrequency.enum.js +2 -2
- package/lib/module/enums/InstallMode.enum.js +7 -3
- package/lib/module/enums/InstallMode.enum.js.map +1 -1
- package/lib/module/enums/SyncStatus.enum.js +7 -7
- package/lib/module/enums/UpdateState.enum.js +7 -6
- package/lib/module/enums/UpdateState.enum.js.map +1 -1
- package/lib/module/getClientUniqueId.js +12 -0
- package/lib/module/getClientUniqueId.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internals/CodePushApiSdk.errors.js +20 -0
- package/lib/module/internals/CodePushApiSdk.errors.js.map +1 -0
- package/lib/module/internals/CodePushApiSdk.js +96 -0
- package/lib/module/internals/CodePushApiSdk.js.map +1 -0
- package/lib/module/{enums/DeploymentStatus.enum.js → internals/CodePushApiSdk.types.js} +2 -1
- package/lib/module/internals/CodePushApiSdk.types.js.map +1 -0
- package/lib/module/internals/RemotePackageImplementation.js +6 -5
- package/lib/module/internals/RemotePackageImplementation.js.map +1 -1
- package/lib/module/internals/getConfiguration.js +3 -0
- package/lib/module/internals/getConfiguration.js.map +1 -1
- package/lib/module/internals/utils/fetchRetry.js +55 -0
- package/lib/module/internals/utils/fetchRetry.js.map +1 -0
- package/lib/module/internals/utils/queryStringify.js +21 -0
- package/lib/module/internals/utils/queryStringify.js.map +1 -0
- package/lib/module/internals/utils/requestFetchAdapter.js +29 -0
- package/lib/module/internals/utils/requestFetchAdapter.js.map +1 -0
- package/lib/module/internals/version.js +1 -1
- package/lib/module/notifyAppReady.js +11 -9
- package/lib/module/notifyAppReady.js.map +1 -1
- package/lib/module/resetClientUniqueId.js +14 -0
- package/lib/module/resetClientUniqueId.js.map +1 -0
- package/lib/module/restartApp.js +2 -0
- package/lib/module/restartApp.js.map +1 -1
- package/lib/module/sync.js +5 -3
- package/lib/module/sync.js.map +1 -1
- package/lib/typescript/commonjs/src/CodePush.d.ts +10 -5
- package/lib/typescript/commonjs/src/CodePush.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/allowRestart.d.ts +2 -0
- package/lib/typescript/commonjs/src/allowRestart.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/checkForUpdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/clearUpdates.d.ts +2 -1
- package/lib/typescript/commonjs/src/clearUpdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/disallowRestart.d.ts +2 -0
- package/lib/typescript/commonjs/src/disallowRestart.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/enums/CheckFrequency.enum.d.ts +2 -2
- package/lib/typescript/commonjs/src/enums/InstallMode.enum.d.ts +7 -3
- package/lib/typescript/commonjs/src/enums/InstallMode.enum.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/enums/SyncStatus.enum.d.ts +7 -7
- package/lib/typescript/commonjs/src/enums/UpdateState.enum.d.ts +7 -6
- package/lib/typescript/commonjs/src/enums/UpdateState.enum.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/getClientUniqueId.d.ts +5 -0
- package/lib/typescript/commonjs/src/getClientUniqueId.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +3 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.d.ts +13 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.errors.d.ts +9 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.types.d.ts +101 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/RNAppZungCodePushModuleSpec.d.ts +1 -0
- package/lib/typescript/commonjs/src/internals/RNAppZungCodePushModuleSpec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/RemotePackageImplementation.d.ts +2 -2
- package/lib/typescript/commonjs/src/internals/RemotePackageImplementation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/getConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/internals/getConfiguration.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/types.d.ts +2 -2
- package/lib/typescript/commonjs/src/internals/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/utils/fetchRetry.d.ts +9 -0
- package/lib/typescript/commonjs/src/internals/utils/fetchRetry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/utils/queryStringify.d.ts +4 -0
- package/lib/typescript/commonjs/src/internals/utils/queryStringify.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/utils/requestFetchAdapter.d.ts +3 -0
- package/lib/typescript/commonjs/src/internals/utils/requestFetchAdapter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/version.d.ts +1 -1
- package/lib/typescript/commonjs/src/notifyAppReady.d.ts +2 -0
- package/lib/typescript/commonjs/src/notifyAppReady.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/resetClientUniqueId.d.ts +5 -0
- package/lib/typescript/commonjs/src/resetClientUniqueId.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/restartApp.d.ts +2 -0
- package/lib/typescript/commonjs/src/restartApp.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/sync.d.ts +3 -1
- package/lib/typescript/commonjs/src/sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types.d.ts +72 -29
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -1
- package/lib/typescript/module/src/CodePush.d.ts +10 -5
- package/lib/typescript/module/src/CodePush.d.ts.map +1 -1
- package/lib/typescript/module/src/allowRestart.d.ts +2 -0
- package/lib/typescript/module/src/allowRestart.d.ts.map +1 -1
- package/lib/typescript/module/src/checkForUpdates.d.ts.map +1 -1
- package/lib/typescript/module/src/clearUpdates.d.ts +2 -1
- package/lib/typescript/module/src/clearUpdates.d.ts.map +1 -1
- package/lib/typescript/module/src/disallowRestart.d.ts +2 -0
- package/lib/typescript/module/src/disallowRestart.d.ts.map +1 -1
- package/lib/typescript/module/src/enums/CheckFrequency.enum.d.ts +2 -2
- package/lib/typescript/module/src/enums/InstallMode.enum.d.ts +7 -3
- package/lib/typescript/module/src/enums/InstallMode.enum.d.ts.map +1 -1
- package/lib/typescript/module/src/enums/SyncStatus.enum.d.ts +7 -7
- package/lib/typescript/module/src/enums/UpdateState.enum.d.ts +7 -6
- package/lib/typescript/module/src/enums/UpdateState.enum.d.ts.map +1 -1
- package/lib/typescript/module/src/getClientUniqueId.d.ts +5 -0
- package/lib/typescript/module/src/getClientUniqueId.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +3 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/CodePushApiSdk.d.ts +13 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.errors.d.ts +9 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.errors.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.types.d.ts +101 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.types.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/RNAppZungCodePushModuleSpec.d.ts +1 -0
- package/lib/typescript/module/src/internals/RNAppZungCodePushModuleSpec.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/RemotePackageImplementation.d.ts +2 -2
- package/lib/typescript/module/src/internals/RemotePackageImplementation.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/getConfiguration.d.ts +1 -0
- package/lib/typescript/module/src/internals/getConfiguration.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/types.d.ts +2 -2
- package/lib/typescript/module/src/internals/types.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/utils/fetchRetry.d.ts +9 -0
- package/lib/typescript/module/src/internals/utils/fetchRetry.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/utils/queryStringify.d.ts +4 -0
- package/lib/typescript/module/src/internals/utils/queryStringify.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/utils/requestFetchAdapter.d.ts +3 -0
- package/lib/typescript/module/src/internals/utils/requestFetchAdapter.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/version.d.ts +1 -1
- package/lib/typescript/module/src/notifyAppReady.d.ts +2 -0
- package/lib/typescript/module/src/notifyAppReady.d.ts.map +1 -1
- package/lib/typescript/module/src/resetClientUniqueId.d.ts +5 -0
- package/lib/typescript/module/src/resetClientUniqueId.d.ts.map +1 -0
- package/lib/typescript/module/src/restartApp.d.ts +2 -0
- package/lib/typescript/module/src/restartApp.d.ts.map +1 -1
- package/lib/typescript/module/src/sync.d.ts +3 -1
- package/lib/typescript/module/src/sync.d.ts.map +1 -1
- package/lib/typescript/module/src/types.d.ts +72 -29
- package/lib/typescript/module/src/types.d.ts.map +1 -1
- package/package.json +6 -4
- package/src/CodePush.tsx +12 -5
- package/src/allowRestart.ts +2 -0
- package/src/checkForUpdates.ts +24 -23
- package/src/clearUpdates.ts +2 -1
- package/src/disallowRestart.ts +2 -0
- package/src/enums/CheckFrequency.enum.ts +2 -2
- package/src/enums/InstallMode.enum.ts +7 -3
- package/src/enums/SyncStatus.enum.ts +7 -7
- package/src/enums/UpdateState.enum.ts +7 -6
- package/src/getClientUniqueId.ts +9 -0
- package/src/index.ts +3 -1
- package/src/internals/CodePushApiSdk.errors.ts +22 -0
- package/src/internals/CodePushApiSdk.ts +133 -0
- package/src/internals/CodePushApiSdk.types.ts +115 -0
- package/src/internals/RNAppZungCodePushModuleSpec.ts +1 -0
- package/src/internals/RemotePackageImplementation.ts +8 -7
- package/src/internals/getConfiguration.ts +4 -0
- package/src/internals/types.ts +2 -2
- package/src/internals/utils/fetchRetry.ts +72 -0
- package/src/internals/utils/queryStringify.ts +22 -0
- package/src/internals/utils/requestFetchAdapter.ts +28 -0
- package/src/internals/version.ts +1 -1
- package/src/notifyAppReady.ts +12 -13
- package/src/resetClientUniqueId.ts +11 -0
- package/src/restartApp.ts +2 -0
- package/src/sync.ts +5 -3
- package/src/types.ts +72 -29
- package/typedoc.json +9 -0
- package/docs/advanced-usage.md +0 -56
- package/docs/api-android.md +0 -22
- package/docs/api-ios.md +0 -19
- package/docs/api-js.md +0 -557
- package/docs/code-signing.md +0 -62
- package/docs/migrating-to-v10.md +0 -31
- package/docs/setup-android.md +0 -81
- package/docs/setup-ios.md +0 -108
- package/docs/setup-windows.md +0 -55
- package/lib/commonjs/enums/DeploymentStatus.enum.js.map +0 -1
- package/lib/commonjs/internals/AcquisitionSdk.js +0 -9
- package/lib/commonjs/internals/AcquisitionSdk.js.map +0 -1
- package/lib/commonjs/internals/getPromisifiedSdk.js +0 -49
- package/lib/commonjs/internals/getPromisifiedSdk.js.map +0 -1
- package/lib/commonjs/internals/utils/request-fetch-adapter.js +0 -50
- package/lib/commonjs/internals/utils/request-fetch-adapter.js.map +0 -1
- package/lib/module/enums/DeploymentStatus.enum.js.map +0 -1
- package/lib/module/internals/AcquisitionSdk.js +0 -5
- package/lib/module/internals/AcquisitionSdk.js.map +0 -1
- package/lib/module/internals/getPromisifiedSdk.js +0 -45
- package/lib/module/internals/getPromisifiedSdk.js.map +0 -1
- package/lib/module/internals/utils/request-fetch-adapter.js +0 -46
- package/lib/module/internals/utils/request-fetch-adapter.js.map +0 -1
- package/lib/typescript/commonjs/src/enums/DeploymentStatus.enum.d.ts +0 -14
- package/lib/typescript/commonjs/src/enums/DeploymentStatus.enum.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/internals/AcquisitionSdk.d.ts +0 -3
- package/lib/typescript/commonjs/src/internals/AcquisitionSdk.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/internals/getPromisifiedSdk.d.ts +0 -13
- package/lib/typescript/commonjs/src/internals/getPromisifiedSdk.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/internals/utils/request-fetch-adapter.d.ts +0 -3
- package/lib/typescript/commonjs/src/internals/utils/request-fetch-adapter.d.ts.map +0 -1
- package/lib/typescript/module/src/enums/DeploymentStatus.enum.d.ts +0 -14
- package/lib/typescript/module/src/enums/DeploymentStatus.enum.d.ts.map +0 -1
- package/lib/typescript/module/src/internals/AcquisitionSdk.d.ts +0 -3
- package/lib/typescript/module/src/internals/AcquisitionSdk.d.ts.map +0 -1
- package/lib/typescript/module/src/internals/getPromisifiedSdk.d.ts +0 -13
- package/lib/typescript/module/src/internals/getPromisifiedSdk.d.ts.map +0 -1
- package/lib/typescript/module/src/internals/utils/request-fetch-adapter.d.ts +0 -3
- package/lib/typescript/module/src/internals/utils/request-fetch-adapter.d.ts.map +0 -1
- package/src/enums/DeploymentStatus.enum.ts +0 -14
- package/src/internals/AcquisitionSdk.ts +0 -3
- package/src/internals/getPromisifiedSdk.ts +0 -72
- package/src/internals/utils/request-fetch-adapter.ts +0 -58
package/docs/migrating-to-v10.md
DELETED
|
@@ -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
|
package/docs/setup-android.md
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
## Android Setup
|
|
2
|
-
|
|
3
|
-
- [Plugin Installation and Configuration](#plugin-installation-and-configuration)
|
|
4
|
-
- [Code Signing setup](#code-signing-setup)
|
|
5
|
-
|
|
6
|
-
### Plugin Installation and Configuration
|
|
7
|
-
|
|
8
|
-
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:
|
|
9
|
-
|
|
10
|
-
```gradle
|
|
11
|
-
...
|
|
12
|
-
apply from: "../../node_modules/@appzung/react-native-code-push/android/codepush.gradle"
|
|
13
|
-
...
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
2. Update the `MainApplication` file to use CodePush via the following changes:
|
|
17
|
-
|
|
18
|
-
If your MainApplication is a Kotlin file, update the `MainApplication.kt`
|
|
19
|
-
|
|
20
|
-
```kotlin
|
|
21
|
-
...
|
|
22
|
-
// 1. Import the plugin class.
|
|
23
|
-
import com.appzung.codepush.react.CodePush
|
|
24
|
-
|
|
25
|
-
class MainApplication : Application(), ReactApplication {
|
|
26
|
-
|
|
27
|
-
override val reactNativeHost: ReactNativeHost =
|
|
28
|
-
object : DefaultReactNativeHost(this) {
|
|
29
|
-
...
|
|
30
|
-
|
|
31
|
-
// 2. Override the getJSBundleFile method in order to let
|
|
32
|
-
// the CodePush runtime determine where to get the JS
|
|
33
|
-
// bundle location from on each app start
|
|
34
|
-
override fun getJSBundleFile(): String {
|
|
35
|
-
return CodePush.getJSBundleFile()
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
If your MainApplication is a Java file: update the `MainApplication.java`
|
|
42
|
-
|
|
43
|
-
```java
|
|
44
|
-
...
|
|
45
|
-
// 1. Import the plugin class.
|
|
46
|
-
import com.appzung.codepush.react.CodePush;
|
|
47
|
-
|
|
48
|
-
public class MainApplication extends Application implements ReactApplication {
|
|
49
|
-
|
|
50
|
-
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
|
|
51
|
-
...
|
|
52
|
-
|
|
53
|
-
// 2. Override the getJSBundleFile method in order to let
|
|
54
|
-
// the CodePush runtime determine where to get the JS
|
|
55
|
-
// bundle location from on each app start
|
|
56
|
-
@Override
|
|
57
|
-
protected String getJSBundleFile() {
|
|
58
|
-
return CodePush.getJSBundleFile();
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
3. Add the release channel public ID to `strings.xml`:
|
|
65
|
-
|
|
66
|
-
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.
|
|
67
|
-
|
|
68
|
-
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.
|
|
69
|
-
|
|
70
|
-
Your `strings.xml` should look like this:
|
|
71
|
-
|
|
72
|
-
```xml
|
|
73
|
-
<resources>
|
|
74
|
-
<string name="app_name">AppName</string>
|
|
75
|
-
<string moduleConfig="true" name="CodePushReleaseChannelPublicId">ReleaseChannelPublicId</string>
|
|
76
|
-
</resources>
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
_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.md#CodePushOptions)_
|
|
80
|
-
|
|
81
|
-
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.md#CodePushOptions)_
|
|
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
|
package/docs/setup-windows.md
DELETED
|
@@ -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
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DeploymentStatus","exports"],"sourceRoot":"../../../src","sources":["enums/DeploymentStatus.enum.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AAFA,IAGYA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,0BAAhBA,gBAAgB;EAC1B;AACF;AACA;EAHYA,gBAAgB;EAM1B;AACF;AACA;EARYA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AcquisitionSdk = void 0;
|
|
7
|
-
var _acquisitionSdk = require("code-push/script/acquisition-sdk");
|
|
8
|
-
const AcquisitionSdk = exports.AcquisitionSdk = _acquisitionSdk.AcquisitionManager;
|
|
9
|
-
//# sourceMappingURL=AcquisitionSdk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_acquisitionSdk","require","AcquisitionSdk","exports","AcquisitionManager"],"sourceRoot":"../../../src","sources":["internals/AcquisitionSdk.ts"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAEO,MAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGE,kCAAkB","ignoreList":[]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getPromisifiedSdk = getPromisifiedSdk;
|
|
7
|
-
var _AcquisitionSdk = require("./AcquisitionSdk.js");
|
|
8
|
-
function getPromisifiedSdk(requestFetchAdapter, config) {
|
|
9
|
-
// TODO MIGRATION Temporary retro-compat while we still use code-push module
|
|
10
|
-
config.deploymentKey = config.releaseChannelPublicId;
|
|
11
|
-
const sdk = new _AcquisitionSdk.AcquisitionSdk(requestFetchAdapter, config);
|
|
12
|
-
return {
|
|
13
|
-
queryUpdateWithCurrentPackage: queryPackage => {
|
|
14
|
-
return new Promise((resolve, reject) => {
|
|
15
|
-
// @ts-expect-error sdk typing is wrong
|
|
16
|
-
_AcquisitionSdk.AcquisitionSdk.prototype.queryUpdateWithCurrentPackage.call(sdk, queryPackage, (err, update) => {
|
|
17
|
-
if (err) {
|
|
18
|
-
reject(err);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
resolve(update);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
reportStatusDeploy: (deployedPackage, status, previousLabelOrAppVersion, previousReleaseChannelPublicId) => {
|
|
26
|
-
return new Promise((resolve, reject) => {
|
|
27
|
-
_AcquisitionSdk.AcquisitionSdk.prototype.reportStatusDeploy.call(sdk, deployedPackage, status, previousLabelOrAppVersion, previousReleaseChannelPublicId, err => {
|
|
28
|
-
if (err) {
|
|
29
|
-
reject(err);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
resolve();
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
reportStatusDownload: downloadedPackage => {
|
|
37
|
-
return new Promise((resolve, reject) => {
|
|
38
|
-
_AcquisitionSdk.AcquisitionSdk.prototype.reportStatusDownload.call(sdk, downloadedPackage, err => {
|
|
39
|
-
if (err) {
|
|
40
|
-
reject(err);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
resolve();
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=getPromisifiedSdk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_AcquisitionSdk","require","getPromisifiedSdk","requestFetchAdapter","config","deploymentKey","releaseChannelPublicId","sdk","AcquisitionSdk","queryUpdateWithCurrentPackage","queryPackage","Promise","resolve","reject","prototype","call","err","update","reportStatusDeploy","deployedPackage","status","previousLabelOrAppVersion","previousReleaseChannelPublicId","reportStatusDownload","downloadedPackage"],"sourceRoot":"../../../src","sources":["internals/getPromisifiedSdk.ts"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,OAAA;AAkBO,SAASC,iBAAiBA,CAACC,mBAAmC,EAAEC,MAAqB,EAAkB;EAC5G;EACAA,MAAM,CAACC,aAAa,GAAGD,MAAM,CAACE,sBAAsB;EAEpD,MAAMC,GAAG,GAAG,IAAIC,8BAAc,CAACL,mBAAmB,EAAEC,MAAM,CAAC;EAE3D,OAAO;IACLK,6BAA6B,EAAGC,YAAY,IAAK;MAC/C,OAAO,IAAIC,OAAO,CAA2C,CAACC,OAAO,EAAEC,MAAM,KAAK;QAChF;QACAL,8BAAc,CAACM,SAAS,CAACL,6BAA6B,CAACM,IAAI,CAACR,GAAG,EAAEG,YAAY,EAAE,CAACM,GAAG,EAAEC,MAAM,KAAK;UAC9F,IAAID,GAAG,EAAE;YACPH,MAAM,CAACG,GAAG,CAAC;YACX;UACF;UAEAJ,OAAO,CAACK,MAAM,CAAC;QACjB,CAAC,CAAC;MACJ,CAAC,CAAC;IACJ,CAAC;IACDC,kBAAkB,EAAEA,CAACC,eAAe,EAAEC,MAAM,EAAEC,yBAAyB,EAAEC,8BAA8B,KAAK;MAC1G,OAAO,IAAIX,OAAO,CAAO,CAACC,OAAO,EAAEC,MAAM,KAAK;QAC5CL,8BAAc,CAACM,SAAS,CAACI,kBAAkB,CAACH,IAAI,CAC9CR,GAAG,EACHY,eAAe,EACfC,MAAM,EACNC,yBAAyB,EACzBC,8BAA8B,EAC7BN,GAAG,IAAK;UACP,IAAIA,GAAG,EAAE;YACPH,MAAM,CAACG,GAAG,CAAC;YACX;UACF;UAEAJ,OAAO,CAAC,CAAC;QACX,CACF,CAAC;MACH,CAAC,CAAC;IACJ,CAAC;IACDW,oBAAoB,EAAGC,iBAAiB,IAAK;MAC3C,OAAO,IAAIb,OAAO,CAAO,CAACC,OAAO,EAAEC,MAAM,KAAK;QAC5CL,8BAAc,CAACM,SAAS,CAACS,oBAAoB,CAACR,IAAI,CAACR,GAAG,EAAEiB,iBAAiB,EAAGR,GAAG,IAAK;UAClF,IAAIA,GAAG,EAAE;YACPH,MAAM,CAACG,GAAG,CAAC;YACX;UACF;UAEAJ,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;MACJ,CAAC,CAAC;IACJ;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.requestFetchAdapter = void 0;
|
|
7
|
-
var _version = require("../version.js");
|
|
8
|
-
const requestFetchAdapter = exports.requestFetchAdapter = {
|
|
9
|
-
// @ts-expect-error SDK typing is wrong about error callback
|
|
10
|
-
async request(verb, url, requestBody, callback) {
|
|
11
|
-
if (typeof requestBody === 'function') {
|
|
12
|
-
callback = requestBody;
|
|
13
|
-
requestBody = null;
|
|
14
|
-
}
|
|
15
|
-
const headers = {
|
|
16
|
-
Accept: 'application/json',
|
|
17
|
-
'Content-Type': 'application/json',
|
|
18
|
-
'X-CodePush-Plugin-Name': '@appzung/react-native-code-push',
|
|
19
|
-
'X-CodePush-Plugin-Version': _version.version
|
|
20
|
-
};
|
|
21
|
-
if (requestBody && typeof requestBody === 'object') {
|
|
22
|
-
requestBody = JSON.stringify(requestBody);
|
|
23
|
-
}
|
|
24
|
-
try {
|
|
25
|
-
const response = await fetch(url, {
|
|
26
|
-
method: getHttpMethodName(verb),
|
|
27
|
-
headers: headers,
|
|
28
|
-
body: requestBody
|
|
29
|
-
});
|
|
30
|
-
const statusCode = response.status;
|
|
31
|
-
const body = await response.text();
|
|
32
|
-
callback(null, {
|
|
33
|
-
statusCode,
|
|
34
|
-
body
|
|
35
|
-
});
|
|
36
|
-
} catch (err) {
|
|
37
|
-
callback(err);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
function getHttpMethodName(verb) {
|
|
42
|
-
// Note: This should stay in sync with the enum definition in
|
|
43
|
-
// https://github.com/microsoft/code-push/blob/master/sdk/script/acquisition-sdk.ts#L6
|
|
44
|
-
const methodName = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE', 'OPTIONS', 'CONNECT', 'PATCH'][verb];
|
|
45
|
-
if (!methodName) {
|
|
46
|
-
throw new Error('Invalid method name verb');
|
|
47
|
-
}
|
|
48
|
-
return methodName;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=request-fetch-adapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_version","require","requestFetchAdapter","exports","request","verb","url","requestBody","callback","headers","Accept","version","JSON","stringify","response","fetch","method","getHttpMethodName","body","statusCode","status","text","err","methodName","Error"],"sourceRoot":"../../../../src","sources":["internals/utils/request-fetch-adapter.ts"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAMO,MAAMC,mBAAmC,GAAAC,OAAA,CAAAD,mBAAA,GAAG;EACjD;EACA,MAAME,OAAOA,CACXC,IAAe,EACfC,GAAW,EACXC,WAAmC,EACnCC,QAA2B,EACZ;IACf,IAAI,OAAOD,WAAW,KAAK,UAAU,EAAE;MACrCC,QAAQ,GAAGD,WAAW;MACtBA,WAAW,GAAG,IAAI;IACpB;IAEA,MAAME,OAAO,GAAG;MACdC,MAAM,EAAE,kBAAkB;MAC1B,cAAc,EAAE,kBAAkB;MAClC,wBAAwB,EAAE,iCAAiC;MAC3D,2BAA2B,EAAEC;IAC/B,CAAC;IAED,IAAIJ,WAAW,IAAI,OAAOA,WAAW,KAAK,QAAQ,EAAE;MAClDA,WAAW,GAAGK,IAAI,CAACC,SAAS,CAACN,WAAW,CAAC;IAC3C;IAEA,IAAI;MACF,MAAMO,QAAQ,GAAG,MAAMC,KAAK,CAACT,GAAG,EAAE;QAChCU,MAAM,EAAEC,iBAAiB,CAACZ,IAAI,CAAC;QAC/BI,OAAO,EAAEA,OAAO;QAChBS,IAAI,EAAEX;MACR,CAAC,CAAC;MAEF,MAAMY,UAAU,GAAGL,QAAQ,CAACM,MAAM;MAClC,MAAMF,IAAI,GAAG,MAAMJ,QAAQ,CAACO,IAAI,CAAC,CAAC;MAClCb,QAAQ,CAAE,IAAI,EAAE;QAAEW,UAAU;QAAED;MAAK,CAAC,CAAC;IACvC,CAAC,CAAC,OAAOI,GAAG,EAAE;MACZd,QAAQ,CAAEc,GAAY,CAAC;IACzB;EACF;AACF,CAAC;AAED,SAASL,iBAAiBA,CAACZ,IAAe,EAAU;EAClD;EACA;EACA,MAAMkB,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAClB,IAAI,CAAC;EAEzG,IAAI,CAACkB,UAAU,EAAE;IACf,MAAM,IAAIC,KAAK,CAAC,0BAA0B,CAAC;EAC7C;EAEA,OAAOD,UAAU;AACnB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DeploymentStatus"],"sourceRoot":"../../../src","sources":["enums/DeploymentStatus.enum.ts"],"mappings":";;AAAA;AACA;AACA;AACA,WAAYA,gBAAgB,0BAAhBA,gBAAgB;EAC1B;AACF;AACA;EAHYA,gBAAgB;EAM1B;AACF;AACA;EARYA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AcquisitionManager","AcquisitionSdk"],"sourceRoot":"../../../src","sources":["internals/AcquisitionSdk.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,kCAAkC;AAErE,OAAO,MAAMC,cAAc,GAAGD,kBAAkB","ignoreList":[]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { AcquisitionSdk } from "./AcquisitionSdk.js";
|
|
4
|
-
export function getPromisifiedSdk(requestFetchAdapter, config) {
|
|
5
|
-
// TODO MIGRATION Temporary retro-compat while we still use code-push module
|
|
6
|
-
config.deploymentKey = config.releaseChannelPublicId;
|
|
7
|
-
const sdk = new AcquisitionSdk(requestFetchAdapter, config);
|
|
8
|
-
return {
|
|
9
|
-
queryUpdateWithCurrentPackage: queryPackage => {
|
|
10
|
-
return new Promise((resolve, reject) => {
|
|
11
|
-
// @ts-expect-error sdk typing is wrong
|
|
12
|
-
AcquisitionSdk.prototype.queryUpdateWithCurrentPackage.call(sdk, queryPackage, (err, update) => {
|
|
13
|
-
if (err) {
|
|
14
|
-
reject(err);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
resolve(update);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
},
|
|
21
|
-
reportStatusDeploy: (deployedPackage, status, previousLabelOrAppVersion, previousReleaseChannelPublicId) => {
|
|
22
|
-
return new Promise((resolve, reject) => {
|
|
23
|
-
AcquisitionSdk.prototype.reportStatusDeploy.call(sdk, deployedPackage, status, previousLabelOrAppVersion, previousReleaseChannelPublicId, err => {
|
|
24
|
-
if (err) {
|
|
25
|
-
reject(err);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
resolve();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
reportStatusDownload: downloadedPackage => {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
AcquisitionSdk.prototype.reportStatusDownload.call(sdk, downloadedPackage, err => {
|
|
35
|
-
if (err) {
|
|
36
|
-
reject(err);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
resolve();
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=getPromisifiedSdk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AcquisitionSdk","getPromisifiedSdk","requestFetchAdapter","config","deploymentKey","releaseChannelPublicId","sdk","queryUpdateWithCurrentPackage","queryPackage","Promise","resolve","reject","prototype","call","err","update","reportStatusDeploy","deployedPackage","status","previousLabelOrAppVersion","previousReleaseChannelPublicId","reportStatusDownload","downloadedPackage"],"sourceRoot":"../../../src","sources":["internals/getPromisifiedSdk.ts"],"mappings":";;AACA,SAASA,cAAc,QAAQ,qBAAkB;AAkBjD,OAAO,SAASC,iBAAiBA,CAACC,mBAAmC,EAAEC,MAAqB,EAAkB;EAC5G;EACAA,MAAM,CAACC,aAAa,GAAGD,MAAM,CAACE,sBAAsB;EAEpD,MAAMC,GAAG,GAAG,IAAIN,cAAc,CAACE,mBAAmB,EAAEC,MAAM,CAAC;EAE3D,OAAO;IACLI,6BAA6B,EAAGC,YAAY,IAAK;MAC/C,OAAO,IAAIC,OAAO,CAA2C,CAACC,OAAO,EAAEC,MAAM,KAAK;QAChF;QACAX,cAAc,CAACY,SAAS,CAACL,6BAA6B,CAACM,IAAI,CAACP,GAAG,EAAEE,YAAY,EAAE,CAACM,GAAG,EAAEC,MAAM,KAAK;UAC9F,IAAID,GAAG,EAAE;YACPH,MAAM,CAACG,GAAG,CAAC;YACX;UACF;UAEAJ,OAAO,CAACK,MAAM,CAAC;QACjB,CAAC,CAAC;MACJ,CAAC,CAAC;IACJ,CAAC;IACDC,kBAAkB,EAAEA,CAACC,eAAe,EAAEC,MAAM,EAAEC,yBAAyB,EAAEC,8BAA8B,KAAK;MAC1G,OAAO,IAAIX,OAAO,CAAO,CAACC,OAAO,EAAEC,MAAM,KAAK;QAC5CX,cAAc,CAACY,SAAS,CAACI,kBAAkB,CAACH,IAAI,CAC9CP,GAAG,EACHW,eAAe,EACfC,MAAM,EACNC,yBAAyB,EACzBC,8BAA8B,EAC7BN,GAAG,IAAK;UACP,IAAIA,GAAG,EAAE;YACPH,MAAM,CAACG,GAAG,CAAC;YACX;UACF;UAEAJ,OAAO,CAAC,CAAC;QACX,CACF,CAAC;MACH,CAAC,CAAC;IACJ,CAAC;IACDW,oBAAoB,EAAGC,iBAAiB,IAAK;MAC3C,OAAO,IAAIb,OAAO,CAAO,CAACC,OAAO,EAAEC,MAAM,KAAK;QAC5CX,cAAc,CAACY,SAAS,CAACS,oBAAoB,CAACR,IAAI,CAACP,GAAG,EAAEgB,iBAAiB,EAAGR,GAAG,IAAK;UAClF,IAAIA,GAAG,EAAE;YACPH,MAAM,CAACG,GAAG,CAAC;YACX;UACF;UAEAJ,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;MACJ,CAAC,CAAC;IACJ;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { version } from "../version.js";
|
|
4
|
-
export const requestFetchAdapter = {
|
|
5
|
-
// @ts-expect-error SDK typing is wrong about error callback
|
|
6
|
-
async request(verb, url, requestBody, callback) {
|
|
7
|
-
if (typeof requestBody === 'function') {
|
|
8
|
-
callback = requestBody;
|
|
9
|
-
requestBody = null;
|
|
10
|
-
}
|
|
11
|
-
const headers = {
|
|
12
|
-
Accept: 'application/json',
|
|
13
|
-
'Content-Type': 'application/json',
|
|
14
|
-
'X-CodePush-Plugin-Name': '@appzung/react-native-code-push',
|
|
15
|
-
'X-CodePush-Plugin-Version': version
|
|
16
|
-
};
|
|
17
|
-
if (requestBody && typeof requestBody === 'object') {
|
|
18
|
-
requestBody = JSON.stringify(requestBody);
|
|
19
|
-
}
|
|
20
|
-
try {
|
|
21
|
-
const response = await fetch(url, {
|
|
22
|
-
method: getHttpMethodName(verb),
|
|
23
|
-
headers: headers,
|
|
24
|
-
body: requestBody
|
|
25
|
-
});
|
|
26
|
-
const statusCode = response.status;
|
|
27
|
-
const body = await response.text();
|
|
28
|
-
callback(null, {
|
|
29
|
-
statusCode,
|
|
30
|
-
body
|
|
31
|
-
});
|
|
32
|
-
} catch (err) {
|
|
33
|
-
callback(err);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
function getHttpMethodName(verb) {
|
|
38
|
-
// Note: This should stay in sync with the enum definition in
|
|
39
|
-
// https://github.com/microsoft/code-push/blob/master/sdk/script/acquisition-sdk.ts#L6
|
|
40
|
-
const methodName = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE', 'OPTIONS', 'CONNECT', 'PATCH'][verb];
|
|
41
|
-
if (!methodName) {
|
|
42
|
-
throw new Error('Invalid method name verb');
|
|
43
|
-
}
|
|
44
|
-
return methodName;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=request-fetch-adapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["version","requestFetchAdapter","request","verb","url","requestBody","callback","headers","Accept","JSON","stringify","response","fetch","method","getHttpMethodName","body","statusCode","status","text","err","methodName","Error"],"sourceRoot":"../../../../src","sources":["internals/utils/request-fetch-adapter.ts"],"mappings":";;AACA,SAASA,OAAO,QAAQ,eAAY;AAMpC,OAAO,MAAMC,mBAAmC,GAAG;EACjD;EACA,MAAMC,OAAOA,CACXC,IAAe,EACfC,GAAW,EACXC,WAAmC,EACnCC,QAA2B,EACZ;IACf,IAAI,OAAOD,WAAW,KAAK,UAAU,EAAE;MACrCC,QAAQ,GAAGD,WAAW;MACtBA,WAAW,GAAG,IAAI;IACpB;IAEA,MAAME,OAAO,GAAG;MACdC,MAAM,EAAE,kBAAkB;MAC1B,cAAc,EAAE,kBAAkB;MAClC,wBAAwB,EAAE,iCAAiC;MAC3D,2BAA2B,EAAER;IAC/B,CAAC;IAED,IAAIK,WAAW,IAAI,OAAOA,WAAW,KAAK,QAAQ,EAAE;MAClDA,WAAW,GAAGI,IAAI,CAACC,SAAS,CAACL,WAAW,CAAC;IAC3C;IAEA,IAAI;MACF,MAAMM,QAAQ,GAAG,MAAMC,KAAK,CAACR,GAAG,EAAE;QAChCS,MAAM,EAAEC,iBAAiB,CAACX,IAAI,CAAC;QAC/BI,OAAO,EAAEA,OAAO;QAChBQ,IAAI,EAAEV;MACR,CAAC,CAAC;MAEF,MAAMW,UAAU,GAAGL,QAAQ,CAACM,MAAM;MAClC,MAAMF,IAAI,GAAG,MAAMJ,QAAQ,CAACO,IAAI,CAAC,CAAC;MAClCZ,QAAQ,CAAE,IAAI,EAAE;QAAEU,UAAU;QAAED;MAAK,CAAC,CAAC;IACvC,CAAC,CAAC,OAAOI,GAAG,EAAE;MACZb,QAAQ,CAAEa,GAAY,CAAC;IACzB;EACF;AACF,CAAC;AAED,SAASL,iBAAiBA,CAACX,IAAe,EAAU;EAClD;EACA;EACA,MAAMiB,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAACjB,IAAI,CAAC;EAEzG,IAAI,CAACiB,UAAU,EAAE;IACf,MAAM,IAAIC,KAAK,CAAC,0BAA0B,CAAC;EAC7C;EAEA,OAAOD,UAAU;AACnB","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Indicates the status of a deployment (after installing and restarting).
|
|
3
|
-
*/
|
|
4
|
-
export declare enum DeploymentStatus {
|
|
5
|
-
/**
|
|
6
|
-
* The deployment failed (and was rolled back).
|
|
7
|
-
*/
|
|
8
|
-
FAILED = "DeploymentFailed",
|
|
9
|
-
/**
|
|
10
|
-
* The deployment succeeded.
|
|
11
|
-
*/
|
|
12
|
-
SUCCEEDED = "DeploymentSucceeded"
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=DeploymentStatus.enum.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeploymentStatus.enum.d.ts","sourceRoot":"","sources":["../../../../../src/enums/DeploymentStatus.enum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,MAAM,qBAAqB;IAE3B;;OAEG;IACH,SAAS,wBAAwB;CAClC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcquisitionSdk.d.ts","sourceRoot":"","sources":["../../../../../src/internals/AcquisitionSdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,eAAO,MAAM,cAAc,2BAAqB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Http, NativeUpdateNotification, Package, RemotePackage } from 'code-push/script/acquisition-sdk';
|
|
2
|
-
import type { Configuration } from './types';
|
|
3
|
-
export type PromisifiedSdkQueryPackage = Pick<Package, 'appVersion'> & {
|
|
4
|
-
packageHash?: string;
|
|
5
|
-
};
|
|
6
|
-
type PromisifiedSdk = {
|
|
7
|
-
queryUpdateWithCurrentPackage: (queryPackage: PromisifiedSdkQueryPackage) => Promise<RemotePackage | NativeUpdateNotification>;
|
|
8
|
-
reportStatusDeploy: (deployedPackage?: Package, status?: string, previousLabelOrAppVersion?: string, previousDeploymentKey?: string) => Promise<void>;
|
|
9
|
-
reportStatusDownload: (downloadedPackage: Package) => Promise<void>;
|
|
10
|
-
};
|
|
11
|
-
export declare function getPromisifiedSdk(requestFetchAdapter: Http.Requester, config: Configuration): PromisifiedSdk;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=getPromisifiedSdk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPromisifiedSdk.d.ts","sourceRoot":"","sources":["../../../../../src/internals/getPromisifiedSdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAE/G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhG,KAAK,cAAc,GAAG;IACpB,6BAA6B,EAAE,CAC7B,YAAY,EAAE,0BAA0B,KACrC,OAAO,CAAC,aAAa,GAAG,wBAAwB,CAAC,CAAC;IACvD,kBAAkB,EAAE,CAClB,eAAe,CAAC,EAAE,OAAO,EACzB,MAAM,CAAC,EAAE,MAAM,EACf,yBAAyB,CAAC,EAAE,MAAM,EAClC,qBAAqB,CAAC,EAAE,MAAM,KAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,GAAG,cAAc,CAoD5G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-fetch-adapter.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/request-fetch-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAOxD,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,SAsCtC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Indicates the status of a deployment (after installing and restarting).
|
|
3
|
-
*/
|
|
4
|
-
export declare enum DeploymentStatus {
|
|
5
|
-
/**
|
|
6
|
-
* The deployment failed (and was rolled back).
|
|
7
|
-
*/
|
|
8
|
-
FAILED = "DeploymentFailed",
|
|
9
|
-
/**
|
|
10
|
-
* The deployment succeeded.
|
|
11
|
-
*/
|
|
12
|
-
SUCCEEDED = "DeploymentSucceeded"
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=DeploymentStatus.enum.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeploymentStatus.enum.d.ts","sourceRoot":"","sources":["../../../../../src/enums/DeploymentStatus.enum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,MAAM,qBAAqB;IAE3B;;OAEG;IACH,SAAS,wBAAwB;CAClC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcquisitionSdk.d.ts","sourceRoot":"","sources":["../../../../../src/internals/AcquisitionSdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,eAAO,MAAM,cAAc,2BAAqB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Http, NativeUpdateNotification, Package, RemotePackage } from 'code-push/script/acquisition-sdk';
|
|
2
|
-
import type { Configuration } from './types';
|
|
3
|
-
export type PromisifiedSdkQueryPackage = Pick<Package, 'appVersion'> & {
|
|
4
|
-
packageHash?: string;
|
|
5
|
-
};
|
|
6
|
-
type PromisifiedSdk = {
|
|
7
|
-
queryUpdateWithCurrentPackage: (queryPackage: PromisifiedSdkQueryPackage) => Promise<RemotePackage | NativeUpdateNotification>;
|
|
8
|
-
reportStatusDeploy: (deployedPackage?: Package, status?: string, previousLabelOrAppVersion?: string, previousDeploymentKey?: string) => Promise<void>;
|
|
9
|
-
reportStatusDownload: (downloadedPackage: Package) => Promise<void>;
|
|
10
|
-
};
|
|
11
|
-
export declare function getPromisifiedSdk(requestFetchAdapter: Http.Requester, config: Configuration): PromisifiedSdk;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=getPromisifiedSdk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPromisifiedSdk.d.ts","sourceRoot":"","sources":["../../../../../src/internals/getPromisifiedSdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAE/G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhG,KAAK,cAAc,GAAG;IACpB,6BAA6B,EAAE,CAC7B,YAAY,EAAE,0BAA0B,KACrC,OAAO,CAAC,aAAa,GAAG,wBAAwB,CAAC,CAAC;IACvD,kBAAkB,EAAE,CAClB,eAAe,CAAC,EAAE,OAAO,EACzB,MAAM,CAAC,EAAE,MAAM,EACf,yBAAyB,CAAC,EAAE,MAAM,EAClC,qBAAqB,CAAC,EAAE,MAAM,KAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,GAAG,cAAc,CAoD5G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-fetch-adapter.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/request-fetch-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAOxD,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,SAsCtC,CAAC"}
|