@appzung/react-native-code-push 11.0.0-rc5 → 11.0.0-rc7
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/CodePush.podspec +3 -5
- package/README.md +1 -1
- package/android/app/src/main/java/com/appzung/codepush/react/CodePushConstants.java +2 -0
- package/android/app/src/main/java/com/appzung/codepush/react/CodePushNativeModule.java +62 -0
- package/ios/CodePush/CodePush.h +10 -6
- package/ios/CodePush/{CodePush.m → CodePush.mm} +126 -142
- package/ios/CodePush/CodePushConfig.m +50 -0
- package/ios/CodePush.xcodeproj/project.pbxproj +6 -6
- package/lib/commonjs/CodePush.js.map +1 -1
- package/lib/commonjs/allowRestart.js +4 -2
- package/lib/commonjs/allowRestart.js.map +1 -1
- package/lib/commonjs/checkForUpdates.js +1 -1
- package/lib/commonjs/checkForUpdates.js.map +1 -1
- package/lib/commonjs/clearUpdates.js +4 -2
- package/lib/commonjs/clearUpdates.js.map +1 -1
- package/lib/commonjs/dataTransmission.js +28 -0
- package/lib/commonjs/dataTransmission.js.map +1 -0
- package/lib/commonjs/disallowRestart.js +4 -2
- package/lib/commonjs/disallowRestart.js.map +1 -1
- package/lib/commonjs/enums/LogLevel.enum.js +3 -0
- package/lib/commonjs/enums/LogLevel.enum.js.map +1 -1
- package/lib/commonjs/index.js +36 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internals/CodePushApiSdk.js +23 -1
- package/lib/commonjs/internals/CodePushApiSdk.js.map +1 -1
- package/lib/commonjs/internals/CodePushApiSdk.types.js.map +1 -1
- package/lib/commonjs/internals/CodePushEventEmitter.js +10 -0
- package/lib/commonjs/internals/CodePushEventEmitter.js.map +1 -0
- package/lib/commonjs/internals/RemotePackageImplementation.js +2 -3
- package/lib/commonjs/internals/RemotePackageImplementation.js.map +1 -1
- package/lib/commonjs/internals/logger.js +51 -0
- package/lib/commonjs/internals/logger.js.map +1 -0
- package/lib/commonjs/internals/utils/log.js +4 -2
- package/lib/commonjs/internals/utils/log.js.map +1 -1
- package/lib/commonjs/internals/version.js +1 -1
- package/lib/commonjs/logger.js +19 -0
- package/lib/commonjs/logger.js.map +1 -0
- package/lib/commonjs/notifyAppReady.js +4 -2
- package/lib/commonjs/notifyAppReady.js.map +1 -1
- package/lib/commonjs/restartApp.js +2 -2
- 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/commonjs/telemetry.js +28 -0
- package/lib/commonjs/telemetry.js.map +1 -0
- package/lib/module/CodePush.js.map +1 -1
- package/lib/module/allowRestart.js +3 -1
- package/lib/module/allowRestart.js.map +1 -1
- package/lib/module/checkForUpdates.js +1 -1
- package/lib/module/checkForUpdates.js.map +1 -1
- package/lib/module/clearUpdates.js +3 -1
- package/lib/module/clearUpdates.js.map +1 -1
- package/lib/module/dataTransmission.js +24 -0
- package/lib/module/dataTransmission.js.map +1 -0
- package/lib/module/disallowRestart.js +3 -1
- package/lib/module/disallowRestart.js.map +1 -1
- package/lib/module/enums/LogLevel.enum.js +3 -0
- package/lib/module/enums/LogLevel.enum.js.map +1 -1
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/internals/CodePushApiSdk.js +23 -1
- package/lib/module/internals/CodePushApiSdk.js.map +1 -1
- package/lib/module/internals/CodePushApiSdk.types.js.map +1 -1
- package/lib/module/internals/CodePushEventEmitter.js +6 -0
- package/lib/module/internals/CodePushEventEmitter.js.map +1 -0
- package/lib/module/internals/RemotePackageImplementation.js +2 -3
- package/lib/module/internals/RemotePackageImplementation.js.map +1 -1
- package/lib/module/internals/logger.js +44 -0
- package/lib/module/internals/logger.js.map +1 -0
- package/lib/module/internals/utils/log.js +4 -2
- package/lib/module/internals/utils/log.js.map +1 -1
- package/lib/module/internals/version.js +1 -1
- package/lib/module/logger.js +4 -0
- package/lib/module/logger.js.map +1 -0
- package/lib/module/notifyAppReady.js +4 -2
- package/lib/module/notifyAppReady.js.map +1 -1
- package/lib/module/restartApp.js +2 -2
- 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/module/telemetry.js +24 -0
- package/lib/module/telemetry.js.map +1 -0
- package/lib/typescript/commonjs/src/CodePush.d.ts +2 -2
- package/lib/typescript/commonjs/src/CodePush.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/allowRestart.d.ts +1 -1
- package/lib/typescript/commonjs/src/allowRestart.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/clearUpdates.d.ts +1 -1
- package/lib/typescript/commonjs/src/clearUpdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/dataTransmission.d.ts +13 -0
- package/lib/typescript/commonjs/src/dataTransmission.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/disallowRestart.d.ts +1 -1
- package/lib/typescript/commonjs/src/disallowRestart.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/enums/LogLevel.enum.d.ts +3 -0
- package/lib/typescript/commonjs/src/enums/LogLevel.enum.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.d.ts +3 -1
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.types.d.ts +2 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/CodePushEventEmitter.d.ts +3 -0
- package/lib/typescript/commonjs/src/internals/CodePushEventEmitter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/RNAppZungCodePushModuleSpec.d.ts +4 -0
- package/lib/typescript/commonjs/src/internals/RNAppZungCodePushModuleSpec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/RemotePackageImplementation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/logger.d.ts +33 -0
- package/lib/typescript/commonjs/src/internals/logger.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/utils/log.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/version.d.ts +1 -1
- package/lib/typescript/commonjs/src/logLevel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/logger.d.ts +3 -0
- package/lib/typescript/commonjs/src/logger.d.ts.map +1 -0
- 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/restartApp.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/sync.d.ts +2 -0
- package/lib/typescript/commonjs/src/sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/telemetry.d.ts +13 -0
- package/lib/typescript/commonjs/src/telemetry.d.ts.map +1 -0
- package/lib/typescript/module/src/CodePush.d.ts +2 -2
- package/lib/typescript/module/src/CodePush.d.ts.map +1 -1
- package/lib/typescript/module/src/allowRestart.d.ts +1 -1
- package/lib/typescript/module/src/allowRestart.d.ts.map +1 -1
- package/lib/typescript/module/src/clearUpdates.d.ts +1 -1
- package/lib/typescript/module/src/clearUpdates.d.ts.map +1 -1
- package/lib/typescript/module/src/dataTransmission.d.ts +13 -0
- package/lib/typescript/module/src/dataTransmission.d.ts.map +1 -0
- package/lib/typescript/module/src/disallowRestart.d.ts +1 -1
- package/lib/typescript/module/src/disallowRestart.d.ts.map +1 -1
- package/lib/typescript/module/src/enums/LogLevel.enum.d.ts +3 -0
- package/lib/typescript/module/src/enums/LogLevel.enum.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/CodePushApiSdk.d.ts +3 -1
- package/lib/typescript/module/src/internals/CodePushApiSdk.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/CodePushApiSdk.types.d.ts +2 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.types.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/CodePushEventEmitter.d.ts +3 -0
- package/lib/typescript/module/src/internals/CodePushEventEmitter.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/RNAppZungCodePushModuleSpec.d.ts +4 -0
- package/lib/typescript/module/src/internals/RNAppZungCodePushModuleSpec.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/RemotePackageImplementation.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/logger.d.ts +33 -0
- package/lib/typescript/module/src/internals/logger.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/utils/log.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/version.d.ts +1 -1
- package/lib/typescript/module/src/logLevel.d.ts.map +1 -1
- package/lib/typescript/module/src/logger.d.ts +3 -0
- package/lib/typescript/module/src/logger.d.ts.map +1 -0
- 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/restartApp.d.ts.map +1 -1
- package/lib/typescript/module/src/sync.d.ts +2 -0
- package/lib/typescript/module/src/sync.d.ts.map +1 -1
- package/lib/typescript/module/src/telemetry.d.ts +13 -0
- package/lib/typescript/module/src/telemetry.d.ts.map +1 -0
- package/package.json +23 -14
- package/scripts/generateBundledResourcesHash.js +73 -68
- package/scripts/getFilesInFolder.js +12 -12
- package/scripts/recordFilesBeforeBundleCommand.js +19 -20
- package/src/CodePush.tsx +4 -2
- package/src/allowRestart.ts +3 -1
- package/src/checkForUpdates.ts +1 -1
- package/src/clearUpdates.ts +3 -1
- package/src/dataTransmission.ts +21 -0
- package/src/disallowRestart.ts +3 -1
- package/src/enums/LogLevel.enum.ts +3 -0
- package/src/index.ts +3 -0
- package/src/internals/CodePushApiSdk.ts +27 -0
- package/src/internals/CodePushApiSdk.types.ts +2 -0
- package/src/internals/CodePushEventEmitter.ts +4 -0
- package/src/internals/RNAppZungCodePushModuleSpec.ts +6 -0
- package/src/internals/RemotePackageImplementation.ts +2 -3
- package/src/internals/logger.ts +46 -0
- package/src/internals/utils/log.ts +4 -2
- package/src/internals/version.ts +1 -1
- package/src/logger.ts +2 -0
- package/src/notifyAppReady.ts +4 -2
- package/src/restartApp.ts +2 -2
- package/src/sync.ts +5 -3
- package/src/telemetry.ts +21 -0
- package/docs/advanced-usage.md +0 -71
- package/docs/api-android.md +0 -22
- package/docs/api-ios.md +0 -19
- package/docs/api-js/README.md +0 -58
- package/docs/api-js/enumerations/CheckFrequency.md +0 -33
- package/docs/api-js/enumerations/DeploymentStatus.md +0 -25
- package/docs/api-js/enumerations/InstallMode.md +0 -50
- package/docs/api-js/enumerations/LogLevel.md +0 -31
- package/docs/api-js/enumerations/SyncStatus.md +0 -85
- package/docs/api-js/enumerations/UpdateState.md +0 -37
- package/docs/api-js/functions/allowRestart.md +0 -17
- package/docs/api-js/functions/checkForUpdate.md +0 -29
- package/docs/api-js/functions/clearUpdates.md +0 -19
- package/docs/api-js/functions/disallowRestart.md +0 -17
- package/docs/api-js/functions/getClientUniqueId.md +0 -15
- package/docs/api-js/functions/getLogLevel.md +0 -13
- package/docs/api-js/functions/getUpdateMetadata.md +0 -23
- package/docs/api-js/functions/notifyAppReady.md +0 -17
- package/docs/api-js/functions/resetClientUniqueId.md +0 -15
- package/docs/api-js/functions/restartApp.md +0 -25
- package/docs/api-js/functions/setLogLevel.md +0 -19
- package/docs/api-js/functions/sync.md +0 -43
- package/docs/api-js/functions/withCodePush.md +0 -65
- package/docs/api-js/interfaces/CodePushOptions.md +0 -118
- package/docs/api-js/interfaces/DownloadProgress.md +0 -23
- package/docs/api-js/interfaces/LocalPackage.md +0 -171
- package/docs/api-js/interfaces/Package.md +0 -98
- package/docs/api-js/interfaces/RemotePackage.md +0 -169
- package/docs/api-js/interfaces/RollbackRetryOptions.md +0 -28
- package/docs/api-js/interfaces/StatusReport.md +0 -47
- package/docs/api-js/interfaces/SyncOptions.md +0 -80
- package/docs/api-js/interfaces/UpdateDialog.md +0 -89
- package/docs/api-js/type-aliases/DownloadProgressCallback.md +0 -21
- package/docs/api-js/type-aliases/HandleBinaryVersionMismatchCallback.md +0 -23
- package/docs/api-js/type-aliases/SyncStatusChangedCallback.md +0 -23
- package/docs/api-js/variables/DEFAULT_UPDATE_DIALOG.md +0 -12
- package/docs/code-signing.md +0 -64
- package/docs/migrating-to-v10.md +0 -31
- package/docs/setup-android.md +0 -80
- package/docs/setup-ios.md +0 -108
- package/docs/setup-windows.md +0 -55
- package/typedoc.json +0 -9
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / SyncStatus
|
|
6
|
-
|
|
7
|
-
# Enumeration: SyncStatus
|
|
8
|
-
|
|
9
|
-
Indicates the current status of a sync operation.
|
|
10
|
-
|
|
11
|
-
## Enumeration Members
|
|
12
|
-
|
|
13
|
-
### AWAITING_USER_ACTION
|
|
14
|
-
|
|
15
|
-
> **AWAITING_USER_ACTION**: `6`
|
|
16
|
-
|
|
17
|
-
An update is available, and a confirmation dialog was shown
|
|
18
|
-
to the end user. (This is only applicable when the `updateDialog` is used)
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
### CHECKING_FOR_UPDATE
|
|
23
|
-
|
|
24
|
-
> **CHECKING_FOR_UPDATE**: `5`
|
|
25
|
-
|
|
26
|
-
The CodePush server is being queried for an update.
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
### DOWNLOADING_PACKAGE
|
|
31
|
-
|
|
32
|
-
> **DOWNLOADING_PACKAGE**: `7`
|
|
33
|
-
|
|
34
|
-
An available update is being downloaded from the CodePush server.
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
### INSTALLING_UPDATE
|
|
39
|
-
|
|
40
|
-
> **INSTALLING_UPDATE**: `8`
|
|
41
|
-
|
|
42
|
-
An available update was downloaded and is about to be installed.
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
### SYNC_IN_PROGRESS
|
|
47
|
-
|
|
48
|
-
> **SYNC_IN_PROGRESS**: `4`
|
|
49
|
-
|
|
50
|
-
There is an ongoing `sync` operation running which prevents the current call from being executed.
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
### UNKNOWN_ERROR
|
|
55
|
-
|
|
56
|
-
> **UNKNOWN_ERROR**: `3`
|
|
57
|
-
|
|
58
|
-
The `sync` operation encountered an unknown error.
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
### UP_TO_DATE
|
|
63
|
-
|
|
64
|
-
> **UP_TO_DATE**: `0`
|
|
65
|
-
|
|
66
|
-
The app is fully up-to-date with the configured release channel.
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
### UPDATE_IGNORED
|
|
71
|
-
|
|
72
|
-
> **UPDATE_IGNORED**: `2`
|
|
73
|
-
|
|
74
|
-
The app had an optional update which the end user chose to ignore.
|
|
75
|
-
(This is only applicable when the `updateDialog` is used)
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
### UPDATE_INSTALLED
|
|
80
|
-
|
|
81
|
-
> **UPDATE_INSTALLED**: `1`
|
|
82
|
-
|
|
83
|
-
An available update has been installed and will be run either immediately after the
|
|
84
|
-
`syncStatusChangedCallback` function returns or the next time the app resumes/restarts,
|
|
85
|
-
depending on the `InstallMode` specified in `SyncOptions`
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / UpdateState
|
|
6
|
-
|
|
7
|
-
# Enumeration: UpdateState
|
|
8
|
-
|
|
9
|
-
Indicates the state that an update is currently in.
|
|
10
|
-
|
|
11
|
-
## Enumeration Members
|
|
12
|
-
|
|
13
|
-
### LATEST
|
|
14
|
-
|
|
15
|
-
> **LATEST**: `number`
|
|
16
|
-
|
|
17
|
-
Indicates than an update represents the latest available release, and can be either currently running or pending.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
### PENDING
|
|
22
|
-
|
|
23
|
-
> **PENDING**: `number`
|
|
24
|
-
|
|
25
|
-
Indicates than an update has been installed, but the app hasn't been restarted yet in order to apply it.
|
|
26
|
-
|
|
27
|
-
This can be useful for determining whether there is a pending update, which you may want to force a programmatic restart (via `restartApp`) in order to apply.
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
### RUNNING
|
|
32
|
-
|
|
33
|
-
> **RUNNING**: `number`
|
|
34
|
-
|
|
35
|
-
Indicates that an update represents the version of the app that is currently running.
|
|
36
|
-
|
|
37
|
-
This can be useful for identifying attributes about the app, for scenarios such as displaying the release description in a "what's new?" dialog or reporting the latest version to an analytics and/or crash reporting service.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / allowRestart
|
|
6
|
-
|
|
7
|
-
# Function: allowRestart()
|
|
8
|
-
|
|
9
|
-
> **allowRestart**(): `void`
|
|
10
|
-
|
|
11
|
-
Allow CodePush to restart the app.
|
|
12
|
-
|
|
13
|
-
This is an advanced API and is only necessary if your app explicitly disallowed restarts via the `disallowRestart` method.
|
|
14
|
-
|
|
15
|
-
## Returns
|
|
16
|
-
|
|
17
|
-
`void`
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / checkForUpdate
|
|
6
|
-
|
|
7
|
-
# Function: checkForUpdate()
|
|
8
|
-
|
|
9
|
-
> **checkForUpdate**(`releaseChannelPublicId`?, `handleBinaryVersionMismatchCallback`?): `Promise`\<`null` \| [`RemotePackage`](../interfaces/RemotePackage.md)\>
|
|
10
|
-
|
|
11
|
-
Asks the CodePush service whether the configured app release channel has an update available.
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
### releaseChannelPublicId?
|
|
16
|
-
|
|
17
|
-
`string`
|
|
18
|
-
|
|
19
|
-
The release channel public ID to use to query the CodePush server for an update.
|
|
20
|
-
|
|
21
|
-
### handleBinaryVersionMismatchCallback?
|
|
22
|
-
|
|
23
|
-
[`HandleBinaryVersionMismatchCallback`](../type-aliases/HandleBinaryVersionMismatchCallback.md)
|
|
24
|
-
|
|
25
|
-
An optional callback for handling target binary version mismatch
|
|
26
|
-
|
|
27
|
-
## Returns
|
|
28
|
-
|
|
29
|
-
`Promise`\<`null` \| [`RemotePackage`](../interfaces/RemotePackage.md)\>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / clearUpdates
|
|
6
|
-
|
|
7
|
-
# Function: clearUpdates()
|
|
8
|
-
|
|
9
|
-
> **clearUpdates**(): `void`
|
|
10
|
-
|
|
11
|
-
Clears all downloaded CodePush updates.
|
|
12
|
-
|
|
13
|
-
This is useful when switching to a different release channel which may have an older release than the current package.
|
|
14
|
-
Note: we don’t recommend using this method in scenarios other than that (CodePush will call
|
|
15
|
-
this method automatically when needed in other cases) as it could lead to unpredictable behavior.
|
|
16
|
-
|
|
17
|
-
## Returns
|
|
18
|
-
|
|
19
|
-
`void`
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / disallowRestart
|
|
6
|
-
|
|
7
|
-
# Function: disallowRestart()
|
|
8
|
-
|
|
9
|
-
> **disallowRestart**(): `void`
|
|
10
|
-
|
|
11
|
-
Forbid CodePush to restart the app.
|
|
12
|
-
|
|
13
|
-
This is an advanced API, and is useful when a component within your app (for example an onboarding process) needs to ensure that no end-user interruptions can occur during its lifetime.
|
|
14
|
-
|
|
15
|
-
## Returns
|
|
16
|
-
|
|
17
|
-
`void`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / getClientUniqueId
|
|
6
|
-
|
|
7
|
-
# Function: getClientUniqueId()
|
|
8
|
-
|
|
9
|
-
> **getClientUniqueId**(): `Promise`\<`string`\>
|
|
10
|
-
|
|
11
|
-
Gets the client's unique ID set by the module. You may also see `resetClientUniqueId`.
|
|
12
|
-
|
|
13
|
-
## Returns
|
|
14
|
-
|
|
15
|
-
`Promise`\<`string`\>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / getLogLevel
|
|
6
|
-
|
|
7
|
-
# Function: getLogLevel()
|
|
8
|
-
|
|
9
|
-
> **getLogLevel**(): [`LogLevel`](../enumerations/LogLevel.md)
|
|
10
|
-
|
|
11
|
-
## Returns
|
|
12
|
-
|
|
13
|
-
[`LogLevel`](../enumerations/LogLevel.md)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / getUpdateMetadata
|
|
6
|
-
|
|
7
|
-
# Function: getUpdateMetadata()
|
|
8
|
-
|
|
9
|
-
> **getUpdateMetadata**(`updateState`?): `Promise`\<`null` \| [`LocalPackage`](../interfaces/LocalPackage.md)\>
|
|
10
|
-
|
|
11
|
-
Retrieves the metadata for an installed update (e.g. description, mandatory).
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
### updateState?
|
|
16
|
-
|
|
17
|
-
[`UpdateState`](../enumerations/UpdateState.md)
|
|
18
|
-
|
|
19
|
-
The state of the update you want to retrieve the metadata for. Defaults to UpdateState.RUNNING.
|
|
20
|
-
|
|
21
|
-
## Returns
|
|
22
|
-
|
|
23
|
-
`Promise`\<`null` \| [`LocalPackage`](../interfaces/LocalPackage.md)\>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / notifyAppReady
|
|
6
|
-
|
|
7
|
-
# Function: notifyAppReady()
|
|
8
|
-
|
|
9
|
-
> **notifyAppReady**(): `Promise`\<`void` \| [`StatusReport`](../interfaces/StatusReport.md)\>
|
|
10
|
-
|
|
11
|
-
Notifies the CodePush runtime that an installed update is considered successful.
|
|
12
|
-
|
|
13
|
-
If you are manually checking for and installing updates (i.e. not using the `sync` method to handle it all for you), then this method **MUST** be called; otherwise CodePush will treat the update as failed and rollback to the previous version when the app next restarts.
|
|
14
|
-
|
|
15
|
-
## Returns
|
|
16
|
-
|
|
17
|
-
`Promise`\<`void` \| [`StatusReport`](../interfaces/StatusReport.md)\>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / resetClientUniqueId
|
|
6
|
-
|
|
7
|
-
# Function: resetClientUniqueId()
|
|
8
|
-
|
|
9
|
-
> **resetClientUniqueId**(): `Promise`\<`string`\>
|
|
10
|
-
|
|
11
|
-
Resets the client's unique ID. You may use this in some GDPR compliance scenarios. Note that this will create a new MAU if a new request is sent later.
|
|
12
|
-
|
|
13
|
-
## Returns
|
|
14
|
-
|
|
15
|
-
`Promise`\<`string`\>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / restartApp
|
|
6
|
-
|
|
7
|
-
# Function: restartApp()
|
|
8
|
-
|
|
9
|
-
> **restartApp**(`onlyIfUpdateIsPending`): `Promise`\<`void`\>
|
|
10
|
-
|
|
11
|
-
Immediately restarts the app.
|
|
12
|
-
|
|
13
|
-
If there is an update pending, it will be immediately displayed to the end user. Otherwise, calling this method simply has the same behavior as the end user killing and restarting the process.
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### onlyIfUpdateIsPending
|
|
18
|
-
|
|
19
|
-
`boolean` = `false`
|
|
20
|
-
|
|
21
|
-
Indicates whether you want the restart to no-op if there isn't currently a pending update.
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`Promise`\<`void`\>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / setLogLevel
|
|
6
|
-
|
|
7
|
-
# Function: setLogLevel()
|
|
8
|
-
|
|
9
|
-
> **setLogLevel**(`level`): `void`
|
|
10
|
-
|
|
11
|
-
## Parameters
|
|
12
|
-
|
|
13
|
-
### level
|
|
14
|
-
|
|
15
|
-
[`LogLevel`](../enumerations/LogLevel.md)
|
|
16
|
-
|
|
17
|
-
## Returns
|
|
18
|
-
|
|
19
|
-
`void`
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / sync
|
|
6
|
-
|
|
7
|
-
# Function: sync()
|
|
8
|
-
|
|
9
|
-
> **sync**(`options`?, `syncStatusChangedCallback`?, `downloadProgressCallback`?, `handleBinaryVersionMismatchCallback`?): `Promise`\<[`SyncStatus`](../enumerations/SyncStatus.md)\>
|
|
10
|
-
|
|
11
|
-
Allows checking for an update, downloading it and installing it, all with a single call.
|
|
12
|
-
|
|
13
|
-
Unless you need custom UI and/or behavior, we recommend most developers to use this method when integrating CodePush into their apps, if they are not using the `withCodePush` HOC.
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### options?
|
|
18
|
-
|
|
19
|
-
[`SyncOptions`](../interfaces/SyncOptions.md)
|
|
20
|
-
|
|
21
|
-
Options used to configure the end-user update experience (e.g. show a prompt?, install the update immediately?).
|
|
22
|
-
|
|
23
|
-
### syncStatusChangedCallback?
|
|
24
|
-
|
|
25
|
-
[`SyncStatusChangedCallback`](../type-aliases/SyncStatusChangedCallback.md)
|
|
26
|
-
|
|
27
|
-
An optional callback that allows tracking the status of the sync operation, as opposed to simply checking the resolved state via the returned Promise.
|
|
28
|
-
|
|
29
|
-
### downloadProgressCallback?
|
|
30
|
-
|
|
31
|
-
[`DownloadProgressCallback`](../type-aliases/DownloadProgressCallback.md)
|
|
32
|
-
|
|
33
|
-
An optional callback that allows tracking the progress of an update while it is being downloaded.
|
|
34
|
-
|
|
35
|
-
### handleBinaryVersionMismatchCallback?
|
|
36
|
-
|
|
37
|
-
[`HandleBinaryVersionMismatchCallback`](../type-aliases/HandleBinaryVersionMismatchCallback.md)
|
|
38
|
-
|
|
39
|
-
An optional callback for handling target binary version mismatch
|
|
40
|
-
|
|
41
|
-
## Returns
|
|
42
|
-
|
|
43
|
-
`Promise`\<[`SyncStatus`](../enumerations/SyncStatus.md)\>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / withCodePush
|
|
6
|
-
|
|
7
|
-
# Function: withCodePush()
|
|
8
|
-
|
|
9
|
-
## Call Signature
|
|
10
|
-
|
|
11
|
-
> **withCodePush**\<`P`\>(`component`): `ComponentType`
|
|
12
|
-
|
|
13
|
-
Wraps a React component inside a "higher order" React component that knows how to synchronize your app's JavaScript bundle and image assets when it is mounted.
|
|
14
|
-
|
|
15
|
-
Internally, the higher-order component calls `sync` inside its `componentDidMount` lifecycle handle, which in turns performs an update check, downloads the update if it exists and installs the update for you.
|
|
16
|
-
|
|
17
|
-
### Type Parameters
|
|
18
|
-
|
|
19
|
-
• **P** _extends_ `object`
|
|
20
|
-
|
|
21
|
-
### Parameters
|
|
22
|
-
|
|
23
|
-
#### component
|
|
24
|
-
|
|
25
|
-
`ComponentType`\<`P`\>
|
|
26
|
-
|
|
27
|
-
the React Component that will be decorated
|
|
28
|
-
|
|
29
|
-
### Returns
|
|
30
|
-
|
|
31
|
-
`ComponentType`
|
|
32
|
-
|
|
33
|
-
## Call Signature
|
|
34
|
-
|
|
35
|
-
> **withCodePush**\<`P`\>(`options`): (`component`) => `ComponentType`
|
|
36
|
-
|
|
37
|
-
Wraps a React component inside a "higher order" React component that knows how to synchronize your app's JavaScript bundle and image assets when it is mounted.
|
|
38
|
-
|
|
39
|
-
Internally, the higher-order component calls `sync` inside its `componentDidMount` lifecycle handle, which in turns performs an update check, downloads the update if it exists and installs the update for you.
|
|
40
|
-
|
|
41
|
-
### Type Parameters
|
|
42
|
-
|
|
43
|
-
• **P** _extends_ `object`
|
|
44
|
-
|
|
45
|
-
### Parameters
|
|
46
|
-
|
|
47
|
-
#### options
|
|
48
|
-
|
|
49
|
-
[`CodePushOptions`](../interfaces/CodePushOptions.md)
|
|
50
|
-
|
|
51
|
-
Options used to configure the end-user sync and update experience (e.g. when to check for updates?, show a prompt?, install the update immediately?).
|
|
52
|
-
|
|
53
|
-
### Returns
|
|
54
|
-
|
|
55
|
-
`Function`
|
|
56
|
-
|
|
57
|
-
#### Parameters
|
|
58
|
-
|
|
59
|
-
##### component
|
|
60
|
-
|
|
61
|
-
`ComponentType`\<`P`\>
|
|
62
|
-
|
|
63
|
-
#### Returns
|
|
64
|
-
|
|
65
|
-
`ComponentType`
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / CodePushOptions
|
|
6
|
-
|
|
7
|
-
# Interface: CodePushOptions
|
|
8
|
-
|
|
9
|
-
## Extends
|
|
10
|
-
|
|
11
|
-
- [`SyncOptions`](SyncOptions.md)
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### checkFrequency?
|
|
16
|
-
|
|
17
|
-
> `optional` **checkFrequency**: [`CheckFrequency`](../enumerations/CheckFrequency.md)
|
|
18
|
-
|
|
19
|
-
Specifies when you would like to synchronize updates with the CodePush server.
|
|
20
|
-
|
|
21
|
-
Defaults to CheckFrequency.ON_APP_START.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
### ignoreFailedUpdates?
|
|
26
|
-
|
|
27
|
-
> `optional` **ignoreFailedUpdates**: `boolean`
|
|
28
|
-
|
|
29
|
-
#### Inherited from
|
|
30
|
-
|
|
31
|
-
[`SyncOptions`](SyncOptions.md).[`ignoreFailedUpdates`](SyncOptions.md#ignorefailedupdates)
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
### installMode?
|
|
36
|
-
|
|
37
|
-
> `optional` **installMode**: [`InstallMode`](../enumerations/InstallMode.md)
|
|
38
|
-
|
|
39
|
-
Specifies when you would like to install regular updates (i.e. those that aren't marked as mandatory).
|
|
40
|
-
|
|
41
|
-
Defaults to InstallMode.ON_NEXT_RESTART.
|
|
42
|
-
|
|
43
|
-
#### Inherited from
|
|
44
|
-
|
|
45
|
-
[`SyncOptions`](SyncOptions.md).[`installMode`](SyncOptions.md#installmode)
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
### mandatoryInstallMode?
|
|
50
|
-
|
|
51
|
-
> `optional` **mandatoryInstallMode**: [`InstallMode`](../enumerations/InstallMode.md)
|
|
52
|
-
|
|
53
|
-
Specifies when you would like to install updates which are marked as mandatory.
|
|
54
|
-
|
|
55
|
-
Defaults to InstallMode.IMMEDIATE.
|
|
56
|
-
|
|
57
|
-
#### Inherited from
|
|
58
|
-
|
|
59
|
-
[`SyncOptions`](SyncOptions.md).[`mandatoryInstallMode`](SyncOptions.md#mandatoryinstallmode)
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
### minimumBackgroundDuration?
|
|
64
|
-
|
|
65
|
-
> `optional` **minimumBackgroundDuration**: `number`
|
|
66
|
-
|
|
67
|
-
Specifies the minimum number of seconds that the app needs to have been in the background before restarting the app. This property
|
|
68
|
-
only applies to updates which are installed using `InstallMode.ON_NEXT_RESUME` or `InstallMode.ON_NEXT_SUSPEND`, and can be useful
|
|
69
|
-
for getting your update in front of end users sooner, without being too obtrusive. Defaults to `0`, which has the effect of applying
|
|
70
|
-
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.
|
|
71
|
-
|
|
72
|
-
#### Inherited from
|
|
73
|
-
|
|
74
|
-
[`SyncOptions`](SyncOptions.md).[`minimumBackgroundDuration`](SyncOptions.md#minimumbackgroundduration)
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
### releaseChannelPublicId?
|
|
79
|
-
|
|
80
|
-
> `optional` **releaseChannelPublicId**: `string`
|
|
81
|
-
|
|
82
|
-
Specifies the release channel you want to query for an update against.
|
|
83
|
-
|
|
84
|
-
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.
|
|
85
|
-
|
|
86
|
-
#### Inherited from
|
|
87
|
-
|
|
88
|
-
[`SyncOptions`](SyncOptions.md).[`releaseChannelPublicId`](SyncOptions.md#releasechannelpublicid)
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
### rollbackRetryOptions?
|
|
93
|
-
|
|
94
|
-
> `optional` **rollbackRetryOptions**: `true` \| [`RollbackRetryOptions`](RollbackRetryOptions.md)
|
|
95
|
-
|
|
96
|
-
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).
|
|
97
|
-
|
|
98
|
-
This defaults to null, which has the effect of disabling the retry mechanism.
|
|
99
|
-
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.
|
|
100
|
-
|
|
101
|
-
#### Inherited from
|
|
102
|
-
|
|
103
|
-
[`SyncOptions`](SyncOptions.md).[`rollbackRetryOptions`](SyncOptions.md#rollbackretryoptions)
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
### updateDialog?
|
|
108
|
-
|
|
109
|
-
> `optional` **updateDialog**: `true` \| [`UpdateDialog`](UpdateDialog.md)
|
|
110
|
-
|
|
111
|
-
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.
|
|
112
|
-
|
|
113
|
-
Defaults to null, which has the effect of disabling the dialog completely.
|
|
114
|
-
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.
|
|
115
|
-
|
|
116
|
-
#### Inherited from
|
|
117
|
-
|
|
118
|
-
[`SyncOptions`](SyncOptions.md).[`updateDialog`](SyncOptions.md#updatedialog)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[**@appzung/react-native-code-push v11.0.0-rc5**](../README.md)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
[@appzung/react-native-code-push](../README.md) / DownloadProgress
|
|
6
|
-
|
|
7
|
-
# Interface: DownloadProgress
|
|
8
|
-
|
|
9
|
-
## Properties
|
|
10
|
-
|
|
11
|
-
### receivedBytes
|
|
12
|
-
|
|
13
|
-
> **receivedBytes**: `number`
|
|
14
|
-
|
|
15
|
-
The number of bytes downloaded thus far.
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
### totalBytes
|
|
20
|
-
|
|
21
|
-
> **totalBytes**: `number`
|
|
22
|
-
|
|
23
|
-
The total number of bytes expected to be received for this update.
|