@capawesome/cordova-live-update 0.1.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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1113 -0
  3. package/dist/docs.json +1654 -0
  4. package/dist/esm/definitions.d.ts +788 -0
  5. package/dist/esm/definitions.js +7 -0
  6. package/dist/esm/definitions.js.map +1 -0
  7. package/dist/esm/exec.d.ts +1 -0
  8. package/dist/esm/exec.js +8 -0
  9. package/dist/esm/exec.js.map +1 -0
  10. package/dist/esm/index.d.ts +4 -0
  11. package/dist/esm/index.js +46 -0
  12. package/dist/esm/index.js.map +1 -0
  13. package/dist/plugin.js +56 -0
  14. package/dist/plugin.js.map +1 -0
  15. package/package.json +93 -0
  16. package/plugin.xml +268 -0
  17. package/src/android/capawesome-cordova-live-update.gradle +12 -0
  18. package/src/android/capawesome-live-update.xml +5 -0
  19. package/src/android/io/capawesome/cordova/plugins/liveupdate/LiveUpdate.java +1480 -0
  20. package/src/android/io/capawesome/cordova/plugins/liveupdate/LiveUpdateConfig.java +105 -0
  21. package/src/android/io/capawesome/cordova/plugins/liveupdate/LiveUpdateHttpClient.java +114 -0
  22. package/src/android/io/capawesome/cordova/plugins/liveupdate/LiveUpdatePathHandler.java +96 -0
  23. package/src/android/io/capawesome/cordova/plugins/liveupdate/LiveUpdatePlugin.java +550 -0
  24. package/src/android/io/capawesome/cordova/plugins/liveupdate/LiveUpdatePreferences.java +151 -0
  25. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/Manifest.java +58 -0
  26. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/ManifestItem.java +37 -0
  27. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/api/GetChannelsResponseItem.java +28 -0
  28. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/api/GetLatestBundleResponse.java +74 -0
  29. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/events/DownloadBundleProgressEvent.java +33 -0
  30. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/events/NextBundleSetEvent.java +26 -0
  31. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/DeleteBundleOptions.java +18 -0
  32. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/DownloadBundleOptions.java +66 -0
  33. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/FetchChannelsOptions.java +39 -0
  34. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/FetchLatestBundleOptions.java +25 -0
  35. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/SetChannelOptions.java +18 -0
  36. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/SetConfigOptions.java +20 -0
  37. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/SetCustomIdOptions.java +18 -0
  38. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/SetNextBundleOptions.java +21 -0
  39. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/options/SyncOptions.java +25 -0
  40. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/ChannelResult.java +29 -0
  41. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/FetchChannelsResult.java +29 -0
  42. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/FetchLatestBundleResult.java +69 -0
  43. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetBlockedBundlesResult.java +28 -0
  44. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetBundlesResult.java +28 -0
  45. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetChannelResult.java +22 -0
  46. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetConfigResult.java +40 -0
  47. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetCurrentBundleResult.java +22 -0
  48. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetCustomIdResult.java +22 -0
  49. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetDeviceIdResult.java +22 -0
  50. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetDownloadedBundlesResult.java +28 -0
  51. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetNextBundleResult.java +22 -0
  52. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetVersionCodeResult.java +21 -0
  53. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/GetVersionNameResult.java +22 -0
  54. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/IsSyncingResult.java +27 -0
  55. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/ReadyResult.java +32 -0
  56. package/src/android/io/capawesome/cordova/plugins/liveupdate/classes/results/SyncResult.java +22 -0
  57. package/src/android/io/capawesome/cordova/plugins/liveupdate/enums/ArtifactType.java +6 -0
  58. package/src/android/io/capawesome/cordova/plugins/liveupdate/interfaces/Callback.java +5 -0
  59. package/src/android/io/capawesome/cordova/plugins/liveupdate/interfaces/DownloadProgressCallback.java +5 -0
  60. package/src/android/io/capawesome/cordova/plugins/liveupdate/interfaces/EmptyCallback.java +5 -0
  61. package/src/android/io/capawesome/cordova/plugins/liveupdate/interfaces/NonEmptyCallback.java +7 -0
  62. package/src/android/io/capawesome/cordova/plugins/liveupdate/interfaces/Result.java +8 -0
  63. package/src/ios/LiveUpdate.swift +895 -0
  64. package/src/ios/LiveUpdateArtifactType.swift +4 -0
  65. package/src/ios/LiveUpdateChannelResult.swift +18 -0
  66. package/src/ios/LiveUpdateConfig.swift +11 -0
  67. package/src/ios/LiveUpdateDeleteBundleOptions.swift +13 -0
  68. package/src/ios/LiveUpdateDownloadBundleOptions.swift +41 -0
  69. package/src/ios/LiveUpdateDownloadBundleProgressEvent.swift +24 -0
  70. package/src/ios/LiveUpdateError.swift +62 -0
  71. package/src/ios/LiveUpdateFetchChannelsOptions.swift +25 -0
  72. package/src/ios/LiveUpdateFetchChannelsResult.swift +15 -0
  73. package/src/ios/LiveUpdateFetchLatestBundleOptions.swift +17 -0
  74. package/src/ios/LiveUpdateFetchLatestBundleResult.swift +42 -0
  75. package/src/ios/LiveUpdateGetBlockedBundlesResult.swift +15 -0
  76. package/src/ios/LiveUpdateGetBundlesResult.swift +15 -0
  77. package/src/ios/LiveUpdateGetChannelResult.swift +15 -0
  78. package/src/ios/LiveUpdateGetChannelsResponseItem.swift +4 -0
  79. package/src/ios/LiveUpdateGetConfigResult.swift +18 -0
  80. package/src/ios/LiveUpdateGetCurrentBundleResult.swift +15 -0
  81. package/src/ios/LiveUpdateGetCustomIdResult.swift +15 -0
  82. package/src/ios/LiveUpdateGetDeviceIdResult.swift +15 -0
  83. package/src/ios/LiveUpdateGetDownloadedBundlesResult.swift +15 -0
  84. package/src/ios/LiveUpdateGetLatestBundleResponse.swift +8 -0
  85. package/src/ios/LiveUpdateGetNextBundleResult.swift +15 -0
  86. package/src/ios/LiveUpdateGetVersionCodeResult.swift +15 -0
  87. package/src/ios/LiveUpdateGetVersionNameResult.swift +15 -0
  88. package/src/ios/LiveUpdateHttpClient.swift +58 -0
  89. package/src/ios/LiveUpdateIsSyncingResult.swift +15 -0
  90. package/src/ios/LiveUpdateManifest.swift +19 -0
  91. package/src/ios/LiveUpdateManifestItem.swift +5 -0
  92. package/src/ios/LiveUpdateNextBundleSetEvent.swift +15 -0
  93. package/src/ios/LiveUpdatePlugin.swift +521 -0
  94. package/src/ios/LiveUpdatePreferences.swift +116 -0
  95. package/src/ios/LiveUpdateReadyResult.swift +21 -0
  96. package/src/ios/LiveUpdateResult.swift +5 -0
  97. package/src/ios/LiveUpdateSchemeHandler.swift +286 -0
  98. package/src/ios/LiveUpdateSetChannelOptions.swift +13 -0
  99. package/src/ios/LiveUpdateSetConfigOptions.swift +13 -0
  100. package/src/ios/LiveUpdateSetCustomIdOptions.swift +13 -0
  101. package/src/ios/LiveUpdateSetNextBundleOptions.swift +13 -0
  102. package/src/ios/LiveUpdateSyncOptions.swift +17 -0
  103. package/src/ios/LiveUpdateSyncResult.swift +15 -0
package/dist/docs.json ADDED
@@ -0,0 +1,1654 @@
1
+ {
2
+ "api": {
3
+ "name": "LiveUpdatePlugin",
4
+ "slug": "liveupdateplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "clearBlockedBundles",
10
+ "signature": "() => any",
11
+ "parameters": [],
12
+ "returns": "any",
13
+ "tags": [
14
+ {
15
+ "name": "since",
16
+ "text": "0.1.0"
17
+ }
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.",
20
+ "complexTypes": [],
21
+ "slug": "clearblockedbundles"
22
+ },
23
+ {
24
+ "name": "deleteBundle",
25
+ "signature": "(options: DeleteBundleOptions) => any",
26
+ "parameters": [
27
+ {
28
+ "name": "options",
29
+ "docs": "",
30
+ "type": "DeleteBundleOptions"
31
+ }
32
+ ],
33
+ "returns": "any",
34
+ "tags": [
35
+ {
36
+ "name": "since",
37
+ "text": "0.1.0"
38
+ }
39
+ ],
40
+ "docs": "Delete a bundle from the app.",
41
+ "complexTypes": [
42
+ "DeleteBundleOptions"
43
+ ],
44
+ "slug": "deletebundle"
45
+ },
46
+ {
47
+ "name": "downloadBundle",
48
+ "signature": "(options: DownloadBundleOptions) => any",
49
+ "parameters": [
50
+ {
51
+ "name": "options",
52
+ "docs": "",
53
+ "type": "DownloadBundleOptions"
54
+ }
55
+ ],
56
+ "returns": "any",
57
+ "tags": [
58
+ {
59
+ "name": "since",
60
+ "text": "0.1.0"
61
+ }
62
+ ],
63
+ "docs": "Download a bundle.",
64
+ "complexTypes": [
65
+ "DownloadBundleOptions"
66
+ ],
67
+ "slug": "downloadbundle"
68
+ },
69
+ {
70
+ "name": "fetchChannels",
71
+ "signature": "(options?: FetchChannelsOptions | undefined) => any",
72
+ "parameters": [
73
+ {
74
+ "name": "options",
75
+ "docs": "",
76
+ "type": "FetchChannelsOptions | undefined"
77
+ }
78
+ ],
79
+ "returns": "any",
80
+ "tags": [
81
+ {
82
+ "name": "since",
83
+ "text": "0.1.0"
84
+ }
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.",
87
+ "complexTypes": [
88
+ "FetchChannelsOptions",
89
+ "FetchChannelsResult"
90
+ ],
91
+ "slug": "fetchchannels"
92
+ },
93
+ {
94
+ "name": "fetchLatestBundle",
95
+ "signature": "(options?: FetchLatestBundleOptions | undefined) => any",
96
+ "parameters": [
97
+ {
98
+ "name": "options",
99
+ "docs": "",
100
+ "type": "FetchLatestBundleOptions | undefined"
101
+ }
102
+ ],
103
+ "returns": "any",
104
+ "tags": [
105
+ {
106
+ "name": "since",
107
+ "text": "0.1.0"
108
+ }
109
+ ],
110
+ "docs": "Fetch the latest bundle using the [Capawesome Cloud](https://capawesome.io/cloud/).",
111
+ "complexTypes": [
112
+ "FetchLatestBundleOptions",
113
+ "FetchLatestBundleResult"
114
+ ],
115
+ "slug": "fetchlatestbundle"
116
+ },
117
+ {
118
+ "name": "getBlockedBundles",
119
+ "signature": "() => any",
120
+ "parameters": [],
121
+ "returns": "any",
122
+ "tags": [
123
+ {
124
+ "name": "since",
125
+ "text": "0.1.0"
126
+ }
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.",
129
+ "complexTypes": [
130
+ "GetBlockedBundlesResult"
131
+ ],
132
+ "slug": "getblockedbundles"
133
+ },
134
+ {
135
+ "name": "getBundles",
136
+ "signature": "() => any",
137
+ "parameters": [],
138
+ "returns": "any",
139
+ "tags": [
140
+ {
141
+ "name": "since",
142
+ "text": "0.1.0"
143
+ },
144
+ {
145
+ "name": "deprecated",
146
+ "text": "Use `getDownloadedBundles()` instead."
147
+ }
148
+ ],
149
+ "docs": "Get all identifiers of bundles that have been downloaded.",
150
+ "complexTypes": [
151
+ "GetBundlesResult"
152
+ ],
153
+ "slug": "getbundles"
154
+ },
155
+ {
156
+ "name": "getChannel",
157
+ "signature": "() => any",
158
+ "parameters": [],
159
+ "returns": "any",
160
+ "tags": [
161
+ {
162
+ "name": "since",
163
+ "text": "0.1.0"
164
+ }
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. The `DEFAULT_CHANNEL` preference in `config.xml`\n\n**Note**: The `channel` parameter of `sync()` takes the highest priority\nbut is not persisted and therefore not returned by this method.",
167
+ "complexTypes": [
168
+ "GetChannelResult"
169
+ ],
170
+ "slug": "getchannel"
171
+ },
172
+ {
173
+ "name": "getConfig",
174
+ "signature": "() => any",
175
+ "parameters": [],
176
+ "returns": "any",
177
+ "tags": [
178
+ {
179
+ "name": "since",
180
+ "text": "0.1.0"
181
+ }
182
+ ],
183
+ "docs": "Get the runtime configuration.\n\nReturns the current plugin configuration including any runtime\noverrides set via `setConfig()`.",
184
+ "complexTypes": [
185
+ "GetConfigResult"
186
+ ],
187
+ "slug": "getconfig"
188
+ },
189
+ {
190
+ "name": "getDownloadedBundles",
191
+ "signature": "() => any",
192
+ "parameters": [],
193
+ "returns": "any",
194
+ "tags": [
195
+ {
196
+ "name": "since",
197
+ "text": "0.1.0"
198
+ }
199
+ ],
200
+ "docs": "Get all identifiers of bundles that have been downloaded.",
201
+ "complexTypes": [
202
+ "GetDownloadedBundlesResult"
203
+ ],
204
+ "slug": "getdownloadedbundles"
205
+ },
206
+ {
207
+ "name": "getCurrentBundle",
208
+ "signature": "() => any",
209
+ "parameters": [],
210
+ "returns": "any",
211
+ "tags": [
212
+ {
213
+ "name": "since",
214
+ "text": "0.1.0"
215
+ }
216
+ ],
217
+ "docs": "Get the bundle identifier of the current bundle.\nThe current bundle is the bundle that is currently used by the app.",
218
+ "complexTypes": [
219
+ "GetCurrentBundleResult"
220
+ ],
221
+ "slug": "getcurrentbundle"
222
+ },
223
+ {
224
+ "name": "getCustomId",
225
+ "signature": "() => any",
226
+ "parameters": [],
227
+ "returns": "any",
228
+ "tags": [
229
+ {
230
+ "name": "since",
231
+ "text": "0.1.0"
232
+ }
233
+ ],
234
+ "docs": "Get the custom identifier of the device.",
235
+ "complexTypes": [
236
+ "GetCustomIdResult"
237
+ ],
238
+ "slug": "getcustomid"
239
+ },
240
+ {
241
+ "name": "getDeviceId",
242
+ "signature": "() => any",
243
+ "parameters": [],
244
+ "returns": "any",
245
+ "tags": [
246
+ {
247
+ "name": "since",
248
+ "text": "0.1.0"
249
+ }
250
+ ],
251
+ "docs": "Get the unique device identifier.",
252
+ "complexTypes": [
253
+ "GetDeviceIdResult"
254
+ ],
255
+ "slug": "getdeviceid"
256
+ },
257
+ {
258
+ "name": "isSyncing",
259
+ "signature": "() => any",
260
+ "parameters": [],
261
+ "returns": "any",
262
+ "tags": [
263
+ {
264
+ "name": "since",
265
+ "text": "0.1.0"
266
+ }
267
+ ],
268
+ "docs": "Check whether a sync operation is currently in progress.",
269
+ "complexTypes": [
270
+ "IsSyncingResult"
271
+ ],
272
+ "slug": "issyncing"
273
+ },
274
+ {
275
+ "name": "getNextBundle",
276
+ "signature": "() => any",
277
+ "parameters": [],
278
+ "returns": "any",
279
+ "tags": [
280
+ {
281
+ "name": "since",
282
+ "text": "0.1.0"
283
+ }
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.",
286
+ "complexTypes": [
287
+ "GetNextBundleResult"
288
+ ],
289
+ "slug": "getnextbundle"
290
+ },
291
+ {
292
+ "name": "getVersionCode",
293
+ "signature": "() => any",
294
+ "parameters": [],
295
+ "returns": "any",
296
+ "tags": [
297
+ {
298
+ "name": "since",
299
+ "text": "0.1.0"
300
+ }
301
+ ],
302
+ "docs": "Get the version code of the app.\n\nOn **Android**, this is the `versionCode` from `PackageInfo`.\nOn **iOS**, this is the `CFBundleVersion` from the `Info.plist` file.",
303
+ "complexTypes": [
304
+ "GetVersionCodeResult"
305
+ ],
306
+ "slug": "getversioncode"
307
+ },
308
+ {
309
+ "name": "getVersionName",
310
+ "signature": "() => any",
311
+ "parameters": [],
312
+ "returns": "any",
313
+ "tags": [
314
+ {
315
+ "name": "since",
316
+ "text": "0.1.0"
317
+ }
318
+ ],
319
+ "docs": "Get the version name of the app.\n\nOn **Android**, this is the `versionName` from `PackageInfo`.\nOn **iOS**, this is the `CFBundleShortVersionString` from the `Info.plist` file.",
320
+ "complexTypes": [
321
+ "GetVersionNameResult"
322
+ ],
323
+ "slug": "getversionname"
324
+ },
325
+ {
326
+ "name": "ready",
327
+ "signature": "() => any",
328
+ "parameters": [],
329
+ "returns": "any",
330
+ "tags": [
331
+ {
332
+ "name": "since",
333
+ "text": "0.1.0"
334
+ }
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.",
337
+ "complexTypes": [
338
+ "ReadyResult"
339
+ ],
340
+ "slug": "ready"
341
+ },
342
+ {
343
+ "name": "reload",
344
+ "signature": "() => any",
345
+ "parameters": [],
346
+ "returns": "any",
347
+ "tags": [
348
+ {
349
+ "name": "since",
350
+ "text": "0.1.0"
351
+ }
352
+ ],
353
+ "docs": "Reload the app to apply the new bundle.",
354
+ "complexTypes": [],
355
+ "slug": "reload"
356
+ },
357
+ {
358
+ "name": "reset",
359
+ "signature": "() => any",
360
+ "parameters": [],
361
+ "returns": "any",
362
+ "tags": [
363
+ {
364
+ "name": "since",
365
+ "text": "0.1.0"
366
+ }
367
+ ],
368
+ "docs": "Reset the app to the default bundle.\n\nCall `reload()` or restart the app to apply the changes.",
369
+ "complexTypes": [],
370
+ "slug": "reset"
371
+ },
372
+ {
373
+ "name": "resetConfig",
374
+ "signature": "() => any",
375
+ "parameters": [],
376
+ "returns": "any",
377
+ "tags": [
378
+ {
379
+ "name": "since",
380
+ "text": "0.1.0"
381
+ }
382
+ ],
383
+ "docs": "Reset the runtime configuration to the values from `config.xml`.\n\nThis clears any runtime configuration set via `setConfig()`.\nThe changes take effect immediately.",
384
+ "complexTypes": [],
385
+ "slug": "resetconfig"
386
+ },
387
+ {
388
+ "name": "setChannel",
389
+ "signature": "(options: SetChannelOptions) => any",
390
+ "parameters": [
391
+ {
392
+ "name": "options",
393
+ "docs": "",
394
+ "type": "SetChannelOptions"
395
+ }
396
+ ],
397
+ "returns": "any",
398
+ "tags": [
399
+ {
400
+ "name": "since",
401
+ "text": "0.1.0"
402
+ }
403
+ ],
404
+ "docs": "Set the channel to use for the update.",
405
+ "complexTypes": [
406
+ "SetChannelOptions"
407
+ ],
408
+ "slug": "setchannel"
409
+ },
410
+ {
411
+ "name": "setConfig",
412
+ "signature": "(options: SetConfigOptions) => any",
413
+ "parameters": [
414
+ {
415
+ "name": "options",
416
+ "docs": "",
417
+ "type": "SetConfigOptions"
418
+ }
419
+ ],
420
+ "returns": "any",
421
+ "tags": [
422
+ {
423
+ "name": "since",
424
+ "text": "0.1.0"
425
+ }
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.",
428
+ "complexTypes": [
429
+ "SetConfigOptions"
430
+ ],
431
+ "slug": "setconfig"
432
+ },
433
+ {
434
+ "name": "setCustomId",
435
+ "signature": "(options: SetCustomIdOptions) => any",
436
+ "parameters": [
437
+ {
438
+ "name": "options",
439
+ "docs": "",
440
+ "type": "SetCustomIdOptions"
441
+ }
442
+ ],
443
+ "returns": "any",
444
+ "tags": [
445
+ {
446
+ "name": "since",
447
+ "text": "0.1.0"
448
+ }
449
+ ],
450
+ "docs": "Set the custom identifier of the device.",
451
+ "complexTypes": [
452
+ "SetCustomIdOptions"
453
+ ],
454
+ "slug": "setcustomid"
455
+ },
456
+ {
457
+ "name": "setNextBundle",
458
+ "signature": "(options: SetNextBundleOptions) => any",
459
+ "parameters": [
460
+ {
461
+ "name": "options",
462
+ "docs": "",
463
+ "type": "SetNextBundleOptions"
464
+ }
465
+ ],
466
+ "returns": "any",
467
+ "tags": [
468
+ {
469
+ "name": "since",
470
+ "text": "0.1.0"
471
+ }
472
+ ],
473
+ "docs": "Set the next bundle to use for the app.\n\nCall `reload()` or restart the app to apply the changes.",
474
+ "complexTypes": [
475
+ "SetNextBundleOptions"
476
+ ],
477
+ "slug": "setnextbundle"
478
+ },
479
+ {
480
+ "name": "sync",
481
+ "signature": "(options?: SyncOptions | undefined) => any",
482
+ "parameters": [
483
+ {
484
+ "name": "options",
485
+ "docs": "",
486
+ "type": "SyncOptions | undefined"
487
+ }
488
+ ],
489
+ "returns": "any",
490
+ "tags": [
491
+ {
492
+ "name": "since",
493
+ "text": "0.1.0"
494
+ }
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.",
497
+ "complexTypes": [
498
+ "SyncOptions",
499
+ "SyncResult"
500
+ ],
501
+ "slug": "sync"
502
+ },
503
+ {
504
+ "name": "addListener",
505
+ "signature": "(eventName: 'downloadBundleProgress', listenerFunc: DownloadBundleProgressListener) => any",
506
+ "parameters": [
507
+ {
508
+ "name": "eventName",
509
+ "docs": "",
510
+ "type": "'downloadBundleProgress'"
511
+ },
512
+ {
513
+ "name": "listenerFunc",
514
+ "docs": "",
515
+ "type": "DownloadBundleProgressListener"
516
+ }
517
+ ],
518
+ "returns": "any",
519
+ "tags": [
520
+ {
521
+ "name": "since",
522
+ "text": "0.1.0"
523
+ }
524
+ ],
525
+ "docs": "Listen for the download progress of a bundle.",
526
+ "complexTypes": [
527
+ "DownloadBundleProgressListener",
528
+ "PluginListenerHandle"
529
+ ],
530
+ "slug": "addlistenerdownloadbundleprogress-"
531
+ },
532
+ {
533
+ "name": "addListener",
534
+ "signature": "(eventName: 'nextBundleSet', listenerFunc: NextBundleSetListener) => any",
535
+ "parameters": [
536
+ {
537
+ "name": "eventName",
538
+ "docs": "",
539
+ "type": "'nextBundleSet'"
540
+ },
541
+ {
542
+ "name": "listenerFunc",
543
+ "docs": "",
544
+ "type": "NextBundleSetListener"
545
+ }
546
+ ],
547
+ "returns": "any",
548
+ "tags": [
549
+ {
550
+ "name": "since",
551
+ "text": "0.1.0"
552
+ }
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()`.",
555
+ "complexTypes": [
556
+ "NextBundleSetListener",
557
+ "PluginListenerHandle"
558
+ ],
559
+ "slug": "addlistenernextbundleset-"
560
+ },
561
+ {
562
+ "name": "removeAllListeners",
563
+ "signature": "() => any",
564
+ "parameters": [],
565
+ "returns": "any",
566
+ "tags": [
567
+ {
568
+ "name": "since",
569
+ "text": "0.1.0"
570
+ }
571
+ ],
572
+ "docs": "Remove all listeners for this plugin.",
573
+ "complexTypes": [],
574
+ "slug": "removealllisteners"
575
+ }
576
+ ],
577
+ "properties": []
578
+ },
579
+ "interfaces": [
580
+ {
581
+ "name": "DeleteBundleOptions",
582
+ "slug": "deletebundleoptions",
583
+ "docs": "",
584
+ "tags": [
585
+ {
586
+ "text": "0.1.0",
587
+ "name": "since"
588
+ }
589
+ ],
590
+ "methods": [],
591
+ "properties": [
592
+ {
593
+ "name": "bundleId",
594
+ "tags": [
595
+ {
596
+ "text": "0.1.0",
597
+ "name": "since"
598
+ },
599
+ {
600
+ "text": "'1.0.0'",
601
+ "name": "example"
602
+ }
603
+ ],
604
+ "docs": "The unique identifier of the bundle to delete.",
605
+ "complexTypes": [],
606
+ "type": "string"
607
+ }
608
+ ]
609
+ },
610
+ {
611
+ "name": "DownloadBundleOptions",
612
+ "slug": "downloadbundleoptions",
613
+ "docs": "",
614
+ "tags": [
615
+ {
616
+ "text": "0.1.0",
617
+ "name": "since"
618
+ }
619
+ ],
620
+ "methods": [],
621
+ "properties": [
622
+ {
623
+ "name": "artifactType",
624
+ "tags": [
625
+ {
626
+ "text": "0.1.0",
627
+ "name": "since"
628
+ },
629
+ {
630
+ "text": "'zip'",
631
+ "name": "default"
632
+ },
633
+ {
634
+ "text": "'manifest'",
635
+ "name": "example"
636
+ }
637
+ ],
638
+ "docs": "The artifact type of the bundle.",
639
+ "complexTypes": [],
640
+ "type": "'manifest' | 'zip' | undefined"
641
+ },
642
+ {
643
+ "name": "bundleId",
644
+ "tags": [
645
+ {
646
+ "text": "0.1.0",
647
+ "name": "since"
648
+ },
649
+ {
650
+ "text": "'1.0.0'",
651
+ "name": "example"
652
+ }
653
+ ],
654
+ "docs": "The unique identifier of the bundle.\n\n**Attention**: The value `public` is reserved and cannot be used as a bundle identifier.",
655
+ "complexTypes": [],
656
+ "type": "string"
657
+ },
658
+ {
659
+ "name": "checksum",
660
+ "tags": [
661
+ {
662
+ "text": "0.1.0",
663
+ "name": "since"
664
+ }
665
+ ],
666
+ "docs": "The checksum of the self-hosted bundle as a SHA-256 hash\nin hex format to verify the integrity of the bundle.\n\n**Attention**: Only supported for the `zip` artifact type.",
667
+ "complexTypes": [],
668
+ "type": "string | undefined"
669
+ },
670
+ {
671
+ "name": "signature",
672
+ "tags": [
673
+ {
674
+ "text": "0.1.0",
675
+ "name": "since"
676
+ }
677
+ ],
678
+ "docs": "The signature of the self-hosted bundle as a signed SHA-256 hash\nin base64 format to verify the integrity of the bundle.\n\n**Attention**: Only supported for the `zip` artifact type.",
679
+ "complexTypes": [],
680
+ "type": "string | undefined"
681
+ },
682
+ {
683
+ "name": "url",
684
+ "tags": [
685
+ {
686
+ "text": "0.1.0",
687
+ "name": "since"
688
+ },
689
+ {
690
+ "text": "'https://example.com/bundle.zip'",
691
+ "name": "example"
692
+ }
693
+ ],
694
+ "docs": "The URL of the bundle to download.\n\nFor the `zip` artifact type, the URL must point to a ZIP file.\nFor the `manifest` artifact type, the URL serves as the base URL\nto download the individual files. For example, if the URL is\n`https://example.com/download`, the plugin will download the file\nwith the href `index.html` from `https://example.com/download?href=index.html`.\n\nTo **verify the integrity** of the file, the server should return\na `X-Checksum` header with the SHA-256 hash in hex format.\n\nTo **verify the signature** of the file, the server should return\na `X-Signature` header with the signed SHA-256 hash in base64 format.",
695
+ "complexTypes": [],
696
+ "type": "string"
697
+ }
698
+ ]
699
+ },
700
+ {
701
+ "name": "FetchChannelsOptions",
702
+ "slug": "fetchchannelsoptions",
703
+ "docs": "",
704
+ "tags": [
705
+ {
706
+ "text": "0.1.0",
707
+ "name": "since"
708
+ }
709
+ ],
710
+ "methods": [],
711
+ "properties": [
712
+ {
713
+ "name": "limit",
714
+ "tags": [
715
+ {
716
+ "text": "0.1.0",
717
+ "name": "since"
718
+ },
719
+ {
720
+ "text": "50",
721
+ "name": "default"
722
+ }
723
+ ],
724
+ "docs": "The maximum number of channels to return.",
725
+ "complexTypes": [],
726
+ "type": "number | undefined"
727
+ },
728
+ {
729
+ "name": "offset",
730
+ "tags": [
731
+ {
732
+ "text": "0.1.0",
733
+ "name": "since"
734
+ },
735
+ {
736
+ "text": "0",
737
+ "name": "default"
738
+ }
739
+ ],
740
+ "docs": "The number of channels to skip.",
741
+ "complexTypes": [],
742
+ "type": "number | undefined"
743
+ },
744
+ {
745
+ "name": "query",
746
+ "tags": [
747
+ {
748
+ "text": "0.1.0",
749
+ "name": "since"
750
+ }
751
+ ],
752
+ "docs": "The query to filter channels by name.",
753
+ "complexTypes": [],
754
+ "type": "string | undefined"
755
+ }
756
+ ]
757
+ },
758
+ {
759
+ "name": "FetchChannelsResult",
760
+ "slug": "fetchchannelsresult",
761
+ "docs": "",
762
+ "tags": [
763
+ {
764
+ "text": "0.1.0",
765
+ "name": "since"
766
+ }
767
+ ],
768
+ "methods": [],
769
+ "properties": [
770
+ {
771
+ "name": "channels",
772
+ "tags": [
773
+ {
774
+ "text": "0.1.0",
775
+ "name": "since"
776
+ }
777
+ ],
778
+ "docs": "The list of channels.",
779
+ "complexTypes": [
780
+ "Channel"
781
+ ],
782
+ "type": "{}"
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ "name": "Channel",
788
+ "slug": "channel",
789
+ "docs": "",
790
+ "tags": [
791
+ {
792
+ "text": "0.1.0",
793
+ "name": "since"
794
+ }
795
+ ],
796
+ "methods": [],
797
+ "properties": [
798
+ {
799
+ "name": "id",
800
+ "tags": [
801
+ {
802
+ "text": "0.1.0",
803
+ "name": "since"
804
+ }
805
+ ],
806
+ "docs": "The unique identifier of the channel.",
807
+ "complexTypes": [],
808
+ "type": "string"
809
+ },
810
+ {
811
+ "name": "name",
812
+ "tags": [
813
+ {
814
+ "text": "0.1.0",
815
+ "name": "since"
816
+ }
817
+ ],
818
+ "docs": "The name of the channel.",
819
+ "complexTypes": [],
820
+ "type": "string"
821
+ }
822
+ ]
823
+ },
824
+ {
825
+ "name": "FetchLatestBundleOptions",
826
+ "slug": "fetchlatestbundleoptions",
827
+ "docs": "",
828
+ "tags": [
829
+ {
830
+ "text": "0.1.0",
831
+ "name": "since"
832
+ }
833
+ ],
834
+ "methods": [],
835
+ "properties": [
836
+ {
837
+ "name": "channel",
838
+ "tags": [
839
+ {
840
+ "text": "0.1.0",
841
+ "name": "since"
842
+ }
843
+ ],
844
+ "docs": "The name of the channel where the latest bundle is fetched from.",
845
+ "complexTypes": [],
846
+ "type": "string | undefined"
847
+ }
848
+ ]
849
+ },
850
+ {
851
+ "name": "FetchLatestBundleResult",
852
+ "slug": "fetchlatestbundleresult",
853
+ "docs": "",
854
+ "tags": [
855
+ {
856
+ "text": "0.1.0",
857
+ "name": "since"
858
+ }
859
+ ],
860
+ "methods": [],
861
+ "properties": [
862
+ {
863
+ "name": "artifactType",
864
+ "tags": [
865
+ {
866
+ "text": "0.1.0",
867
+ "name": "since"
868
+ }
869
+ ],
870
+ "docs": "The artifact type of the bundle.",
871
+ "complexTypes": [],
872
+ "type": "'manifest' | 'zip' | undefined"
873
+ },
874
+ {
875
+ "name": "bundleId",
876
+ "tags": [
877
+ {
878
+ "text": "0.1.0",
879
+ "name": "since"
880
+ }
881
+ ],
882
+ "docs": "The unique identifier of the latest bundle.\n\nOn Capawesome Cloud, this is the ID of the app build artifact.\n\nIf `null`, no bundle is available.",
883
+ "complexTypes": [],
884
+ "type": "string | null"
885
+ },
886
+ {
887
+ "name": "checksum",
888
+ "tags": [
889
+ {
890
+ "text": "0.1.0",
891
+ "name": "since"
892
+ }
893
+ ],
894
+ "docs": "The checksum of the latest bundle if the bundle is self-hosted.\n\nIf the bundle is hosted on Capawesome Cloud, the checksum will be\nreturned as response header when downloading the bundle.",
895
+ "complexTypes": [],
896
+ "type": "string | undefined"
897
+ },
898
+ {
899
+ "name": "customProperties",
900
+ "tags": [
901
+ {
902
+ "text": "0.1.0",
903
+ "name": "since"
904
+ },
905
+ {
906
+ "text": "{ \"key\": \"value\" }",
907
+ "name": "example"
908
+ }
909
+ ],
910
+ "docs": "Custom properties that are associated with the latest bundle.",
911
+ "complexTypes": [],
912
+ "type": "{ [key: string]: string; } | undefined"
913
+ },
914
+ {
915
+ "name": "downloadUrl",
916
+ "tags": [
917
+ {
918
+ "text": "0.1.0",
919
+ "name": "since"
920
+ }
921
+ ],
922
+ "docs": "The URL of the latest bundle to download.\nPass this URL to the `downloadBundle(...)` method to download the bundle.",
923
+ "complexTypes": [],
924
+ "type": "string | undefined"
925
+ },
926
+ {
927
+ "name": "signature",
928
+ "tags": [
929
+ {
930
+ "text": "0.1.0",
931
+ "name": "since"
932
+ }
933
+ ],
934
+ "docs": "The signature of the latest bundle if the bundle is self-hosted.\n\nIf the bundle is hosted on Capawesome Cloud, the signature will be\nreturned as response header when downloading the bundle.",
935
+ "complexTypes": [],
936
+ "type": "string | undefined"
937
+ }
938
+ ]
939
+ },
940
+ {
941
+ "name": "GetBlockedBundlesResult",
942
+ "slug": "getblockedbundlesresult",
943
+ "docs": "",
944
+ "tags": [
945
+ {
946
+ "text": "0.1.0",
947
+ "name": "since"
948
+ }
949
+ ],
950
+ "methods": [],
951
+ "properties": [
952
+ {
953
+ "name": "bundleIds",
954
+ "tags": [
955
+ {
956
+ "text": "0.1.0",
957
+ "name": "since"
958
+ }
959
+ ],
960
+ "docs": "An array of unique identifiers of all blocked bundles.",
961
+ "complexTypes": [],
962
+ "type": "{}"
963
+ }
964
+ ]
965
+ },
966
+ {
967
+ "name": "GetBundlesResult",
968
+ "slug": "getbundlesresult",
969
+ "docs": "",
970
+ "tags": [
971
+ {
972
+ "text": "0.1.0",
973
+ "name": "since"
974
+ }
975
+ ],
976
+ "methods": [],
977
+ "properties": [
978
+ {
979
+ "name": "bundleIds",
980
+ "tags": [
981
+ {
982
+ "text": "0.1.0",
983
+ "name": "since"
984
+ }
985
+ ],
986
+ "docs": "An array of unique identifiers of all available bundles.",
987
+ "complexTypes": [],
988
+ "type": "{}"
989
+ }
990
+ ]
991
+ },
992
+ {
993
+ "name": "GetChannelResult",
994
+ "slug": "getchannelresult",
995
+ "docs": "",
996
+ "tags": [
997
+ {
998
+ "text": "0.1.0",
999
+ "name": "since"
1000
+ }
1001
+ ],
1002
+ "methods": [],
1003
+ "properties": [
1004
+ {
1005
+ "name": "channel",
1006
+ "tags": [
1007
+ {
1008
+ "text": "0.1.0",
1009
+ "name": "since"
1010
+ },
1011
+ {
1012
+ "text": "'production'",
1013
+ "name": "example"
1014
+ }
1015
+ ],
1016
+ "docs": "The channel name.\n\nIf `null`, the app is using the default channel.",
1017
+ "complexTypes": [],
1018
+ "type": "string | null"
1019
+ }
1020
+ ]
1021
+ },
1022
+ {
1023
+ "name": "GetConfigResult",
1024
+ "slug": "getconfigresult",
1025
+ "docs": "",
1026
+ "tags": [
1027
+ {
1028
+ "text": "0.1.0",
1029
+ "name": "since"
1030
+ }
1031
+ ],
1032
+ "methods": [],
1033
+ "properties": [
1034
+ {
1035
+ "name": "appId",
1036
+ "tags": [
1037
+ {
1038
+ "text": "0.1.0",
1039
+ "name": "since"
1040
+ },
1041
+ {
1042
+ "text": "'6e351b4f-69a7-415e-a057-4567df7ffe94'",
1043
+ "name": "example"
1044
+ }
1045
+ ],
1046
+ "docs": "The app ID used to identify the app.\n\nIf `null`, no app ID is configured.",
1047
+ "complexTypes": [],
1048
+ "type": "string | null"
1049
+ },
1050
+ {
1051
+ "name": "autoUpdateStrategy",
1052
+ "tags": [
1053
+ {
1054
+ "text": "0.1.0",
1055
+ "name": "since"
1056
+ },
1057
+ {
1058
+ "text": "'background'",
1059
+ "name": "example"
1060
+ }
1061
+ ],
1062
+ "docs": "The auto-update strategy for live updates.",
1063
+ "complexTypes": [],
1064
+ "type": "'none' | 'background'"
1065
+ }
1066
+ ]
1067
+ },
1068
+ {
1069
+ "name": "GetDownloadedBundlesResult",
1070
+ "slug": "getdownloadedbundlesresult",
1071
+ "docs": "",
1072
+ "tags": [
1073
+ {
1074
+ "text": "0.1.0",
1075
+ "name": "since"
1076
+ }
1077
+ ],
1078
+ "methods": [],
1079
+ "properties": [
1080
+ {
1081
+ "name": "bundleIds",
1082
+ "tags": [
1083
+ {
1084
+ "text": "0.1.0",
1085
+ "name": "since"
1086
+ }
1087
+ ],
1088
+ "docs": "An array of unique identifiers of all downloaded bundles.",
1089
+ "complexTypes": [],
1090
+ "type": "{}"
1091
+ }
1092
+ ]
1093
+ },
1094
+ {
1095
+ "name": "GetCurrentBundleResult",
1096
+ "slug": "getcurrentbundleresult",
1097
+ "docs": "",
1098
+ "tags": [
1099
+ {
1100
+ "text": "0.1.0",
1101
+ "name": "since"
1102
+ }
1103
+ ],
1104
+ "methods": [],
1105
+ "properties": [
1106
+ {
1107
+ "name": "bundleId",
1108
+ "tags": [
1109
+ {
1110
+ "text": "0.1.0",
1111
+ "name": "since"
1112
+ }
1113
+ ],
1114
+ "docs": "The unique identifier of the current bundle.\n\nIf `null`, the default bundle is being used.",
1115
+ "complexTypes": [],
1116
+ "type": "string | null"
1117
+ }
1118
+ ]
1119
+ },
1120
+ {
1121
+ "name": "GetCustomIdResult",
1122
+ "slug": "getcustomidresult",
1123
+ "docs": "",
1124
+ "tags": [
1125
+ {
1126
+ "text": "0.1.0",
1127
+ "name": "since"
1128
+ }
1129
+ ],
1130
+ "methods": [],
1131
+ "properties": [
1132
+ {
1133
+ "name": "customId",
1134
+ "tags": [
1135
+ {
1136
+ "text": "0.1.0",
1137
+ "name": "since"
1138
+ },
1139
+ {
1140
+ "text": "'50d2a548-80b7-4dad-adc7-97c0e79d8a89'",
1141
+ "name": "example"
1142
+ }
1143
+ ],
1144
+ "docs": "The custom identifier of the device.\n\nIf `null`, no custom identifier is set.",
1145
+ "complexTypes": [],
1146
+ "type": "string | null"
1147
+ }
1148
+ ]
1149
+ },
1150
+ {
1151
+ "name": "GetDeviceIdResult",
1152
+ "slug": "getdeviceidresult",
1153
+ "docs": "",
1154
+ "tags": [
1155
+ {
1156
+ "text": "0.1.0",
1157
+ "name": "since"
1158
+ }
1159
+ ],
1160
+ "methods": [],
1161
+ "properties": [
1162
+ {
1163
+ "name": "deviceId",
1164
+ "tags": [
1165
+ {
1166
+ "text": "0.1.0",
1167
+ "name": "since"
1168
+ },
1169
+ {
1170
+ "text": "'50d2a548-80b7-4dad-adc7-97c0e79d8a89'",
1171
+ "name": "example"
1172
+ }
1173
+ ],
1174
+ "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.",
1175
+ "complexTypes": [],
1176
+ "type": "string"
1177
+ }
1178
+ ]
1179
+ },
1180
+ {
1181
+ "name": "IsSyncingResult",
1182
+ "slug": "issyncingresult",
1183
+ "docs": "",
1184
+ "tags": [
1185
+ {
1186
+ "text": "0.1.0",
1187
+ "name": "since"
1188
+ }
1189
+ ],
1190
+ "methods": [],
1191
+ "properties": [
1192
+ {
1193
+ "name": "syncing",
1194
+ "tags": [
1195
+ {
1196
+ "text": "0.1.0",
1197
+ "name": "since"
1198
+ }
1199
+ ],
1200
+ "docs": "Whether a sync operation is currently in progress.",
1201
+ "complexTypes": [],
1202
+ "type": "boolean"
1203
+ }
1204
+ ]
1205
+ },
1206
+ {
1207
+ "name": "GetNextBundleResult",
1208
+ "slug": "getnextbundleresult",
1209
+ "docs": "",
1210
+ "tags": [
1211
+ {
1212
+ "text": "0.1.0",
1213
+ "name": "since"
1214
+ }
1215
+ ],
1216
+ "methods": [],
1217
+ "properties": [
1218
+ {
1219
+ "name": "bundleId",
1220
+ "tags": [
1221
+ {
1222
+ "text": "0.1.0",
1223
+ "name": "since"
1224
+ }
1225
+ ],
1226
+ "docs": "The unique identifier of the next bundle.\n\nIf `null`, the default bundle is being used.",
1227
+ "complexTypes": [],
1228
+ "type": "string | null"
1229
+ }
1230
+ ]
1231
+ },
1232
+ {
1233
+ "name": "GetVersionCodeResult",
1234
+ "slug": "getversioncoderesult",
1235
+ "docs": "",
1236
+ "tags": [
1237
+ {
1238
+ "text": "0.1.0",
1239
+ "name": "since"
1240
+ }
1241
+ ],
1242
+ "methods": [],
1243
+ "properties": [
1244
+ {
1245
+ "name": "versionCode",
1246
+ "tags": [
1247
+ {
1248
+ "text": "0.1.0",
1249
+ "name": "since"
1250
+ },
1251
+ {
1252
+ "text": "\"1\"",
1253
+ "name": "example"
1254
+ }
1255
+ ],
1256
+ "docs": "The version code of the app.\n\nOn **Android**, this is the `versionCode` from `PackageInfo`.\nOn **iOS**, this is the `CFBundleVersion` from the `Info.plist` file.",
1257
+ "complexTypes": [],
1258
+ "type": "string"
1259
+ }
1260
+ ]
1261
+ },
1262
+ {
1263
+ "name": "GetVersionNameResult",
1264
+ "slug": "getversionnameresult",
1265
+ "docs": "",
1266
+ "tags": [
1267
+ {
1268
+ "text": "0.1.0",
1269
+ "name": "since"
1270
+ }
1271
+ ],
1272
+ "methods": [],
1273
+ "properties": [
1274
+ {
1275
+ "name": "versionName",
1276
+ "tags": [
1277
+ {
1278
+ "text": "0.1.0",
1279
+ "name": "since"
1280
+ },
1281
+ {
1282
+ "text": "\"1.0.0\"",
1283
+ "name": "example"
1284
+ }
1285
+ ],
1286
+ "docs": "The version name of the app.\n\nOn **Android**, this is the `versionName` from `PackageInfo`.\nOn **iOS**, this is the `CFBundleShortVersionString` from the `Info.plist` file.",
1287
+ "complexTypes": [],
1288
+ "type": "string"
1289
+ }
1290
+ ]
1291
+ },
1292
+ {
1293
+ "name": "ReadyResult",
1294
+ "slug": "readyresult",
1295
+ "docs": "",
1296
+ "tags": [
1297
+ {
1298
+ "text": "0.1.0",
1299
+ "name": "since"
1300
+ }
1301
+ ],
1302
+ "methods": [],
1303
+ "properties": [
1304
+ {
1305
+ "name": "previousBundleId",
1306
+ "tags": [
1307
+ {
1308
+ "text": "0.1.0",
1309
+ "name": "since"
1310
+ }
1311
+ ],
1312
+ "docs": "The identifier of the previous bundle used.\n\nIf `null`, the default bundle was used.",
1313
+ "complexTypes": [],
1314
+ "type": "string | null"
1315
+ },
1316
+ {
1317
+ "name": "currentBundleId",
1318
+ "tags": [
1319
+ {
1320
+ "text": "0.1.0",
1321
+ "name": "since"
1322
+ }
1323
+ ],
1324
+ "docs": "The identifier of the current bundle used.\n\nIf `null`, the default bundle is being used.",
1325
+ "complexTypes": [],
1326
+ "type": "string | null"
1327
+ },
1328
+ {
1329
+ "name": "rollback",
1330
+ "tags": [
1331
+ {
1332
+ "text": "0.1.0",
1333
+ "name": "since"
1334
+ }
1335
+ ],
1336
+ "docs": "Whether or not the app was reset to the default bundle.",
1337
+ "complexTypes": [],
1338
+ "type": "boolean"
1339
+ }
1340
+ ]
1341
+ },
1342
+ {
1343
+ "name": "SetChannelOptions",
1344
+ "slug": "setchanneloptions",
1345
+ "docs": "",
1346
+ "tags": [
1347
+ {
1348
+ "text": "0.1.0",
1349
+ "name": "since"
1350
+ }
1351
+ ],
1352
+ "methods": [],
1353
+ "properties": [
1354
+ {
1355
+ "name": "channel",
1356
+ "tags": [
1357
+ {
1358
+ "text": "0.1.0",
1359
+ "name": "since"
1360
+ }
1361
+ ],
1362
+ "docs": "The channel name.\n\nSet `null` to remove the channel.",
1363
+ "complexTypes": [],
1364
+ "type": "string | null"
1365
+ }
1366
+ ]
1367
+ },
1368
+ {
1369
+ "name": "SetConfigOptions",
1370
+ "slug": "setconfigoptions",
1371
+ "docs": "",
1372
+ "tags": [
1373
+ {
1374
+ "text": "0.1.0",
1375
+ "name": "since"
1376
+ }
1377
+ ],
1378
+ "methods": [],
1379
+ "properties": [
1380
+ {
1381
+ "name": "appId",
1382
+ "tags": [
1383
+ {
1384
+ "text": "0.1.0",
1385
+ "name": "since"
1386
+ },
1387
+ {
1388
+ "text": "'6e351b4f-69a7-415e-a057-4567df7ffe94'",
1389
+ "name": "example"
1390
+ }
1391
+ ],
1392
+ "docs": "The app ID used to identify the app.\n\nSet `null` to reset to the value from the `APP_ID` preference in `config.xml`.",
1393
+ "complexTypes": [],
1394
+ "type": "string | null | undefined"
1395
+ }
1396
+ ]
1397
+ },
1398
+ {
1399
+ "name": "SetCustomIdOptions",
1400
+ "slug": "setcustomidoptions",
1401
+ "docs": "",
1402
+ "tags": [
1403
+ {
1404
+ "text": "0.1.0",
1405
+ "name": "since"
1406
+ }
1407
+ ],
1408
+ "methods": [],
1409
+ "properties": [
1410
+ {
1411
+ "name": "customId",
1412
+ "tags": [
1413
+ {
1414
+ "text": "0.1.0",
1415
+ "name": "since"
1416
+ }
1417
+ ],
1418
+ "docs": "The custom identifier of the device.\n\nSet `null` to remove the custom identifier.",
1419
+ "complexTypes": [],
1420
+ "type": "string | null"
1421
+ }
1422
+ ]
1423
+ },
1424
+ {
1425
+ "name": "SetNextBundleOptions",
1426
+ "slug": "setnextbundleoptions",
1427
+ "docs": "",
1428
+ "tags": [
1429
+ {
1430
+ "text": "0.1.0",
1431
+ "name": "since"
1432
+ }
1433
+ ],
1434
+ "methods": [],
1435
+ "properties": [
1436
+ {
1437
+ "name": "bundleId",
1438
+ "tags": [
1439
+ {
1440
+ "text": "0.1.0",
1441
+ "name": "since"
1442
+ },
1443
+ {
1444
+ "text": "'1.0.0'",
1445
+ "name": "example"
1446
+ }
1447
+ ],
1448
+ "docs": "The unique identifier of the bundle to use.\n\nSet `null` to use the default bundle (same as calling `reset()`).",
1449
+ "complexTypes": [],
1450
+ "type": "string | null"
1451
+ }
1452
+ ]
1453
+ },
1454
+ {
1455
+ "name": "SyncOptions",
1456
+ "slug": "syncoptions",
1457
+ "docs": "",
1458
+ "tags": [
1459
+ {
1460
+ "text": "0.1.0",
1461
+ "name": "since"
1462
+ }
1463
+ ],
1464
+ "methods": [],
1465
+ "properties": [
1466
+ {
1467
+ "name": "channel",
1468
+ "tags": [
1469
+ {
1470
+ "text": "0.1.0",
1471
+ "name": "since"
1472
+ }
1473
+ ],
1474
+ "docs": "The name of the channel where the latest bundle is fetched from.",
1475
+ "complexTypes": [],
1476
+ "type": "string | undefined"
1477
+ }
1478
+ ]
1479
+ },
1480
+ {
1481
+ "name": "SyncResult",
1482
+ "slug": "syncresult",
1483
+ "docs": "",
1484
+ "tags": [
1485
+ {
1486
+ "text": "0.1.0",
1487
+ "name": "since"
1488
+ }
1489
+ ],
1490
+ "methods": [],
1491
+ "properties": [
1492
+ {
1493
+ "name": "nextBundleId",
1494
+ "tags": [
1495
+ {
1496
+ "text": "0.1.0",
1497
+ "name": "since"
1498
+ }
1499
+ ],
1500
+ "docs": "The identifier of the next bundle to use.\n\nIf `null`, the app is up-to-date and no new bundle is available.",
1501
+ "complexTypes": [],
1502
+ "type": "string | null"
1503
+ }
1504
+ ]
1505
+ },
1506
+ {
1507
+ "name": "DownloadBundleProgressEvent",
1508
+ "slug": "downloadbundleprogressevent",
1509
+ "docs": "Event that is triggered when the download progress of a bundle changes.",
1510
+ "tags": [
1511
+ {
1512
+ "text": "0.1.0",
1513
+ "name": "since"
1514
+ }
1515
+ ],
1516
+ "methods": [],
1517
+ "properties": [
1518
+ {
1519
+ "name": "bundleId",
1520
+ "tags": [
1521
+ {
1522
+ "text": "0.1.0",
1523
+ "name": "since"
1524
+ }
1525
+ ],
1526
+ "docs": "The unique identifier of the bundle that is being downloaded.",
1527
+ "complexTypes": [],
1528
+ "type": "string"
1529
+ },
1530
+ {
1531
+ "name": "downloadedBytes",
1532
+ "tags": [
1533
+ {
1534
+ "text": "0.1.0",
1535
+ "name": "since"
1536
+ }
1537
+ ],
1538
+ "docs": "The number of bytes that have been downloaded.",
1539
+ "complexTypes": [],
1540
+ "type": "number"
1541
+ },
1542
+ {
1543
+ "name": "progress",
1544
+ "tags": [
1545
+ {
1546
+ "text": "0.1.0",
1547
+ "name": "since"
1548
+ },
1549
+ {
1550
+ "text": "0.5",
1551
+ "name": "example"
1552
+ }
1553
+ ],
1554
+ "docs": "The progress of the download in percent as a value between `0` and `1`.",
1555
+ "complexTypes": [],
1556
+ "type": "number"
1557
+ },
1558
+ {
1559
+ "name": "totalBytes",
1560
+ "tags": [
1561
+ {
1562
+ "text": "0.1.0",
1563
+ "name": "since"
1564
+ }
1565
+ ],
1566
+ "docs": "The total number of bytes to download.",
1567
+ "complexTypes": [],
1568
+ "type": "number"
1569
+ }
1570
+ ]
1571
+ },
1572
+ {
1573
+ "name": "PluginListenerHandle",
1574
+ "slug": "pluginlistenerhandle",
1575
+ "docs": "Handle returned from `addListener(...)`. Call `remove()` to detach the\nlistener.",
1576
+ "tags": [
1577
+ {
1578
+ "text": "0.1.0",
1579
+ "name": "since"
1580
+ }
1581
+ ],
1582
+ "methods": [],
1583
+ "properties": [
1584
+ {
1585
+ "name": "remove",
1586
+ "tags": [],
1587
+ "docs": "",
1588
+ "complexTypes": [],
1589
+ "type": "() => any"
1590
+ }
1591
+ ]
1592
+ },
1593
+ {
1594
+ "name": "NextBundleSetEvent",
1595
+ "slug": "nextbundlesetevent",
1596
+ "docs": "Event that is triggered when a bundle is set as the next bundle.",
1597
+ "tags": [
1598
+ {
1599
+ "text": "0.1.0",
1600
+ "name": "since"
1601
+ }
1602
+ ],
1603
+ "methods": [],
1604
+ "properties": [
1605
+ {
1606
+ "name": "bundleId",
1607
+ "tags": [
1608
+ {
1609
+ "text": "0.1.0",
1610
+ "name": "since"
1611
+ },
1612
+ {
1613
+ "text": "'1.0.0'",
1614
+ "name": "example"
1615
+ }
1616
+ ],
1617
+ "docs": "The unique identifier of the bundle that is set as the next bundle.\n\nIf `null`, the default bundle will be used.",
1618
+ "complexTypes": [],
1619
+ "type": "string | null"
1620
+ }
1621
+ ]
1622
+ }
1623
+ ],
1624
+ "enums": [],
1625
+ "typeAliases": [
1626
+ {
1627
+ "name": "DownloadBundleProgressListener",
1628
+ "slug": "downloadbundleprogresslistener",
1629
+ "docs": "Listener for the download progress of a bundle.",
1630
+ "types": [
1631
+ {
1632
+ "text": "(event: DownloadBundleProgressEvent): void",
1633
+ "complexTypes": [
1634
+ "DownloadBundleProgressEvent"
1635
+ ]
1636
+ }
1637
+ ]
1638
+ },
1639
+ {
1640
+ "name": "NextBundleSetListener",
1641
+ "slug": "nextbundlesetlistener",
1642
+ "docs": "Listener for when a bundle is set as the next bundle.",
1643
+ "types": [
1644
+ {
1645
+ "text": "(event: NextBundleSetEvent): void",
1646
+ "complexTypes": [
1647
+ "NextBundleSetEvent"
1648
+ ]
1649
+ }
1650
+ ]
1651
+ }
1652
+ ],
1653
+ "pluginConfigs": []
1654
+ }