@capawesome/capacitor-live-update 8.4.4 → 8.5.0

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/dist/docs.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "text": "7.4.0"
17
17
  }
18
18
  ],
19
- "docs": "Clear all blocked bundles from the blocked list.\n\nThis removes all bundle identifiers that were automatically blocked\ndue to rollbacks when `autoBlockRolledBackBundles` is enabled.\n\nOnly available on Android and iOS.",
19
+ "docs": "Clear all blocked bundles from the blocked list.\n\nThis removes all bundle identifiers that were automatically blocked\ndue to rollbacks when `autoBlockRolledBackBundles` is enabled.\n\nOnly available on Android, iOS and Electron.",
20
20
  "complexTypes": [],
21
21
  "slug": "clearblockedbundles"
22
22
  },
@@ -37,7 +37,7 @@
37
37
  "text": "5.0.0"
38
38
  }
39
39
  ],
40
- "docs": "Delete a bundle from the app.\n\nOnly available on Android and iOS.",
40
+ "docs": "Delete a bundle from the app.\n\nOnly available on Android, iOS and Electron.",
41
41
  "complexTypes": [
42
42
  "DeleteBundleOptions"
43
43
  ],
@@ -60,7 +60,7 @@
60
60
  "text": "5.0.0"
61
61
  }
62
62
  ],
63
- "docs": "Download a bundle.\n\nOnly available on Android and iOS.",
63
+ "docs": "Download a bundle.\n\nOnly available on Android, iOS and Electron.",
64
64
  "complexTypes": [
65
65
  "DownloadBundleOptions"
66
66
  ],
@@ -83,7 +83,7 @@
83
83
  "text": "8.2.0"
84
84
  }
85
85
  ],
86
- "docs": "Fetch channels from [Capawesome Cloud](https://capawesome.io/cloud/).\n\nThis is primarily intended for development and QA purposes.\nIt allows you to retrieve a list of available channels so you can\ndynamically switch between them using `setChannel(...)`.\n\n**Attention**: Only works for apps with public channels enabled.\nIf channels are private, they can still be set using `setChannel(...)`\nbut won't be returned by this method.\n\nOnly available on Android and iOS.",
86
+ "docs": "Fetch channels from [Capawesome Cloud](https://capawesome.io/cloud/).\n\nThis is primarily intended for development and QA purposes.\nIt allows you to retrieve a list of available channels so you can\ndynamically switch between them using `setChannel(...)`.\n\n**Attention**: Only works for apps with public channels enabled.\nIf channels are private, they can still be set using `setChannel(...)`\nbut won't be returned by this method.\n\nOnly available on Android, iOS and Electron.",
87
87
  "complexTypes": [
88
88
  "FetchChannelsResult",
89
89
  "FetchChannelsOptions"
@@ -107,7 +107,7 @@
107
107
  "text": "6.6.0"
108
108
  }
109
109
  ],
110
- "docs": "Fetch the latest bundle using the [Capawesome Cloud](https://capawesome.io/cloud/).\n\nOnly available on Android and iOS.",
110
+ "docs": "Fetch the latest bundle using the [Capawesome Cloud](https://capawesome.io/cloud/).\n\nOnly available on Android, iOS and Electron.",
111
111
  "complexTypes": [
112
112
  "FetchLatestBundleResult",
113
113
  "FetchLatestBundleOptions"
@@ -125,7 +125,7 @@
125
125
  "text": "7.4.0"
126
126
  }
127
127
  ],
128
- "docs": "Get all blocked bundle identifiers.\n\nReturns the list of bundle identifiers that were automatically blocked\ndue to rollbacks when `autoBlockRolledBackBundles` is enabled.\n\nOnly available on Android and iOS.",
128
+ "docs": "Get all blocked bundle identifiers.\n\nReturns the list of bundle identifiers that were automatically blocked\ndue to rollbacks when `autoBlockRolledBackBundles` is enabled.\n\nOnly available on Android, iOS and Electron.",
129
129
  "complexTypes": [
130
130
  "GetBlockedBundlesResult"
131
131
  ],
@@ -146,7 +146,7 @@
146
146
  "text": "Use `getDownloadedBundles()` instead."
147
147
  }
148
148
  ],
149
- "docs": "Get all identifiers of bundles that have been downloaded.\n\nOnly available on Android and iOS.",
149
+ "docs": "Get all identifiers of bundles that have been downloaded.\n\nOnly available on Android, iOS and Electron.",
150
150
  "complexTypes": [
151
151
  "GetBundlesResult"
152
152
  ],
@@ -163,7 +163,7 @@
163
163
  "text": "5.0.0"
164
164
  }
165
165
  ],
166
- "docs": "Get the channel that is used for the update.\n\nThe channel is resolved in the following order (highest priority first):\n1. `setChannel()` (SharedPreferences on Android / UserDefaults on iOS)\n2. Native config (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS or\n `capawesome_live_update_default_channel` in `strings.xml` on Android)\n3. Capacitor config `defaultChannel`\n\n**Note**: The `channel` parameter of `sync()` takes the highest priority\nbut is not persisted and therefore not returned by this method.\n\nOnly available on Android and iOS.",
166
+ "docs": "Get the channel that is used for the update.\n\nThe channel is resolved in the following order (highest priority first):\n1. `setChannel()` (SharedPreferences on Android / UserDefaults on iOS)\n2. Native config (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS,\n `capawesome_live_update_default_channel` in `strings.xml` on Android or\n `defaultChannel` in `electron/capacitor.electron.config.ts` on Electron)\n3. Capacitor config `defaultChannel`\n\n**Note**: The `channel` parameter of `sync()` takes the highest priority\nbut is not persisted and therefore not returned by this method.\n\nOnly available on Android, iOS and Electron.",
167
167
  "complexTypes": [
168
168
  "GetChannelResult"
169
169
  ],
@@ -180,7 +180,7 @@
180
180
  "text": "7.4.0"
181
181
  }
182
182
  ],
183
- "docs": "Get the runtime configuration.\n\nReturns the current plugin configuration including any runtime\noverrides set via `setConfig()`.\n\nOnly available on Android and iOS.",
183
+ "docs": "Get the runtime configuration.\n\nReturns the current plugin configuration including any runtime\noverrides set via `setConfig()`.\n\nOnly available on Android, iOS and Electron.",
184
184
  "complexTypes": [
185
185
  "GetConfigResult"
186
186
  ],
@@ -197,7 +197,7 @@
197
197
  "text": "7.4.0"
198
198
  }
199
199
  ],
200
- "docs": "Get all identifiers of bundles that have been downloaded.\n\nOnly available on Android and iOS.",
200
+ "docs": "Get all identifiers of bundles that have been downloaded.\n\nOnly available on Android, iOS and Electron.",
201
201
  "complexTypes": [
202
202
  "GetDownloadedBundlesResult"
203
203
  ],
@@ -214,7 +214,7 @@
214
214
  "text": "6.7.0"
215
215
  }
216
216
  ],
217
- "docs": "Get the bundle identifier of the current bundle.\nThe current bundle is the bundle that is currently used by the app.\n\nOnly available on Android and iOS.",
217
+ "docs": "Get the bundle identifier of the current bundle.\nThe current bundle is the bundle that is currently used by the app.\n\nOnly available on Android, iOS and Electron.",
218
218
  "complexTypes": [
219
219
  "GetCurrentBundleResult"
220
220
  ],
@@ -231,7 +231,7 @@
231
231
  "text": "5.0.0"
232
232
  }
233
233
  ],
234
- "docs": "Get the custom identifier of the device.\n\nOnly available on Android and iOS.",
234
+ "docs": "Get the custom identifier of the device.\n\nOnly available on Android, iOS and Electron.",
235
235
  "complexTypes": [
236
236
  "GetCustomIdResult"
237
237
  ],
@@ -248,7 +248,7 @@
248
248
  "text": "5.0.0"
249
249
  }
250
250
  ],
251
- "docs": "Get the unique device identifier.\n\nOnly available on Android and iOS.",
251
+ "docs": "Get the unique device identifier.\n\nOnly available on Android, iOS and Electron.",
252
252
  "complexTypes": [
253
253
  "GetDeviceIdResult"
254
254
  ],
@@ -265,7 +265,7 @@
265
265
  "text": "7.4.0"
266
266
  }
267
267
  ],
268
- "docs": "Check whether a sync operation is currently in progress.\n\nOnly available on Android and iOS.",
268
+ "docs": "Check whether a sync operation is currently in progress.\n\nOnly available on Android, iOS and Electron.",
269
269
  "complexTypes": [
270
270
  "IsSyncingResult"
271
271
  ],
@@ -282,7 +282,7 @@
282
282
  "text": "6.7.0"
283
283
  }
284
284
  ],
285
- "docs": "Get the bundle identifier of the next bundle.\nThe next bundle is the bundle that will be used after calling `reload()`\nor restarting the app.\n\nOnly available on Android and iOS.",
285
+ "docs": "Get the bundle identifier of the next bundle.\nThe next bundle is the bundle that will be used after calling `reload()`\nor restarting the app.\n\nOnly available on Android, iOS and Electron.",
286
286
  "complexTypes": [
287
287
  "GetNextBundleResult"
288
288
  ],
@@ -299,7 +299,7 @@
299
299
  "text": "5.0.0"
300
300
  }
301
301
  ],
302
- "docs": "Get the version code of the app.\n\nOn **Android**, this is the `versionCode` from the `android/app/build.gradle` file.\nOn **iOS**, this is the `CFBundleVersion` from the `Info.plist` file.\n\nOnly available on Android and iOS.",
302
+ "docs": "Get the version code of the app.\n\nOn **Android**, this is the `versionCode` from the `android/app/build.gradle` file.\nOn **iOS**, this is the `CFBundleVersion` from the `Info.plist` file.\nOn **Electron**, this is the `version` from the `electron/package.json` file.\n\nOnly available on Android, iOS and Electron.",
303
303
  "complexTypes": [
304
304
  "GetVersionCodeResult"
305
305
  ],
@@ -316,7 +316,7 @@
316
316
  "text": "5.0.0"
317
317
  }
318
318
  ],
319
- "docs": "Get the version name of the app.\n\nOn **Android**, this is the `versionName` from the `android/app/build.gradle` file.\nOn **iOS**, this is the `CFBundleShortVersionString` from the `Info.plist` file.\n\nOnly available on Android and iOS.",
319
+ "docs": "Get the version name of the app.\n\nOn **Android**, this is the `versionName` from the `android/app/build.gradle` file.\nOn **iOS**, this is the `CFBundleShortVersionString` from the `Info.plist` file.\nOn **Electron**, this is the `version` from the `electron/package.json` file.\n\nOnly available on Android, iOS and Electron.",
320
320
  "complexTypes": [
321
321
  "GetVersionNameResult"
322
322
  ],
@@ -333,7 +333,7 @@
333
333
  "text": "5.0.0"
334
334
  }
335
335
  ],
336
- "docs": "Notify the plugin that the app is ready to use and no rollback is needed.\n\n**Attention**: This method should be called as soon as the app is ready to use\nto prevent the app from being reset to the default bundle.\nIt must always be called before `sync(...)` or any other method that changes the bundle.\n\nOnly available on Android and iOS.",
336
+ "docs": "Notify the plugin that the app is ready to use and no rollback is needed.\n\n**Attention**: This method should be called as soon as the app is ready to use\nto prevent the app from being reset to the default bundle.\nIt must always be called before `sync(...)` or any other method that changes the bundle.\n\nOnly available on Android, iOS and Electron.",
337
337
  "complexTypes": [
338
338
  "ReadyResult"
339
339
  ],
@@ -350,7 +350,7 @@
350
350
  "text": "5.0.0"
351
351
  }
352
352
  ],
353
- "docs": "Reload the app to apply the new bundle.\n\nThis method reloads the web view only, the native process is **not** restarted.\nResources of the web layer that hold an exclusive lock (e.g. IndexedDB or WebSockets)\nare therefore not released automatically and may prevent the new bundle from starting.\nRelease these resources before calling this method or apply the new bundle\non the next app start instead.\n\n**Attention**: The in-memory state of the app (e.g. unsaved user input) is lost.\n\nOnly available on Android and iOS.",
353
+ "docs": "Reload the app to apply the new bundle.\n\nThis method reloads the web view only, the native process is **not** restarted.\nResources of the web layer that hold an exclusive lock (e.g. IndexedDB or WebSockets)\nare therefore not released automatically and may prevent the new bundle from starting.\nRelease these resources before calling this method or apply the new bundle\non the next app start instead.\n\n**Attention**: The in-memory state of the app (e.g. unsaved user input) is lost.\n\nOnly available on Android, iOS and Electron.",
354
354
  "complexTypes": [],
355
355
  "slug": "reload"
356
356
  },
@@ -365,7 +365,7 @@
365
365
  "text": "5.0.0"
366
366
  }
367
367
  ],
368
- "docs": "Reset the app to the default bundle.\n\nCall `reload()` or restart the app to apply the changes.\n\nOnly available on Android and iOS.",
368
+ "docs": "Reset the app to the default bundle.\n\nCall `reload()` or restart the app to apply the changes.\n\nOnly available on Android, iOS and Electron.",
369
369
  "complexTypes": [],
370
370
  "slug": "reset"
371
371
  },
@@ -380,7 +380,7 @@
380
380
  "text": "7.4.0"
381
381
  }
382
382
  ],
383
- "docs": "Reset the runtime configuration to the values from the Capacitor config file.\n\nThis clears any runtime configuration set via `setConfig()`.\nThe changes take effect immediately.\n\nOnly available on Android and iOS.",
383
+ "docs": "Reset the runtime configuration to the values from the Capacitor config file.\n\nThis clears any runtime configuration set via `setConfig()`.\nThe changes take effect immediately.\n\nOnly available on Android, iOS and Electron.",
384
384
  "complexTypes": [],
385
385
  "slug": "resetconfig"
386
386
  },
@@ -401,7 +401,7 @@
401
401
  "text": "5.0.0"
402
402
  }
403
403
  ],
404
- "docs": "Set the channel to use for the update.\n\nOnly available on Android and iOS.",
404
+ "docs": "Set the channel to use for the update.\n\nOnly available on Android, iOS and Electron.",
405
405
  "complexTypes": [
406
406
  "SetChannelOptions"
407
407
  ],
@@ -424,7 +424,7 @@
424
424
  "text": "7.4.0"
425
425
  }
426
426
  ],
427
- "docs": "Set the runtime configuration.\n\nThis allows updating plugin configuration options at runtime.\nThe changes are persisted across app restarts and take effect immediately.\n\n**Important:** Runtime configuration is automatically reset to default values\nwhenever the native app is updated to a new version. This ensures that\nconfiguration from previous versions doesn't persist after an app update.\n\nOnly available on Android and iOS.",
427
+ "docs": "Set the runtime configuration.\n\nThis allows updating plugin configuration options at runtime.\nThe changes are persisted across app restarts and take effect immediately.\n\n**Important:** Runtime configuration is automatically reset to default values\nwhenever the native app is updated to a new version. This ensures that\nconfiguration from previous versions doesn't persist after an app update.\n\nOnly available on Android, iOS and Electron.",
428
428
  "complexTypes": [
429
429
  "SetConfigOptions"
430
430
  ],
@@ -447,7 +447,7 @@
447
447
  "text": "5.0.0"
448
448
  }
449
449
  ],
450
- "docs": "Set the custom identifier of the device.\n\nOnly available on Android and iOS.",
450
+ "docs": "Set the custom identifier of the device.\n\nOnly available on Android, iOS and Electron.",
451
451
  "complexTypes": [
452
452
  "SetCustomIdOptions"
453
453
  ],
@@ -470,7 +470,7 @@
470
470
  "text": "6.7.0"
471
471
  }
472
472
  ],
473
- "docs": "Set the next bundle to use for the app.\n\nCall `reload()` or restart the app to apply the changes.\n\nOnly available on Android and iOS.",
473
+ "docs": "Set the next bundle to use for the app.\n\nCall `reload()` or restart the app to apply the changes.\n\nOnly available on Android, iOS and Electron.",
474
474
  "complexTypes": [
475
475
  "SetNextBundleOptions"
476
476
  ],
@@ -493,7 +493,7 @@
493
493
  "text": "5.0.0"
494
494
  }
495
495
  ],
496
- "docs": "Automatically download and set the latest bundle for the app using the [Capawesome Cloud](https://capawesome.io/cloud/).\n\nCall `reload()` or restart the app to apply the changes.\n\nOnly available on Android and iOS.",
496
+ "docs": "Automatically download and set the latest bundle for the app using the [Capawesome Cloud](https://capawesome.io/cloud/).\n\nCall `reload()` or restart the app to apply the changes.\n\nOnly available on Android, iOS and Electron.",
497
497
  "complexTypes": [
498
498
  "SyncResult",
499
499
  "SyncOptions"
@@ -522,7 +522,7 @@
522
522
  "text": "7.0.0"
523
523
  }
524
524
  ],
525
- "docs": "Listen for the download progress of a bundle.\n\nOnly available on Android and iOS.",
525
+ "docs": "Listen for the download progress of a bundle.\n\nOnly available on Android, iOS and Electron.",
526
526
  "complexTypes": [
527
527
  "PluginListenerHandle",
528
528
  "DownloadBundleProgressListener"
@@ -551,7 +551,7 @@
551
551
  "text": "7.3.0"
552
552
  }
553
553
  ],
554
- "docs": "Listen for when a bundle is set as the next bundle.\n\nThis event is triggered whenever a bundle is set to be used on the next app restart,\neither through automatic updates or manual calls to `setNextBundle()`.\n\nOnly available on Android and iOS.",
554
+ "docs": "Listen for when a bundle is set as the next bundle.\n\nThis event is triggered whenever a bundle is set to be used on the next app restart,\neither through automatic updates or manual calls to `setNextBundle()`.\n\nOnly available on Android, iOS and Electron.",
555
555
  "complexTypes": [
556
556
  "PluginListenerHandle",
557
557
  "NextBundleSetListener"
@@ -580,7 +580,7 @@
580
580
  "text": "7.4.0"
581
581
  }
582
582
  ],
583
- "docs": "Listen for when the app is reloaded.\n\nThis event is triggered after the `reload()` method is called\nand the app has been reloaded.\n\n**Note:** To verify whether an update was successfully applied after a reload,\nuse the `ready()` method instead. The `ready()` method provides detailed information\nabout the current bundle, previous bundle, and whether a rollback occurred.\n\nOnly available on Android and iOS.",
583
+ "docs": "Listen for when the app is reloaded.\n\nThis event is triggered after the `reload()` method is called\nand the app has been reloaded.\n\n**Note:** To verify whether an update was successfully applied after a reload,\nuse the `ready()` method instead. The `ready()` method provides detailed information\nabout the current bundle, previous bundle, and whether a rollback occurred.\n\nOnly available on Android, iOS and Electron.",
584
584
  "complexTypes": [
585
585
  "PluginListenerHandle",
586
586
  "ReloadedListener"
@@ -659,7 +659,7 @@
659
659
  "name": "example"
660
660
  }
661
661
  ],
662
- "docs": "The artifact type of the bundle.",
662
+ "docs": "The artifact type of the bundle.\n\nOn **Electron**, only the `zip` artifact type is supported.",
663
663
  "complexTypes": [],
664
664
  "type": "'manifest' | 'zip' | undefined"
665
665
  },
@@ -865,7 +865,7 @@
865
865
  "name": "since"
866
866
  }
867
867
  ],
868
- "docs": "The artifact type of the bundle.",
868
+ "docs": "The artifact type of the bundle.\n\nOn **Electron**, only the `zip` artifact type is supported.",
869
869
  "complexTypes": [],
870
870
  "type": "'manifest' | 'zip' | undefined"
871
871
  },
@@ -1207,7 +1207,7 @@
1207
1207
  "name": "example"
1208
1208
  }
1209
1209
  ],
1210
- "docs": "The unique identifier of the device.\n\nOn iOS, [`identifierForVendor`](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor) is used.\nThe value of this property is the same for apps that come from the same vendor running on the same device.",
1210
+ "docs": "The unique identifier of the device.\n\nOn iOS, [`identifierForVendor`](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor) is used.\nThe value of this property is the same for apps that come from the same vendor running on the same device.\n\nOn Electron, a random UUID is generated on first use and stored in the app's user data directory.\nThe value changes when the user data is cleared.",
1211
1211
  "complexTypes": [],
1212
1212
  "type": "string"
1213
1213
  }
@@ -1289,7 +1289,7 @@
1289
1289
  "name": "example"
1290
1290
  }
1291
1291
  ],
1292
- "docs": "The version code of the app.\n\nOn **Android**, this is the `versionCode` from the `android/app/build.gradle` file.\nOn **iOS**, this is the `CFBundleVersion` from the `Info.plist` file.",
1292
+ "docs": "The version code of the app.\n\nOn **Android**, this is the `versionCode` from the `android/app/build.gradle` file.\nOn **iOS**, this is the `CFBundleVersion` from the `Info.plist` file.\nOn **Electron**, this is the `version` from the `electron/package.json` file.",
1293
1293
  "complexTypes": [],
1294
1294
  "type": "string"
1295
1295
  }
@@ -1319,7 +1319,7 @@
1319
1319
  "name": "example"
1320
1320
  }
1321
1321
  ],
1322
- "docs": "The version name of the app.\n\nOn **Android**, this is the `versionName` from the `android/app/build.gradle` file.\nOn **iOS**, this is the `CFBundleShortVersionString` from the `Info.plist` file.",
1322
+ "docs": "The version name of the app.\n\nOn **Android**, this is the `versionName` from the `android/app/build.gradle` file.\nOn **iOS**, this is the `CFBundleShortVersionString` from the `Info.plist` file.\nOn **Electron**, this is the `version` from the `electron/package.json` file.",
1323
1323
  "complexTypes": [],
1324
1324
  "type": "string"
1325
1325
  }
@@ -1725,7 +1725,7 @@
1725
1725
  "name": "default"
1726
1726
  }
1727
1727
  ],
1728
- "docs": "Whether or not to automatically block bundles that have been rolled back.\n\nWhen enabled, the plugin will automatically block bundles that caused a rollback\n(up to 100 bundles). When the limit is reached, the oldest blocked bundle is unblocked.\nBlocked bundles will be skipped in future sync operations.\n\n**Attention**: This option has no effect if `readyTimeout` is set to `0`.\n\nOnly available on Android and iOS.",
1728
+ "docs": "Whether or not to automatically block bundles that have been rolled back.\n\nWhen enabled, the plugin will automatically block bundles that caused a rollback\n(up to 100 bundles). When the limit is reached, the oldest blocked bundle is unblocked.\nBlocked bundles will be skipped in future sync operations.\n\n**Attention**: This option has no effect if `readyTimeout` is set to `0`.\n\nOnly available on Android, iOS and Electron.",
1729
1729
  "complexTypes": [],
1730
1730
  "type": "boolean | undefined"
1731
1731
  },
@@ -1761,7 +1761,7 @@
1761
1761
  "name": "example"
1762
1762
  }
1763
1763
  ],
1764
- "docs": "The auto-update strategy for live updates.\n\n- `none`: Live updates will not be applied automatically.\n- `background`: Live updates will be automatically downloaded\nand applied in the background at app startup and when the app resumes\n(if the last check was more than 15 minutes ago).\n\nOnly available on Android and iOS.",
1764
+ "docs": "The auto-update strategy for live updates.\n\n- `none`: Live updates will not be applied automatically.\n- `background`: Live updates will be automatically downloaded\nand applied in the background at app startup and when the app resumes\n(if the last check was more than 15 minutes ago).\n\nOnly available on Android, iOS and Electron.",
1765
1765
  "complexTypes": [],
1766
1766
  "type": "'none' | 'background' | undefined"
1767
1767
  },
@@ -1777,7 +1777,7 @@
1777
1777
  "name": "example"
1778
1778
  }
1779
1779
  ],
1780
- "docs": "The default channel of the app.\n\nThis can be overridden by `setChannel()`, the `channel` parameter of `sync()`,\nor the native channel configuration\n(`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS or `capawesome_live_update_default_channel`\nin `strings.xml` on Android).",
1780
+ "docs": "The default channel of the app.\n\nThis can be overridden by `setChannel()`, the `channel` parameter of `sync()`,\nor the native channel configuration\n(`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS, `capawesome_live_update_default_channel`\nin `strings.xml` on Android or `electron/capacitor.electron.config.ts` on Electron).",
1781
1781
  "complexTypes": [],
1782
1782
  "type": "string | undefined"
1783
1783
  },
@@ -21,7 +21,7 @@ declare module '@capacitor/cli' {
21
21
  *
22
22
  * **Attention**: This option has no effect if `readyTimeout` is set to `0`.
23
23
  *
24
- * Only available on Android and iOS.
24
+ * Only available on Android, iOS and Electron.
25
25
  *
26
26
  * @since 7.3.0
27
27
  * @default false
@@ -44,7 +44,7 @@ declare module '@capacitor/cli' {
44
44
  * and applied in the background at app startup and when the app resumes
45
45
  * (if the last check was more than 15 minutes ago).
46
46
  *
47
- * Only available on Android and iOS.
47
+ * Only available on Android, iOS and Electron.
48
48
  *
49
49
  * @since 7.3.0
50
50
  * @default 'none'
@@ -56,8 +56,8 @@ declare module '@capacitor/cli' {
56
56
  *
57
57
  * This can be overridden by `setChannel()`, the `channel` parameter of `sync()`,
58
58
  * or the native channel configuration
59
- * (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS or `capawesome_live_update_default_channel`
60
- * in `strings.xml` on Android).
59
+ * (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS, `capawesome_live_update_default_channel`
60
+ * in `strings.xml` on Android or `electron/capacitor.electron.config.ts` on Electron).
61
61
  *
62
62
  * @since 6.3.0
63
63
  * @example 'production'
@@ -113,7 +113,7 @@ export interface LiveUpdatePlugin {
113
113
  * This removes all bundle identifiers that were automatically blocked
114
114
  * due to rollbacks when `autoBlockRolledBackBundles` is enabled.
115
115
  *
116
- * Only available on Android and iOS.
116
+ * Only available on Android, iOS and Electron.
117
117
  *
118
118
  * @since 7.4.0
119
119
  */
@@ -121,7 +121,7 @@ export interface LiveUpdatePlugin {
121
121
  /**
122
122
  * Delete a bundle from the app.
123
123
  *
124
- * Only available on Android and iOS.
124
+ * Only available on Android, iOS and Electron.
125
125
  *
126
126
  * @since 5.0.0
127
127
  */
@@ -129,7 +129,7 @@ export interface LiveUpdatePlugin {
129
129
  /**
130
130
  * Download a bundle.
131
131
  *
132
- * Only available on Android and iOS.
132
+ * Only available on Android, iOS and Electron.
133
133
  *
134
134
  * @since 5.0.0
135
135
  */
@@ -145,7 +145,7 @@ export interface LiveUpdatePlugin {
145
145
  * If channels are private, they can still be set using `setChannel(...)`
146
146
  * but won't be returned by this method.
147
147
  *
148
- * Only available on Android and iOS.
148
+ * Only available on Android, iOS and Electron.
149
149
  *
150
150
  * @since 8.2.0
151
151
  */
@@ -153,7 +153,7 @@ export interface LiveUpdatePlugin {
153
153
  /**
154
154
  * Fetch the latest bundle using the [Capawesome Cloud](https://capawesome.io/cloud/).
155
155
  *
156
- * Only available on Android and iOS.
156
+ * Only available on Android, iOS and Electron.
157
157
  *
158
158
  * @since 6.6.0
159
159
  */
@@ -164,7 +164,7 @@ export interface LiveUpdatePlugin {
164
164
  * Returns the list of bundle identifiers that were automatically blocked
165
165
  * due to rollbacks when `autoBlockRolledBackBundles` is enabled.
166
166
  *
167
- * Only available on Android and iOS.
167
+ * Only available on Android, iOS and Electron.
168
168
  *
169
169
  * @since 7.4.0
170
170
  */
@@ -172,7 +172,7 @@ export interface LiveUpdatePlugin {
172
172
  /**
173
173
  * Get all identifiers of bundles that have been downloaded.
174
174
  *
175
- * Only available on Android and iOS.
175
+ * Only available on Android, iOS and Electron.
176
176
  *
177
177
  * @since 5.0.0
178
178
  * @deprecated Use `getDownloadedBundles()` instead.
@@ -183,14 +183,15 @@ export interface LiveUpdatePlugin {
183
183
  *
184
184
  * The channel is resolved in the following order (highest priority first):
185
185
  * 1. `setChannel()` (SharedPreferences on Android / UserDefaults on iOS)
186
- * 2. Native config (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS or
187
- * `capawesome_live_update_default_channel` in `strings.xml` on Android)
186
+ * 2. Native config (`CapawesomeLiveUpdateDefaultChannel` in `Info.plist` on iOS,
187
+ * `capawesome_live_update_default_channel` in `strings.xml` on Android or
188
+ * `defaultChannel` in `electron/capacitor.electron.config.ts` on Electron)
188
189
  * 3. Capacitor config `defaultChannel`
189
190
  *
190
191
  * **Note**: The `channel` parameter of `sync()` takes the highest priority
191
192
  * but is not persisted and therefore not returned by this method.
192
193
  *
193
- * Only available on Android and iOS.
194
+ * Only available on Android, iOS and Electron.
194
195
  *
195
196
  * @since 5.0.0
196
197
  */
@@ -201,7 +202,7 @@ export interface LiveUpdatePlugin {
201
202
  * Returns the current plugin configuration including any runtime
202
203
  * overrides set via `setConfig()`.
203
204
  *
204
- * Only available on Android and iOS.
205
+ * Only available on Android, iOS and Electron.
205
206
  *
206
207
  * @since 7.4.0
207
208
  */
@@ -209,7 +210,7 @@ export interface LiveUpdatePlugin {
209
210
  /**
210
211
  * Get all identifiers of bundles that have been downloaded.
211
212
  *
212
- * Only available on Android and iOS.
213
+ * Only available on Android, iOS and Electron.
213
214
  *
214
215
  * @since 7.4.0
215
216
  */
@@ -218,7 +219,7 @@ export interface LiveUpdatePlugin {
218
219
  * Get the bundle identifier of the current bundle.
219
220
  * The current bundle is the bundle that is currently used by the app.
220
221
  *
221
- * Only available on Android and iOS.
222
+ * Only available on Android, iOS and Electron.
222
223
  *
223
224
  * @since 6.7.0
224
225
  */
@@ -226,7 +227,7 @@ export interface LiveUpdatePlugin {
226
227
  /**
227
228
  * Get the custom identifier of the device.
228
229
  *
229
- * Only available on Android and iOS.
230
+ * Only available on Android, iOS and Electron.
230
231
  *
231
232
  * @since 5.0.0
232
233
  */
@@ -234,7 +235,7 @@ export interface LiveUpdatePlugin {
234
235
  /**
235
236
  * Get the unique device identifier.
236
237
  *
237
- * Only available on Android and iOS.
238
+ * Only available on Android, iOS and Electron.
238
239
  *
239
240
  * @since 5.0.0
240
241
  */
@@ -242,7 +243,7 @@ export interface LiveUpdatePlugin {
242
243
  /**
243
244
  * Check whether a sync operation is currently in progress.
244
245
  *
245
- * Only available on Android and iOS.
246
+ * Only available on Android, iOS and Electron.
246
247
  *
247
248
  * @since 7.4.0
248
249
  */
@@ -252,7 +253,7 @@ export interface LiveUpdatePlugin {
252
253
  * The next bundle is the bundle that will be used after calling `reload()`
253
254
  * or restarting the app.
254
255
  *
255
- * Only available on Android and iOS.
256
+ * Only available on Android, iOS and Electron.
256
257
  *
257
258
  * @since 6.7.0
258
259
  */
@@ -262,8 +263,9 @@ export interface LiveUpdatePlugin {
262
263
  *
263
264
  * On **Android**, this is the `versionCode` from the `android/app/build.gradle` file.
264
265
  * On **iOS**, this is the `CFBundleVersion` from the `Info.plist` file.
266
+ * On **Electron**, this is the `version` from the `electron/package.json` file.
265
267
  *
266
- * Only available on Android and iOS.
268
+ * Only available on Android, iOS and Electron.
267
269
  *
268
270
  * @since 5.0.0
269
271
  */
@@ -273,8 +275,9 @@ export interface LiveUpdatePlugin {
273
275
  *
274
276
  * On **Android**, this is the `versionName` from the `android/app/build.gradle` file.
275
277
  * On **iOS**, this is the `CFBundleShortVersionString` from the `Info.plist` file.
278
+ * On **Electron**, this is the `version` from the `electron/package.json` file.
276
279
  *
277
- * Only available on Android and iOS.
280
+ * Only available on Android, iOS and Electron.
278
281
  *
279
282
  * @since 5.0.0
280
283
  */
@@ -286,7 +289,7 @@ export interface LiveUpdatePlugin {
286
289
  * to prevent the app from being reset to the default bundle.
287
290
  * It must always be called before `sync(...)` or any other method that changes the bundle.
288
291
  *
289
- * Only available on Android and iOS.
292
+ * Only available on Android, iOS and Electron.
290
293
  *
291
294
  * @since 5.0.0
292
295
  */
@@ -302,7 +305,7 @@ export interface LiveUpdatePlugin {
302
305
  *
303
306
  * **Attention**: The in-memory state of the app (e.g. unsaved user input) is lost.
304
307
  *
305
- * Only available on Android and iOS.
308
+ * Only available on Android, iOS and Electron.
306
309
  *
307
310
  * @since 5.0.0
308
311
  */
@@ -312,7 +315,7 @@ export interface LiveUpdatePlugin {
312
315
  *
313
316
  * Call `reload()` or restart the app to apply the changes.
314
317
  *
315
- * Only available on Android and iOS.
318
+ * Only available on Android, iOS and Electron.
316
319
  *
317
320
  * @since 5.0.0
318
321
  */
@@ -323,7 +326,7 @@ export interface LiveUpdatePlugin {
323
326
  * This clears any runtime configuration set via `setConfig()`.
324
327
  * The changes take effect immediately.
325
328
  *
326
- * Only available on Android and iOS.
329
+ * Only available on Android, iOS and Electron.
327
330
  *
328
331
  * @since 7.4.0
329
332
  */
@@ -331,7 +334,7 @@ export interface LiveUpdatePlugin {
331
334
  /**
332
335
  * Set the channel to use for the update.
333
336
  *
334
- * Only available on Android and iOS.
337
+ * Only available on Android, iOS and Electron.
335
338
  *
336
339
  * @since 5.0.0
337
340
  */
@@ -346,7 +349,7 @@ export interface LiveUpdatePlugin {
346
349
  * whenever the native app is updated to a new version. This ensures that
347
350
  * configuration from previous versions doesn't persist after an app update.
348
351
  *
349
- * Only available on Android and iOS.
352
+ * Only available on Android, iOS and Electron.
350
353
  *
351
354
  * @since 7.4.0
352
355
  */
@@ -354,7 +357,7 @@ export interface LiveUpdatePlugin {
354
357
  /**
355
358
  * Set the custom identifier of the device.
356
359
  *
357
- * Only available on Android and iOS.
360
+ * Only available on Android, iOS and Electron.
358
361
  *
359
362
  * @since 5.0.0
360
363
  */
@@ -364,7 +367,7 @@ export interface LiveUpdatePlugin {
364
367
  *
365
368
  * Call `reload()` or restart the app to apply the changes.
366
369
  *
367
- * Only available on Android and iOS.
370
+ * Only available on Android, iOS and Electron.
368
371
  *
369
372
  * @since 6.7.0
370
373
  */
@@ -374,7 +377,7 @@ export interface LiveUpdatePlugin {
374
377
  *
375
378
  * Call `reload()` or restart the app to apply the changes.
376
379
  *
377
- * Only available on Android and iOS.
380
+ * Only available on Android, iOS and Electron.
378
381
  *
379
382
  * @since 5.0.0
380
383
  */
@@ -382,7 +385,7 @@ export interface LiveUpdatePlugin {
382
385
  /**
383
386
  * Listen for the download progress of a bundle.
384
387
  *
385
- * Only available on Android and iOS.
388
+ * Only available on Android, iOS and Electron.
386
389
  *
387
390
  * @since 7.0.0
388
391
  */
@@ -393,7 +396,7 @@ export interface LiveUpdatePlugin {
393
396
  * This event is triggered whenever a bundle is set to be used on the next app restart,
394
397
  * either through automatic updates or manual calls to `setNextBundle()`.
395
398
  *
396
- * Only available on Android and iOS.
399
+ * Only available on Android, iOS and Electron.
397
400
  *
398
401
  * @since 7.3.0
399
402
  */
@@ -408,7 +411,7 @@ export interface LiveUpdatePlugin {
408
411
  * use the `ready()` method instead. The `ready()` method provides detailed information
409
412
  * about the current bundle, previous bundle, and whether a rollback occurred.
410
413
  *
411
- * Only available on Android and iOS.
414
+ * Only available on Android, iOS and Electron.
412
415
  *
413
416
  * @since 7.4.0
414
417
  */
@@ -436,6 +439,8 @@ export interface DownloadBundleOptions {
436
439
  /**
437
440
  * The artifact type of the bundle.
438
441
  *
442
+ * On **Electron**, only the `zip` artifact type is supported.
443
+ *
439
444
  * @since 6.6.0
440
445
  * @default 'zip'
441
446
  * @example 'manifest'
@@ -562,6 +567,8 @@ export interface FetchLatestBundleResult {
562
567
  /**
563
568
  * The artifact type of the bundle.
564
569
  *
570
+ * On **Electron**, only the `zip` artifact type is supported.
571
+ *
565
572
  * @since 6.7.0
566
573
  */
567
574
  artifactType?: 'manifest' | 'zip';
@@ -724,6 +731,9 @@ export interface GetDeviceIdResult {
724
731
  * On iOS, [`identifierForVendor`](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor) is used.
725
732
  * The value of this property is the same for apps that come from the same vendor running on the same device.
726
733
  *
734
+ * On Electron, a random UUID is generated on first use and stored in the app's user data directory.
735
+ * The value changes when the user data is cleared.
736
+ *
727
737
  * @since 5.0.0
728
738
  *
729
739
  * @example '50d2a548-80b7-4dad-adc7-97c0e79d8a89'
@@ -763,6 +773,7 @@ export interface GetVersionCodeResult {
763
773
  *
764
774
  * On **Android**, this is the `versionCode` from the `android/app/build.gradle` file.
765
775
  * On **iOS**, this is the `CFBundleVersion` from the `Info.plist` file.
776
+ * On **Electron**, this is the `version` from the `electron/package.json` file.
766
777
  *
767
778
  * @since 5.0.0
768
779
  * @example "1"
@@ -778,6 +789,7 @@ export interface GetVersionNameResult {
778
789
  *
779
790
  * On **Android**, this is the `versionName` from the `android/app/build.gradle` file.
780
791
  * On **iOS**, this is the `CFBundleShortVersionString` from the `Info.plist` file.
792
+ * On **Electron**, this is the `version` from the `electron/package.json` file.
781
793
  *
782
794
  * @since 5.0.0
783
795
  * @example "1.0.0"