@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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export interface ApiSdkQueryUpdatePackageInfo {
|
|
2
|
+
appVersion: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
packageHash?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ApiSdkDeployReportPackageInfo {
|
|
7
|
+
label: string;
|
|
8
|
+
appVersion: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ApiSdkDownloadReportPackageInfo {
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ApiSdkRemotePackage {
|
|
14
|
+
releaseChannelPublicId: string;
|
|
15
|
+
label: string;
|
|
16
|
+
appVersion: string;
|
|
17
|
+
description: string;
|
|
18
|
+
isMandatory: boolean;
|
|
19
|
+
packageSize: number;
|
|
20
|
+
packageHash: string;
|
|
21
|
+
downloadUrl: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ApiSdkNativeUpdateNotification {
|
|
24
|
+
updateAppVersion: true;
|
|
25
|
+
appVersion: string;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace Http {
|
|
28
|
+
interface Response {
|
|
29
|
+
statusCode: number;
|
|
30
|
+
body?: string;
|
|
31
|
+
}
|
|
32
|
+
interface Requester {
|
|
33
|
+
request(verb: 'GET' | 'POST', url: string, requestBody?: string | object | null): Promise<Response>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export interface ApiSdkConfiguration {
|
|
37
|
+
appVersion: string;
|
|
38
|
+
clientUniqueId: string;
|
|
39
|
+
releaseChannelPublicId: string;
|
|
40
|
+
serverUrl: string;
|
|
41
|
+
ignoreAppVersion?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Indicates the status of a deployment (after installing and restarting).
|
|
45
|
+
*/
|
|
46
|
+
export declare enum DeploymentStatus {
|
|
47
|
+
/**
|
|
48
|
+
* The deployment failed (and was rolled back).
|
|
49
|
+
*/
|
|
50
|
+
FAILED = "DeploymentFailed",
|
|
51
|
+
/**
|
|
52
|
+
* The deployment succeeded.
|
|
53
|
+
*/
|
|
54
|
+
SUCCEEDED = "DeploymentSucceeded"
|
|
55
|
+
}
|
|
56
|
+
export interface ReportDeployInput {
|
|
57
|
+
deployment_key: string;
|
|
58
|
+
app_version: string;
|
|
59
|
+
status?: DeploymentStatus;
|
|
60
|
+
label?: string;
|
|
61
|
+
client_unique_id?: string;
|
|
62
|
+
previous_label_or_app_version?: string;
|
|
63
|
+
previous_deployment_key?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ReportDownloadInput {
|
|
66
|
+
deployment_key: string;
|
|
67
|
+
label: string;
|
|
68
|
+
client_unique_id?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface CheckUpdateRequestInput {
|
|
71
|
+
deployment_key: string;
|
|
72
|
+
app_version: string;
|
|
73
|
+
package_hash?: string;
|
|
74
|
+
label?: string;
|
|
75
|
+
client_unique_id?: string;
|
|
76
|
+
is_companion?: boolean;
|
|
77
|
+
previous_label_or_app_version?: string;
|
|
78
|
+
previous_deployment_key?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface CheckUpdateResponse {
|
|
81
|
+
update_info: {
|
|
82
|
+
is_available: true;
|
|
83
|
+
target_binary_range: string;
|
|
84
|
+
description: string;
|
|
85
|
+
is_disabled: boolean;
|
|
86
|
+
is_mandatory: boolean;
|
|
87
|
+
rollout: number;
|
|
88
|
+
download_url: string;
|
|
89
|
+
package_size: number;
|
|
90
|
+
package_hash: string;
|
|
91
|
+
label: string;
|
|
92
|
+
should_run_binary_version: boolean;
|
|
93
|
+
update_app_version: boolean;
|
|
94
|
+
} | {
|
|
95
|
+
is_available: false;
|
|
96
|
+
should_run_binary_version: boolean;
|
|
97
|
+
target_binary_range: string;
|
|
98
|
+
update_app_version?: boolean;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=CodePushApiSdk.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodePushApiSdk.types.d.ts","sourceRoot":"","sources":["../../../../../src/internals/CodePushApiSdk.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,IAAI,CAAC;IACpB,UAAiB,QAAQ;QACvB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,SAAS;QACxB,OAAO,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,QAAQ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AE,OAAO,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,yBAAyB,EAAE,OAAO,CAAC;QACnC,kBAAkB,EAAE,OAAO,CAAC;KAC7B,GACD;QACE,YAAY,EAAE,KAAK,CAAC;QACpB,yBAAyB,EAAE,OAAO,CAAC;QACnC,mBAAmB,EAAE,MAAM,CAAC;QAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,CAAC;CACP"}
|
|
@@ -16,6 +16,7 @@ export interface Spec extends TurboModule {
|
|
|
16
16
|
codePushUpdateStateRunning: number;
|
|
17
17
|
};
|
|
18
18
|
getConfiguration(): Promise<Configuration>;
|
|
19
|
+
resetClientUniqueId(): Promise<string>;
|
|
19
20
|
getUpdateMetadata(updateState: UpdateState): Promise<OmitFunctions<LocalPackage>>;
|
|
20
21
|
installUpdate(localPackage: OmitFunctions<LocalPackage>, installMode: InstallMode, minimumBackgroundDuration: number): Promise<void>;
|
|
21
22
|
downloadUpdate(remotePackage: OmitFunctions<RemotePackage>, notifyProgress: boolean): Promise<OmitFunctions<LocalPackage>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNAppZungCodePushModuleSpec.d.ts","sourceRoot":"","sources":["../../../../../src/internals/RNAppZungCodePushModuleSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa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,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClD,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACvD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Package } from 'code-push/script/acquisition-sdk';
|
|
2
1
|
import type { DownloadProgressCallback, LocalPackage, RemotePackage } from '../types';
|
|
2
|
+
import type { ApiSdkDownloadReportPackageInfo } from './CodePushApiSdk.types';
|
|
3
3
|
export declare class RemotePackageImpl implements RemotePackage {
|
|
4
|
-
constructor(remotePackageData: Omit<RemotePackage, 'download'>, reportStatusDownload
|
|
4
|
+
constructor(remotePackageData: Omit<RemotePackage, 'download'>, reportStatusDownload: (downloadedPackage: ApiSdkDownloadReportPackageInfo) => Promise<void>);
|
|
5
5
|
download: (downloadProgressCallback?: DownloadProgressCallback) => Promise<LocalPackage>;
|
|
6
6
|
appVersion: string;
|
|
7
7
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemotePackageImplementation.d.ts","sourceRoot":"","sources":["../../../../../src/internals/RemotePackageImplementation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RemotePackageImplementation.d.ts","sourceRoot":"","sources":["../../../../../src/internals/RemotePackageImplementation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAK9E,qBAAa,iBAAkB,YAAW,aAAa;gBAEnD,iBAAiB,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,EAClD,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,+BAA+B,KAAK,OAAO,CAAC,IAAI,CAAC;IA8C7F,QAAQ,EAAE,CAAC,wBAAwB,CAAC,EAAE,wBAAwB,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAEzF,UAAU,EAAG,MAAM,CAAC;IACpB,WAAW,EAAG,MAAM,CAAC;IACrB,WAAW,EAAG,MAAM,CAAC;IACrB,aAAa,EAAG,OAAO,CAAC;IACxB,UAAU,EAAG,OAAO,CAAC;IACrB,WAAW,EAAG,OAAO,CAAC;IACtB,SAAS,UAAS;IAClB,KAAK,EAAG,MAAM,CAAC;IACf,WAAW,EAAG,MAAM,CAAC;IACrB,WAAW,EAAG,MAAM,CAAC;IACrB,sBAAsB,EAAG,MAAM,CAAC;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/internals/getConfiguration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C,wBAAsB,gBAAgB,2BAMrC"}
|
|
1
|
+
{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/internals/getConfiguration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C,wBAAsB,gBAAgB,2BAMrC;AAED,wBAAsB,yBAAyB,kBAE9C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface Configuration extends
|
|
1
|
+
import type { ApiSdkConfiguration } from './CodePushApiSdk.types';
|
|
2
|
+
export interface Configuration extends ApiSdkConfiguration {
|
|
3
3
|
releaseChannelPublicId: string;
|
|
4
4
|
packageHash?: string;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internals/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internals/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,WAAW,aAAc,SAAQ,mBAAmB;IACxD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,KAAK,qBAAqB,CAAC,CAAC,IAAI;KAC7B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,GAAG,CAAC,GAAG,KAAK;CAClD,CAAC,MAAM,CAAC,CAAC,CAAC;AAEX,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function fetchRetry(url: string, options?: FetchRetryOptions, attempt?: number): Promise<Response>;
|
|
2
|
+
interface FetchRetryOptions extends RequestInit {
|
|
3
|
+
maxRetries?: number;
|
|
4
|
+
initialBackoff?: number;
|
|
5
|
+
backoffMultiplier?: number;
|
|
6
|
+
maxRetryDelay?: number;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=fetchRetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchRetry.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/fetchRetry.ts"],"names":[],"mappings":"AAAA,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,EAAE,OAAO,SAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAwC7G;AAED,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryStringify.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/queryStringify.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,MAAM,CAqBrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestFetchAdapter.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/requestFetchAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAIpD,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,SAuBtC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "10.
|
|
1
|
+
export declare const version = "10.1.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { StatusReport } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Notifies the CodePush runtime that an installed update is considered successful.
|
|
4
|
+
*
|
|
5
|
+
* 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.
|
|
4
6
|
*/
|
|
5
7
|
export declare const notifyAppReady: () => Promise<void | StatusReport>;
|
|
6
8
|
//# sourceMappingURL=notifyAppReady.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifyAppReady.d.ts","sourceRoot":"","sources":["../../../../src/notifyAppReady.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C
|
|
1
|
+
{"version":3,"file":"notifyAppReady.d.ts","sourceRoot":"","sources":["../../../../src/notifyAppReady.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,cAAc,oCAYvB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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.
|
|
3
|
+
*/
|
|
4
|
+
export declare const resetClientUniqueId: () => Promise<string>;
|
|
5
|
+
//# sourceMappingURL=resetClientUniqueId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resetClientUniqueId.d.ts","sourceRoot":"","sources":["../../../../src/resetClientUniqueId.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,mBAAmB,uBAI/B,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Immediately restarts the app.
|
|
3
3
|
*
|
|
4
|
+
* 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.
|
|
5
|
+
*
|
|
4
6
|
* @param onlyIfUpdateIsPending Indicates whether you want the restart to no-op if there isn't currently a pending update.
|
|
5
7
|
*/
|
|
6
8
|
export declare function restartApp(onlyIfUpdateIsPending?: boolean): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restartApp.d.ts","sourceRoot":"","sources":["../../../../src/restartApp.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"restartApp.d.ts","sourceRoot":"","sources":["../../../../src/restartApp.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,qBAAqB,UAAQ,iBAE7D"}
|
|
@@ -8,10 +8,12 @@ export declare const DEFAULT_UPDATE_DIALOG: UpdateDialog;
|
|
|
8
8
|
/**
|
|
9
9
|
* Allows checking for an update, downloading it and installing it, all with a single call.
|
|
10
10
|
*
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
11
13
|
* @param options Options used to configure the end-user update experience (e.g. show a prompt?, install the update immediately?).
|
|
12
14
|
* @param syncStatusChangedCallback An optional callback that allows tracking the status of the sync operation, as opposed to simply checking the resolved state via the returned Promise.
|
|
13
15
|
* @param downloadProgressCallback An optional callback that allows tracking the progress of an update while it is being downloaded.
|
|
14
16
|
* @param handleBinaryVersionMismatchCallback An optional callback for handling target binary version mismatch
|
|
15
17
|
*/
|
|
16
|
-
export declare const sync: (options?: SyncOptions,
|
|
18
|
+
export declare const sync: (options?: SyncOptions, syncStatusChangedCallback?: SyncStatusChangedCallback, downloadProgressCallback?: DownloadProgressCallback, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback) => Promise<SyncStatus>;
|
|
17
19
|
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/sync.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKrD,OAAO,KAAK,EACV,wBAAwB,EACxB,mCAAmC,EACnC,WAAW,EACX,yBAAyB,EACzB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YASnC,CAAC;AAgLF
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/sync.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKrD,OAAO,KAAK,EACV,wBAAwB,EACxB,mCAAmC,EACnC,WAAW,EACX,yBAAyB,EACzB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YASnC,CAAC;AAgLF;;;;;;;;;GASG;AACH,eAAO,MAAM,IAAI,aAUH,WAAW,8BACO,yBAAyB,6BAC1B,wBAAwB,wCACb,mCAAmC,KACxE,OAAO,CAAC,UAAU,CA4CnB,CAAC"}
|
|
@@ -1,47 +1,74 @@
|
|
|
1
|
-
import type { NativeUpdateNotification } from 'code-push/script/acquisition-sdk';
|
|
2
|
-
import type { DeploymentStatus } from './enums/DeploymentStatus.enum';
|
|
3
1
|
import type { InstallMode } from './enums/InstallMode.enum';
|
|
4
2
|
import type { SyncStatus } from './enums/SyncStatus.enum';
|
|
3
|
+
import { DeploymentStatus } from './internals/CodePushApiSdk.types';
|
|
5
4
|
export interface UpdateDialog {
|
|
6
5
|
/**
|
|
7
6
|
* Indicates whether you would like to append the description of an available release to the
|
|
8
|
-
* notification message which is displayed to the end user.
|
|
7
|
+
* notification message which is displayed to the end user.
|
|
8
|
+
*
|
|
9
|
+
* Defaults to false.
|
|
9
10
|
*/
|
|
10
11
|
appendReleaseDescription?: boolean;
|
|
11
12
|
/**
|
|
12
13
|
* Indicates the string you would like to prefix the release description with, if any, when
|
|
13
|
-
* displaying the update notification to the end user.
|
|
14
|
+
* displaying the update notification to the end user.
|
|
15
|
+
*
|
|
16
|
+
* Defaults to " Description: "
|
|
14
17
|
*/
|
|
15
18
|
descriptionPrefix?: string;
|
|
16
19
|
/**
|
|
17
|
-
* The text to use for the button the end user must press in order to install a mandatory update.
|
|
20
|
+
* The text to use for the button the end user must press in order to install a mandatory update.
|
|
21
|
+
*
|
|
22
|
+
* Defaults to "Continue".
|
|
18
23
|
*/
|
|
19
24
|
mandatoryContinueButtonLabel?: string;
|
|
20
25
|
/**
|
|
21
26
|
* The text used as the body of an update notification, when the update is specified as mandatory.
|
|
27
|
+
*
|
|
22
28
|
* Defaults to "An update is available that must be installed.".
|
|
23
29
|
*/
|
|
24
30
|
mandatoryUpdateMessage?: string;
|
|
25
31
|
/**
|
|
26
|
-
* The text to use for the button the end user can press in order to ignore an optional update that is available.
|
|
32
|
+
* The text to use for the button the end user can press in order to ignore an optional update that is available.
|
|
33
|
+
*
|
|
34
|
+
* Defaults to "Ignore".
|
|
27
35
|
*/
|
|
28
36
|
optionalIgnoreButtonLabel?: string;
|
|
29
37
|
/**
|
|
30
|
-
* The text to use for the button the end user can press in order to install an optional update.
|
|
38
|
+
* The text to use for the button the end user can press in order to install an optional update.
|
|
39
|
+
*
|
|
40
|
+
* Defaults to "Install".
|
|
31
41
|
*/
|
|
32
42
|
optionalInstallButtonLabel?: string;
|
|
33
43
|
/**
|
|
34
|
-
* The text used as the body of an update notification, when the update is optional.
|
|
44
|
+
* The text used as the body of an update notification, when the update is optional.
|
|
45
|
+
*
|
|
46
|
+
* Defaults to "An update is available. Would you like to install it?".
|
|
35
47
|
*/
|
|
36
48
|
optionalUpdateMessage?: string;
|
|
37
49
|
/**
|
|
38
|
-
* The text used as the header of an update notification that is displayed to the end user.
|
|
50
|
+
* The text used as the header of an update notification that is displayed to the end user.
|
|
51
|
+
*
|
|
52
|
+
* Defaults to "Update available".
|
|
39
53
|
*/
|
|
40
54
|
title?: string;
|
|
41
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Called periodically when an available update is being downloaded from the CodePush server.
|
|
58
|
+
*/
|
|
42
59
|
export type DownloadProgressCallback = (progress: DownloadProgress) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Called when the sync process moves from one stage to another in the overall update process.
|
|
62
|
+
*
|
|
63
|
+
* The method is called with a status code which represents the current state, and can be any of the `SyncStatus` values.
|
|
64
|
+
*/
|
|
43
65
|
export type SyncStatusChangedCallback = (status: SyncStatus) => void;
|
|
44
|
-
|
|
66
|
+
/**
|
|
67
|
+
* Called when there are any binary update available.
|
|
68
|
+
*/
|
|
69
|
+
export type HandleBinaryVersionMismatchCallback = (update: {
|
|
70
|
+
appVersion: string;
|
|
71
|
+
}) => void;
|
|
45
72
|
export interface DownloadProgress {
|
|
46
73
|
/**
|
|
47
74
|
* The total number of bytes expected to be received for this update.
|
|
@@ -52,6 +79,9 @@ export interface DownloadProgress {
|
|
|
52
79
|
*/
|
|
53
80
|
receivedBytes: number;
|
|
54
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Represents a downloaded update that is either already running, or has been installed and is pending an app restart.
|
|
84
|
+
*/
|
|
55
85
|
export interface LocalPackage extends Package {
|
|
56
86
|
/**
|
|
57
87
|
* Installs the update by saving it to the location on disk where the runtime expects to find the latest version of the app.
|
|
@@ -65,7 +95,7 @@ export interface LocalPackage extends Package {
|
|
|
65
95
|
export interface Package {
|
|
66
96
|
/**
|
|
67
97
|
* The app binary version that this update is dependent on. This is the value that was
|
|
68
|
-
* specified via the
|
|
98
|
+
* specified via the --target-binary-version parameter when calling the CLI's release command.
|
|
69
99
|
*/
|
|
70
100
|
appVersion: string;
|
|
71
101
|
/**
|
|
@@ -78,10 +108,14 @@ export interface Package {
|
|
|
78
108
|
description: string;
|
|
79
109
|
/**
|
|
80
110
|
* Indicates whether this update has been previously installed but was rolled back.
|
|
111
|
+
*
|
|
112
|
+
* The `sync` method will automatically ignore updates which have previously failed, so you only need to worry about this property if using `checkForUpdate`.
|
|
81
113
|
*/
|
|
82
114
|
failedInstall: boolean;
|
|
83
115
|
/**
|
|
84
116
|
* Indicates whether this is the first time the update has been run after being installed.
|
|
117
|
+
*
|
|
118
|
+
* This is useful for determining whether you would like to show a "What's New?" UI to the end user after installing an update.
|
|
85
119
|
*/
|
|
86
120
|
isFirstRun: boolean;
|
|
87
121
|
/**
|
|
@@ -106,6 +140,9 @@ export interface Package {
|
|
|
106
140
|
*/
|
|
107
141
|
packageSize: number;
|
|
108
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Represents an available update on the CodePush server that hasn't been downloaded yet.
|
|
145
|
+
*/
|
|
109
146
|
export interface RemotePackage extends Package {
|
|
110
147
|
/**
|
|
111
148
|
* Downloads the available update from the CodePush service.
|
|
@@ -115,24 +152,28 @@ export interface RemotePackage extends Package {
|
|
|
115
152
|
download(downloadProgressCallback?: DownloadProgressCallback): Promise<LocalPackage>;
|
|
116
153
|
/**
|
|
117
154
|
* The URL at which the package is available for download.
|
|
155
|
+
*
|
|
156
|
+
* This property is only needed for advanced usage, since the `download` method will automatically handle the acquisition of updates for you.
|
|
118
157
|
*/
|
|
119
158
|
downloadUrl: string;
|
|
120
159
|
}
|
|
121
160
|
export interface SyncOptions {
|
|
122
161
|
/**
|
|
123
|
-
* Specifies the release channel you want to query for an update against.
|
|
124
|
-
*
|
|
125
|
-
* dynamically use a different release channel for a specific call to sync.
|
|
162
|
+
* Specifies the release channel you want to query for an update against.
|
|
163
|
+
*
|
|
164
|
+
* 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.
|
|
126
165
|
*/
|
|
127
166
|
releaseChannelPublicId?: string;
|
|
128
167
|
/**
|
|
129
|
-
* Specifies when you would like to install
|
|
130
|
-
*
|
|
168
|
+
* Specifies when you would like to install regular updates (i.e. those that aren't marked as mandatory).
|
|
169
|
+
*
|
|
170
|
+
* Defaults to InstallMode.ON_NEXT_RESTART.
|
|
131
171
|
*/
|
|
132
172
|
installMode?: InstallMode;
|
|
133
173
|
/**
|
|
134
174
|
* Specifies when you would like to install updates which are marked as mandatory.
|
|
135
|
-
*
|
|
175
|
+
*
|
|
176
|
+
* Defaults to InstallMode.IMMEDIATE.
|
|
136
177
|
*/
|
|
137
178
|
mandatoryInstallMode?: InstallMode;
|
|
138
179
|
/**
|
|
@@ -143,31 +184,33 @@ export interface SyncOptions {
|
|
|
143
184
|
*/
|
|
144
185
|
minimumBackgroundDuration?: number;
|
|
145
186
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* overriding one or more of the default strings.
|
|
187
|
+
* 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.
|
|
188
|
+
*
|
|
189
|
+
* Defaults to null, which has the effect of disabling the dialog completely.
|
|
190
|
+
* 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.
|
|
150
191
|
*/
|
|
151
192
|
updateDialog?: UpdateDialog | true;
|
|
152
193
|
/**
|
|
153
|
-
* The rollback retry mechanism allows the application to attempt to reinstall an update that was previously rolled back (with the restrictions
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
* the retry mechanism with the default settings, and passing an object to this parameter allows enabling the rollback retry as well as overriding
|
|
157
|
-
* one or more of the default values.
|
|
194
|
+
* 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).
|
|
195
|
+
*
|
|
196
|
+
* This defaults to null, which has the effect of disabling the retry mechanism.
|
|
197
|
+
* 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.
|
|
158
198
|
*/
|
|
159
199
|
rollbackRetryOptions?: RollbackRetryOptions | true;
|
|
160
200
|
ignoreFailedUpdates?: boolean;
|
|
161
201
|
}
|
|
162
202
|
export interface RollbackRetryOptions {
|
|
163
203
|
/**
|
|
164
|
-
* Specifies the minimum time in hours that the app will wait after the latest rollback
|
|
165
|
-
*
|
|
204
|
+
* Specifies the minimum time in hours that the app will wait after the latest rollback before attempting to reinstall same rolled-back package.
|
|
205
|
+
*
|
|
206
|
+
* Defaults to `24`.
|
|
166
207
|
*/
|
|
167
208
|
delayInHours?: number;
|
|
168
209
|
/**
|
|
169
210
|
* Specifies the maximum number of retry attempts that the app can make before it stops trying.
|
|
170
|
-
* Cannot be less than `1`.
|
|
211
|
+
* Cannot be less than `1`.
|
|
212
|
+
*
|
|
213
|
+
* Defaults to `1`.
|
|
171
214
|
*/
|
|
172
215
|
maxRetryAttempts?: number;
|
|
173
216
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],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MAAM,CAAC;IAEtB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,8BAA8B,CAAC,EAAE,MAAM,CAAC;IAExC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC"}
|
|
@@ -4,21 +4,26 @@ import type { SyncOptions } from './types';
|
|
|
4
4
|
export interface CodePushOptions extends SyncOptions {
|
|
5
5
|
/**
|
|
6
6
|
* Specifies when you would like to synchronize updates with the CodePush server.
|
|
7
|
-
*
|
|
7
|
+
*
|
|
8
|
+
* Defaults to CheckFrequency.ON_APP_START.
|
|
8
9
|
*/
|
|
9
10
|
checkFrequency?: CheckFrequency;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
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.
|
|
13
16
|
*
|
|
14
17
|
* @param component the React Component that will be decorated
|
|
15
18
|
*/
|
|
16
|
-
export declare function withCodePush(component:
|
|
19
|
+
export declare function withCodePush<P extends object>(component: React.ComponentType<P>): React.ComponentType;
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* 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.
|
|
22
|
+
*
|
|
23
|
+
* 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.
|
|
19
24
|
*
|
|
20
25
|
* @param options 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?).
|
|
21
26
|
*/
|
|
22
|
-
export declare function withCodePush(options: CodePushOptions): (component:
|
|
27
|
+
export declare function withCodePush<P extends object>(options: CodePushOptions): (component: React.ComponentType<P>) => React.ComponentType;
|
|
23
28
|
export default withCodePush;
|
|
24
29
|
//# sourceMappingURL=CodePush.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodePush.d.ts","sourceRoot":"","sources":["../../../../src/CodePush.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG7D,OAAO,KAAK,EAGV,WAAW,EAEZ,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD
|
|
1
|
+
{"version":3,"file":"CodePush.d.ts","sourceRoot":"","sources":["../../../../src/CodePush.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG7D,OAAO,KAAK,EAGV,WAAW,EAEZ,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;;;;GAMG;AAEH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC;AAEvG;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAC3C,OAAO,EAAE,eAAe,GACvB,CAAC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,aAAa,CAAC;AAyE9D,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Allow CodePush to restart the app.
|
|
3
|
+
*
|
|
4
|
+
* This is an advanced API and is only necessary if your app explicitly disallowed restarts via the `disallowRestart` method.
|
|
3
5
|
*/
|
|
4
6
|
export declare const allowRestart: () => void;
|
|
5
7
|
//# sourceMappingURL=allowRestart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowRestart.d.ts","sourceRoot":"","sources":["../../../../src/allowRestart.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"allowRestart.d.ts","sourceRoot":"","sources":["../../../../src/allowRestart.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,IAA0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkForUpdates.d.ts","sourceRoot":"","sources":["../../../../src/checkForUpdates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkForUpdates.d.ts","sourceRoot":"","sources":["../../../../src/checkForUpdates.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mCAAmC,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAElF;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,sBAAsB,CAAC,EAAE,MAAM,EAC/B,mCAAmC,CAAC,EAAE,mCAAmC,GACxE,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAwF/B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Clears all downloaded CodePush updates.
|
|
3
|
+
*
|
|
3
4
|
* This is useful when switching to a different release channel which may have an older release than the current package.
|
|
4
|
-
* Note: we don’t recommend
|
|
5
|
+
* Note: we don’t recommend using this method in scenarios other than that (CodePush will call
|
|
5
6
|
* this method automatically when needed in other cases) as it could lead to unpredictable behavior.
|
|
6
7
|
*/
|
|
7
8
|
export declare const clearUpdates: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clearUpdates.d.ts","sourceRoot":"","sources":["../../../../src/clearUpdates.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"clearUpdates.d.ts","sourceRoot":"","sources":["../../../../src/clearUpdates.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,IAAiD,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Forbid CodePush to restart the app.
|
|
3
|
+
*
|
|
4
|
+
* 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.
|
|
3
5
|
*/
|
|
4
6
|
export declare const disallowRestart: () => void;
|
|
5
7
|
//# sourceMappingURL=disallowRestart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disallowRestart.d.ts","sourceRoot":"","sources":["../../../../src/disallowRestart.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"disallowRestart.d.ts","sourceRoot":"","sources":["../../../../src/disallowRestart.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,IAA6C,CAAC"}
|
|
@@ -7,11 +7,11 @@ export declare enum CheckFrequency {
|
|
|
7
7
|
*/
|
|
8
8
|
ON_APP_START = 0,
|
|
9
9
|
/**
|
|
10
|
-
* When the app re-enters the foreground.
|
|
10
|
+
* When the app re-enters the foreground after being "backgrounded" (user pressed the home button, app launches a separate payment process, etc.)
|
|
11
11
|
*/
|
|
12
12
|
ON_APP_RESUME = 1,
|
|
13
13
|
/**
|
|
14
|
-
* Don't automatically check for updates, but only do it when
|
|
14
|
+
* Don't automatically check for updates, but only do it when `sync()` is manually called in app code.
|
|
15
15
|
*/
|
|
16
16
|
MANUAL = 2
|
|
17
17
|
}
|