@capgo/capacitor-updater 5.50.2 → 5.51.15
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/CapgoCapacitorUpdater.podspec +1 -1
- package/Package.swift +3 -2
- package/README.md +53 -48
- package/android/build.gradle +1 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/AppLifecycleObserver.java +29 -2
- package/android/src/main/java/ee/forgr/capacitor_updater/BundleInfo.java +7 -3
- package/android/src/main/java/ee/forgr/capacitor_updater/BundleStatus.java +1 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +452 -139
- package/android/src/main/java/ee/forgr/capacitor_updater/CapgoUpdater.java +1354 -412
- package/android/src/main/java/ee/forgr/capacitor_updater/CryptoCipher.java +102 -31
- package/android/src/main/java/ee/forgr/capacitor_updater/DataManager.java +23 -7
- package/android/src/main/java/ee/forgr/capacitor_updater/DelayCondition.java +2 -2
- package/android/src/main/java/ee/forgr/capacitor_updater/DownloadService.java +540 -224
- package/android/src/main/java/ee/forgr/capacitor_updater/DownloadWorkerManager.java +103 -3
- package/android/src/main/java/ee/forgr/capacitor_updater/InternalUtils.java +1 -1
- package/android/src/main/java/ee/forgr/capacitor_updater/ShakeMenu.java +131 -145
- package/dist/docs.json +32 -8
- package/dist/esm/definitions.d.ts +41 -17
- package/dist/esm/definitions.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/AES.swift +124 -0
- package/ios/Sources/CapacitorUpdaterPlugin/BundleInfo.swift +9 -1
- package/ios/Sources/CapacitorUpdaterPlugin/BundleStatus.swift +3 -0
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +787 -92
- package/ios/Sources/CapacitorUpdaterPlugin/CapgoUpdater.swift +1014 -268
- package/ios/Sources/CapacitorUpdaterPlugin/CryptoCipher.swift +49 -31
- package/ios/Sources/CapacitorUpdaterPlugin/ShakeMenu.swift +44 -20
- package/ios/Sources/CapacitorUpdaterPlugin/WebViewStatsReporter.swift +28 -0
- package/package.json +12 -7
package/dist/docs.json
CHANGED
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"text": "{Error} If the download fails or the bundle is invalid."
|
|
157
157
|
}
|
|
158
158
|
],
|
|
159
|
-
"docs": "Download a new bundle from the provided URL for later installation.\n\nThe downloaded bundle is stored locally but not activated. To use it:\n- Call {@link next} to set it for installation on next app backgrounding/restart\n- Call {@link set} to activate it immediately (destroys current JavaScript context)\n\nThe URL should point to a zip file containing either:\n- Your app files directly in the zip root, or\n- A single folder containing all your app files\n\nThe bundle must include an `index.html` file at the root level.\n\nFor encrypted bundles, provide the `sessionKey` and `checksum` parameters.\nFor multi-file delta updates, provide the `manifest` array.\n\n**Android Background Runner note:** `@capacitor/background-runner` loads its\nconfigured runner script from native APK assets. Live updates cannot replace\nthat runner script. Keep it stable across OTA updates and ship a native app\nupdate when the runner code changes.",
|
|
159
|
+
"docs": "Download a new bundle from the provided URL for later installation.\n\nThe downloaded bundle is stored locally but not activated. To use it:\n- Call {@link next} to set it for installation on next app backgrounding/restart\n- Call {@link set} to activate it immediately (destroys current JavaScript context)\n\nThe URL should point to a zip file containing either:\n- Your app files directly in the zip root, or\n- A single folder containing all your app files\n\nThe bundle must include an `index.html` file at the root level.\n\nFor encrypted bundles, provide the `sessionKey` and `checksum` parameters.\nFor multi-file delta updates, provide the `manifest` array.\n\n**Android Background Runner note:** `@capacitor/background-runner` loads its\nconfigured runner script from native APK assets. Live updates cannot replace\nthat runner script. Keep it stable across OTA updates and ship a native app\nupdate when the runner code changes. When a bundle switch happens, Capacitor\nUpdater cancels and reschedules configured Background Runner WorkManager jobs\nand syncs the bundled runner script into native `public/` storage when present.",
|
|
160
160
|
"complexTypes": [
|
|
161
161
|
"BundleInfo",
|
|
162
162
|
"DownloadOptions"
|
|
@@ -846,7 +846,7 @@
|
|
|
846
846
|
"text": "4.7.0"
|
|
847
847
|
}
|
|
848
848
|
],
|
|
849
|
-
"docs": "Assign this device to a specific update channel at runtime.\n\nChannels allow you to distribute different bundle versions to different groups of users\n(e.g., \"production\", \"beta\", \"staging\"). This method switches the device to a new channel.\n\n**Device Override UI:** `setChannel()` validates the channel with the backend, then stores the\nselected channel locally on the device. It does not create or update
|
|
849
|
+
"docs": "Assign this device to a specific update channel at runtime.\n\nChannels allow you to distribute different bundle versions to different groups of users\n(e.g., \"production\", \"beta\", \"staging\"). This method switches the device to a new channel.\n\n**Device Override UI:** `setChannel()` validates the channel with the backend, then stores the\nselected channel locally on the device for future app restarts. It does not create or update\na backend Device Override, so the device will not appear as overridden in the Capgo dashboard.\nOnly assignments created from the dashboard or the Public API are shown in the Device Override UI.\n\n**Requirements:**\n- The target channel must allow self-assignment (configured in your Capgo dashboard or backend)\n- The backend may accept or reject the request based on channel settings\n\n**When to use:**\n- After the app is ready and the user has interacted (e.g., opted into beta program)\n- To implement in-app channel switching (beta toggle, tester access, etc.)\n- For user-driven channel changes\n\n**When NOT to use:**\n- At app boot/initialization - use {@link PluginsConfig.CapacitorUpdater.defaultChannel} config instead\n- Before user interaction\n\n**Important: Listen for the `channelPrivate` event**\n\nWhen a user attempts to set a channel that doesn't allow device self-assignment, the method will\nthrow an error AND fire a {@link addListener}('channelPrivate') event. You should listen to this event\nto provide appropriate feedback to users:\n\n```typescript\nCapacitorUpdater.addListener('channelPrivate', (data) => {\n console.warn(`Cannot access channel \"${data.channel}\": ${data.message}`);\n // Show user-friendly message\n});\n```\n\nThis sends a request to the Capgo backend to validate the specified channel, then stores the\nchannel locally on the device for future app restarts.",
|
|
850
850
|
"complexTypes": [
|
|
851
851
|
"ChannelRes",
|
|
852
852
|
"SetChannelOptions"
|
|
@@ -911,7 +911,7 @@
|
|
|
911
911
|
"text": "4.8.0"
|
|
912
912
|
}
|
|
913
913
|
],
|
|
914
|
-
"docs": "Get the current channel assigned to this device.\n\nReturns information about:\n- `channel`: The currently assigned channel name (if any)\n- `allowSet`: Whether the channel allows self-assignment\n- `status`: Operation status\n- `error`/`message`: Additional information (if applicable)\n\nUse this to:\n- Display current channel to users (e.g., \"You're on the Beta channel\")\n- Check if a device is on a specific channel before showing features\n- Verify channel assignment after calling {@link setChannel}\n\nOn native platforms, a successful response also refreshes the
|
|
914
|
+
"docs": "Get the current channel assigned to this device.\n\nReturns information about:\n- `channel`: The currently assigned channel name (if any)\n- `allowSet`: Whether the channel allows self-assignment\n- `status`: Operation status\n- `error`/`message`: Additional information (if applicable)\n\nUse this to:\n- Display current channel to users (e.g., \"You're on the Beta channel\")\n- Check if a device is on a specific channel before showing features\n- Verify channel assignment after calling {@link setChannel}\n\nOn native platforms, a successful response also refreshes the default channel used by update checks.\nThis refresh is persisted across app restarts.",
|
|
915
915
|
"complexTypes": [
|
|
916
916
|
"GetChannelRes"
|
|
917
917
|
],
|
|
@@ -4468,6 +4468,14 @@
|
|
|
4468
4468
|
{
|
|
4469
4469
|
"text": "'downloading'",
|
|
4470
4470
|
"complexTypes": []
|
|
4471
|
+
},
|
|
4472
|
+
{
|
|
4473
|
+
"text": "'deleted'",
|
|
4474
|
+
"complexTypes": []
|
|
4475
|
+
},
|
|
4476
|
+
{
|
|
4477
|
+
"text": "'deleting'",
|
|
4478
|
+
"complexTypes": []
|
|
4471
4479
|
}
|
|
4472
4480
|
]
|
|
4473
4481
|
},
|
|
@@ -4575,7 +4583,7 @@
|
|
|
4575
4583
|
"name": "example"
|
|
4576
4584
|
}
|
|
4577
4585
|
],
|
|
4578
|
-
"docs": "Configure the number of seconds the native plugin should wait before considering
|
|
4586
|
+
"docs": "Configure the number of seconds the native plugin should wait before considering an HTTP timeout.\nApplies to update checks and file downloads. On Android these are idle connect/read/write\ntimeouts and do not cap total download time; on iOS the request timeout also bounds the\ntotal download duration.\n\nOnly available for Android and iOS.",
|
|
4579
4587
|
"complexTypes": [],
|
|
4580
4588
|
"type": "number | undefined"
|
|
4581
4589
|
},
|
|
@@ -4623,7 +4631,7 @@
|
|
|
4623
4631
|
"name": "example"
|
|
4624
4632
|
}
|
|
4625
4633
|
],
|
|
4626
|
-
"docs": "Configure how the plugin checks for, downloads, and applies live updates.\n\nThe plugin checks for updates when the app moves to the foreground
|
|
4634
|
+
"docs": "Configure how the plugin checks for, downloads, and applies live updates.\n\nThe plugin checks for updates when the app moves to the foreground. When\n{@link periodCheckDelay} is greater than 0, it also checks on a repeating timer\nwhile the app stays open.\n\nBoolean values keep their existing behavior:\n- `true`: Same as `\"atBackground\"`.\n- `false`: Same as `\"off\"`.\n\nString values merge the previous Auto Update and Direct Update configuration:\n- `\"off\"`: Disable automatic update checks.\n- `\"atBackground\"`: Check and download automatically on each foreground check, then apply the update the next time the app moves to background.\n- `\"atInstall\"`: Apply immediately only after a fresh install or native app store update; otherwise use `\"atBackground\"` behavior.\n- `\"onLaunch\"`: Apply immediately only when the app is brought to the foreground from a killed state (cold start). After that first check, fall back to `\"atBackground\"` behavior.\n- `\"always\"`: Check on every foreground transition and apply immediately whenever an update is available.\n- `\"onlyDownload\"`: Check and download automatically, emit `updateAvailable`, and never set the next bundle or apply an update automatically.\n\nOnly available for Android and iOS.",
|
|
4627
4635
|
"complexTypes": [],
|
|
4628
4636
|
"type": "boolean | 'always' | 'off' | 'atBackground' | 'atInstall' | 'onLaunch' | 'onlyDownload' | undefined"
|
|
4629
4637
|
},
|
|
@@ -4687,7 +4695,7 @@
|
|
|
4687
4695
|
"name": "example"
|
|
4688
4696
|
}
|
|
4689
4697
|
],
|
|
4690
|
-
"docs": "Configure the URL / endpoint to which update statistics are sent.\n\nOnly available for Android and iOS. Set to \"\" to disable stats reporting.\nNative stats include update lifecycle events, app health signals such as crashes,\nAndroid ANRs, low-memory exits, iOS memory warnings, and WebView health signals\nsuch as JavaScript errors, unhandled promise rejections, resource load failures,\nWebView renderer exits,
|
|
4698
|
+
"docs": "Configure the URL / endpoint to which update statistics are sent.\n\nOnly available for Android and iOS. Set to \"\" to disable stats reporting.\nNative stats include update lifecycle events, app health signals such as crashes,\nAndroid ANRs, low-memory exits, iOS memory warnings, and WebView health signals\nsuch as JavaScript errors, unhandled promise rejections, resource load failures,\nWebView renderer exits, unclean WebView restarts, app launch readiness timing,\nand WebView load milestones when available.",
|
|
4691
4699
|
"complexTypes": [],
|
|
4692
4700
|
"type": "string | undefined"
|
|
4693
4701
|
},
|
|
@@ -4727,7 +4735,7 @@
|
|
|
4727
4735
|
"name": "directUpdate",
|
|
4728
4736
|
"tags": [
|
|
4729
4737
|
{
|
|
4730
|
-
"text": "Use {@link PluginsConfig.CapacitorUpdater.autoUpdate} string modes instead.\nWorks well for apps less than 10MB and with uploads done using --delta flag.\nZip or apps more than 10MB will be relatively slow for users to update.\n- false: Never do direct updates
|
|
4738
|
+
"text": "Use {@link PluginsConfig.CapacitorUpdater.autoUpdate} string modes instead.\nWorks well for apps less than 10MB and with uploads done using --delta flag.\nZip or apps more than 10MB will be relatively slow for users to update.\n- false: Never do direct updates\n- atInstall: Same as `\"atInstall\"` for {@link autoUpdate}\n- onLaunch: Same as `\"onLaunch\"` for {@link autoUpdate}\n- always: Same as `\"always\"` for {@link autoUpdate}\n- true: (deprecated) Same as \"always\" for backward compatibility\n\nActivate this flag will automatically make the CLI upload delta in CICD envs and will ask for confirmation in local uploads.\nOnly available for Android and iOS.",
|
|
4731
4739
|
"name": "deprecated"
|
|
4732
4740
|
},
|
|
4733
4741
|
{
|
|
@@ -4807,7 +4815,7 @@
|
|
|
4807
4815
|
"name": "example"
|
|
4808
4816
|
}
|
|
4809
4817
|
],
|
|
4810
|
-
"docs": "Configure the
|
|
4818
|
+
"docs": "Configure the interval in seconds for repeating update checks while the app stays open.\nForeground checks still run when this is 0. Values below 600 are normalized to 600.\n\nOnly available for Android and iOS.\nCannot be less than 600 seconds (10 minutes).",
|
|
4811
4819
|
"complexTypes": [],
|
|
4812
4820
|
"type": "number | undefined"
|
|
4813
4821
|
},
|
|
@@ -5035,6 +5043,22 @@
|
|
|
5035
5043
|
"complexTypes": [],
|
|
5036
5044
|
"type": "boolean | undefined"
|
|
5037
5045
|
},
|
|
5046
|
+
{
|
|
5047
|
+
"name": "persistDefaultChannelOnReinstall",
|
|
5048
|
+
"tags": [
|
|
5049
|
+
{
|
|
5050
|
+
"text": "true",
|
|
5051
|
+
"name": "default"
|
|
5052
|
+
},
|
|
5053
|
+
{
|
|
5054
|
+
"text": "8.51.0",
|
|
5055
|
+
"name": "since"
|
|
5056
|
+
}
|
|
5057
|
+
],
|
|
5058
|
+
"docs": "Keep the default channel stored by {@link CapacitorUpdaterPlugin.setChannel} or refreshed by\n{@link CapacitorUpdaterPlugin.getChannel} when app data is restored into a new app install.\n\n`setChannel()` and a successful `getChannel()` still persist the selected channel across app\nrestarts. When this option is `false`, native startup clears that persisted channel when it\ndetects app data restored into a new installation. Native build cleanup clears the persisted\nchannel only when `persistDefaultChannelOnReinstall` is `false`, `resetWhenUpdate` is `true`,\nand the native build version has changed.\n\nOnly available for Android and iOS.",
|
|
5059
|
+
"complexTypes": [],
|
|
5060
|
+
"type": "boolean | undefined"
|
|
5061
|
+
},
|
|
5038
5062
|
{
|
|
5039
5063
|
"name": "defaultChannel",
|
|
5040
5064
|
"tags": [
|
|
@@ -15,7 +15,10 @@ declare module '@capacitor/cli' {
|
|
|
15
15
|
*/
|
|
16
16
|
appReadyTimeout?: number;
|
|
17
17
|
/**
|
|
18
|
-
* Configure the number of seconds the native plugin should wait before considering
|
|
18
|
+
* Configure the number of seconds the native plugin should wait before considering an HTTP timeout.
|
|
19
|
+
* Applies to update checks and file downloads. On Android these are idle connect/read/write
|
|
20
|
+
* timeouts and do not cap total download time; on iOS the request timeout also bounds the
|
|
21
|
+
* total download duration.
|
|
19
22
|
*
|
|
20
23
|
* Only available for Android and iOS.
|
|
21
24
|
*
|
|
@@ -44,8 +47,9 @@ declare module '@capacitor/cli' {
|
|
|
44
47
|
/**
|
|
45
48
|
* Configure how the plugin checks for, downloads, and applies live updates.
|
|
46
49
|
*
|
|
47
|
-
* The plugin checks for updates when the app moves to the foreground
|
|
48
|
-
* {@link periodCheckDelay} is
|
|
50
|
+
* The plugin checks for updates when the app moves to the foreground. When
|
|
51
|
+
* {@link periodCheckDelay} is greater than 0, it also checks on a repeating timer
|
|
52
|
+
* while the app stays open.
|
|
49
53
|
*
|
|
50
54
|
* Boolean values keep their existing behavior:
|
|
51
55
|
* - `true`: Same as `"atBackground"`.
|
|
@@ -99,7 +103,8 @@ declare module '@capacitor/cli' {
|
|
|
99
103
|
* Native stats include update lifecycle events, app health signals such as crashes,
|
|
100
104
|
* Android ANRs, low-memory exits, iOS memory warnings, and WebView health signals
|
|
101
105
|
* such as JavaScript errors, unhandled promise rejections, resource load failures,
|
|
102
|
-
* WebView renderer exits,
|
|
106
|
+
* WebView renderer exits, unclean WebView restarts, app launch readiness timing,
|
|
107
|
+
* and WebView load milestones when available.
|
|
103
108
|
*
|
|
104
109
|
* @default https://plugin.capgo.app/stats
|
|
105
110
|
* @example https://example.com/api/stats
|
|
@@ -130,10 +135,10 @@ declare module '@capacitor/cli' {
|
|
|
130
135
|
* @deprecated Use {@link PluginsConfig.CapacitorUpdater.autoUpdate} string modes instead.
|
|
131
136
|
* Works well for apps less than 10MB and with uploads done using --delta flag.
|
|
132
137
|
* Zip or apps more than 10MB will be relatively slow for users to update.
|
|
133
|
-
* - false: Never do direct updates
|
|
134
|
-
* - atInstall:
|
|
135
|
-
* - onLaunch:
|
|
136
|
-
* - always:
|
|
138
|
+
* - false: Never do direct updates
|
|
139
|
+
* - atInstall: Same as `"atInstall"` for {@link autoUpdate}
|
|
140
|
+
* - onLaunch: Same as `"onLaunch"` for {@link autoUpdate}
|
|
141
|
+
* - always: Same as `"always"` for {@link autoUpdate}
|
|
137
142
|
* - true: (deprecated) Same as "always" for backward compatibility
|
|
138
143
|
*
|
|
139
144
|
* Activate this flag will automatically make the CLI upload delta in CICD envs and will ask for confirmation in local uploads.
|
|
@@ -181,7 +186,8 @@ declare module '@capacitor/cli' {
|
|
|
181
186
|
*/
|
|
182
187
|
autoSplashscreenTimeout?: number;
|
|
183
188
|
/**
|
|
184
|
-
* Configure the
|
|
189
|
+
* Configure the interval in seconds for repeating update checks while the app stays open.
|
|
190
|
+
* Foreground checks still run when this is 0. Values below 600 are normalized to 600.
|
|
185
191
|
*
|
|
186
192
|
* Only available for Android and iOS.
|
|
187
193
|
* Cannot be less than 600 seconds (10 minutes).
|
|
@@ -308,6 +314,22 @@ declare module '@capacitor/cli' {
|
|
|
308
314
|
* @since 7.34.0
|
|
309
315
|
*/
|
|
310
316
|
allowSetDefaultChannel?: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Keep the default channel stored by {@link CapacitorUpdaterPlugin.setChannel} or refreshed by
|
|
319
|
+
* {@link CapacitorUpdaterPlugin.getChannel} when app data is restored into a new app install.
|
|
320
|
+
*
|
|
321
|
+
* `setChannel()` and a successful `getChannel()` still persist the selected channel across app
|
|
322
|
+
* restarts. When this option is `false`, native startup clears that persisted channel when it
|
|
323
|
+
* detects app data restored into a new installation. Native build cleanup clears the persisted
|
|
324
|
+
* channel only when `persistDefaultChannelOnReinstall` is `false`, `resetWhenUpdate` is `true`,
|
|
325
|
+
* and the native build version has changed.
|
|
326
|
+
*
|
|
327
|
+
* Only available for Android and iOS.
|
|
328
|
+
*
|
|
329
|
+
* @default true
|
|
330
|
+
* @since 8.51.0
|
|
331
|
+
*/
|
|
332
|
+
persistDefaultChannelOnReinstall?: boolean;
|
|
311
333
|
/**
|
|
312
334
|
* Set the default channel for the app in the config. Case sensitive.
|
|
313
335
|
* This will setting will override the default channel set in the cloud, but will still respect overrides made in the cloud.
|
|
@@ -485,7 +507,9 @@ export interface CapacitorUpdaterPlugin {
|
|
|
485
507
|
* **Android Background Runner note:** `@capacitor/background-runner` loads its
|
|
486
508
|
* configured runner script from native APK assets. Live updates cannot replace
|
|
487
509
|
* that runner script. Keep it stable across OTA updates and ship a native app
|
|
488
|
-
* update when the runner code changes.
|
|
510
|
+
* update when the runner code changes. When a bundle switch happens, Capacitor
|
|
511
|
+
* Updater cancels and reschedules configured Background Runner WorkManager jobs
|
|
512
|
+
* and syncs the bundled runner script into native `public/` storage when present.
|
|
489
513
|
*
|
|
490
514
|
* @example
|
|
491
515
|
* const bundle = await CapacitorUpdater.download({
|
|
@@ -942,9 +966,9 @@ export interface CapacitorUpdaterPlugin {
|
|
|
942
966
|
* (e.g., "production", "beta", "staging"). This method switches the device to a new channel.
|
|
943
967
|
*
|
|
944
968
|
* **Device Override UI:** `setChannel()` validates the channel with the backend, then stores the
|
|
945
|
-
* selected channel locally on the device. It does not create or update
|
|
946
|
-
* so the device will not appear as overridden in the Capgo dashboard.
|
|
947
|
-
* from the dashboard or the Public API are shown in the Device Override UI.
|
|
969
|
+
* selected channel locally on the device for future app restarts. It does not create or update
|
|
970
|
+
* a backend Device Override, so the device will not appear as overridden in the Capgo dashboard.
|
|
971
|
+
* Only assignments created from the dashboard or the Public API are shown in the Device Override UI.
|
|
948
972
|
*
|
|
949
973
|
* **Requirements:**
|
|
950
974
|
* - The target channel must allow self-assignment (configured in your Capgo dashboard or backend)
|
|
@@ -973,7 +997,7 @@ export interface CapacitorUpdaterPlugin {
|
|
|
973
997
|
* ```
|
|
974
998
|
*
|
|
975
999
|
* This sends a request to the Capgo backend to validate the specified channel, then stores the
|
|
976
|
-
* channel locally on the device.
|
|
1000
|
+
* channel locally on the device for future app restarts.
|
|
977
1001
|
*
|
|
978
1002
|
* @param options The {@link SetChannelOptions} containing the channel name and optional auto-update trigger.
|
|
979
1003
|
* @returns {Promise<ChannelRes>} Channel operation result with status and optional error/message.
|
|
@@ -1014,8 +1038,8 @@ export interface CapacitorUpdaterPlugin {
|
|
|
1014
1038
|
* - Check if a device is on a specific channel before showing features
|
|
1015
1039
|
* - Verify channel assignment after calling {@link setChannel}
|
|
1016
1040
|
*
|
|
1017
|
-
* On native platforms, a successful response also refreshes the
|
|
1018
|
-
*
|
|
1041
|
+
* On native platforms, a successful response also refreshes the default channel used by update checks.
|
|
1042
|
+
* This refresh is persisted across app restarts.
|
|
1019
1043
|
*
|
|
1020
1044
|
* @returns {Promise<GetChannelRes>} The current channel information.
|
|
1021
1045
|
* @throws {Error} If the operation fails.
|
|
@@ -1599,7 +1623,7 @@ export interface CapacitorUpdaterPlugin {
|
|
|
1599
1623
|
* success: The bundle has been downloaded and is ready to be **SET** as the next bundle.
|
|
1600
1624
|
* error: The bundle has failed to download.
|
|
1601
1625
|
*/
|
|
1602
|
-
export type BundleStatus = 'success' | 'error' | 'pending' | 'downloading';
|
|
1626
|
+
export type BundleStatus = 'success' | 'error' | 'pending' | 'downloading' | 'deleted' | 'deleting';
|
|
1603
1627
|
export type DelayUntilNext = 'background' | 'kill' | 'nativeVersion' | 'date';
|
|
1604
1628
|
/**
|
|
1605
1629
|
* Classification for update-check responses that do not provide a downloadable bundle.
|