@capawesome/capacitor-live-update 6.7.2 → 7.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.
- package/CapawesomeCapacitorLiveUpdate.podspec +2 -2
- package/Package.swift +32 -0
- package/README.md +102 -88
- package/android/build.gradle +9 -9
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdate.java +192 -133
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdateConfig.java +6 -27
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdateHttpClient.java +7 -2
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdatePlugin.java +51 -77
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdatePreferences.java +12 -5
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/api/GetLatestBundleResponse.java +27 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/events/DownloadBundleProgressEvent.java +32 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/options/DownloadBundleOptions.java +16 -1
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/FetchLatestBundleResult.java +29 -1
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/ReadyResult.java +32 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/interfaces/DownloadProgressCallback.java +5 -0
- package/dist/docs.json +228 -147
- package/dist/esm/definitions.d.ts +140 -49
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +2 -2
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +1 -3
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +1 -3
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Classes/Events/DownloadBundleProgressEvent.swift +25 -0
- package/ios/Plugin/Classes/Options/DownloadBundleOptions.swift +7 -1
- package/ios/Plugin/Classes/Results/{FetchLatestBundle.swift → FetchLatestBundleResult.swift} +16 -1
- package/ios/Plugin/Classes/Results/ReadyResult.swift +22 -0
- package/ios/Plugin/LiveUpdate.swift +171 -154
- package/ios/Plugin/LiveUpdateConfig.swift +2 -4
- package/ios/Plugin/LiveUpdateHttpClient.swift +6 -2
- package/ios/Plugin/LiveUpdatePlugin.swift +45 -37
- package/ios/Plugin/LiveUpdatePreferences.swift +6 -20
- package/ios/Plugin/Protocols/Api/GetLatestBundleResponse.swift +3 -0
- package/package.json +17 -18
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/options/SetBundleOptions.java +0 -18
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/GetBundleResult.java +0 -24
- package/ios/Plugin/Classes/Options/SetBundleOptions.swift +0 -14
- package/ios/Plugin/Classes/Results/GetBundleResult.swift +0 -16
- package/ios/Plugin/LiveUpdatePlugin.h +0 -10
- package/ios/Plugin/LiveUpdatePlugin.m +0 -27
package/dist/docs.json
CHANGED
|
@@ -75,27 +75,6 @@
|
|
|
75
75
|
],
|
|
76
76
|
"slug": "fetchlatestbundle"
|
|
77
77
|
},
|
|
78
|
-
{
|
|
79
|
-
"name": "getBundle",
|
|
80
|
-
"signature": "() => Promise<GetBundleResult>",
|
|
81
|
-
"parameters": [],
|
|
82
|
-
"returns": "Promise<GetBundleResult>",
|
|
83
|
-
"tags": [
|
|
84
|
-
{
|
|
85
|
-
"name": "since",
|
|
86
|
-
"text": "5.0.0"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "deprecated",
|
|
90
|
-
"text": "Use `getCurrentBundle()` instead."
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"docs": "Get the active bundle identifier.\n\nOnly available on Android and iOS.",
|
|
94
|
-
"complexTypes": [
|
|
95
|
-
"GetBundleResult"
|
|
96
|
-
],
|
|
97
|
-
"slug": "getbundle"
|
|
98
|
-
},
|
|
99
78
|
{
|
|
100
79
|
"name": "getBundles",
|
|
101
80
|
"signature": "() => Promise<GetBundlesResult>",
|
|
@@ -209,7 +188,7 @@
|
|
|
209
188
|
"text": "5.0.0"
|
|
210
189
|
}
|
|
211
190
|
],
|
|
212
|
-
"docs": "Get the version code of the app.\n\nOnly available on Android and iOS.",
|
|
191
|
+
"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.",
|
|
213
192
|
"complexTypes": [
|
|
214
193
|
"GetVersionCodeResult"
|
|
215
194
|
],
|
|
@@ -226,7 +205,7 @@
|
|
|
226
205
|
"text": "5.0.0"
|
|
227
206
|
}
|
|
228
207
|
],
|
|
229
|
-
"docs": "Get the version name of the app.\n\nOnly available on Android and iOS.",
|
|
208
|
+
"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.",
|
|
230
209
|
"complexTypes": [
|
|
231
210
|
"GetVersionNameResult"
|
|
232
211
|
],
|
|
@@ -234,9 +213,9 @@
|
|
|
234
213
|
},
|
|
235
214
|
{
|
|
236
215
|
"name": "ready",
|
|
237
|
-
"signature": "() => Promise<
|
|
216
|
+
"signature": "() => Promise<ReadyResult>",
|
|
238
217
|
"parameters": [],
|
|
239
|
-
"returns": "Promise<
|
|
218
|
+
"returns": "Promise<ReadyResult>",
|
|
240
219
|
"tags": [
|
|
241
220
|
{
|
|
242
221
|
"name": "since",
|
|
@@ -244,7 +223,9 @@
|
|
|
244
223
|
}
|
|
245
224
|
],
|
|
246
225
|
"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.\n\nOnly available on Android and iOS.",
|
|
247
|
-
"complexTypes": [
|
|
226
|
+
"complexTypes": [
|
|
227
|
+
"ReadyResult"
|
|
228
|
+
],
|
|
248
229
|
"slug": "ready"
|
|
249
230
|
},
|
|
250
231
|
{
|
|
@@ -277,33 +258,6 @@
|
|
|
277
258
|
"complexTypes": [],
|
|
278
259
|
"slug": "reset"
|
|
279
260
|
},
|
|
280
|
-
{
|
|
281
|
-
"name": "setBundle",
|
|
282
|
-
"signature": "(options: SetBundleOptions) => Promise<void>",
|
|
283
|
-
"parameters": [
|
|
284
|
-
{
|
|
285
|
-
"name": "options",
|
|
286
|
-
"docs": "",
|
|
287
|
-
"type": "SetBundleOptions"
|
|
288
|
-
}
|
|
289
|
-
],
|
|
290
|
-
"returns": "Promise<void>",
|
|
291
|
-
"tags": [
|
|
292
|
-
{
|
|
293
|
-
"name": "since",
|
|
294
|
-
"text": "5.0.0"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"name": "deprecated",
|
|
298
|
-
"text": "Use `setNextBundle()` instead."
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
"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.",
|
|
302
|
-
"complexTypes": [
|
|
303
|
-
"SetBundleOptions"
|
|
304
|
-
],
|
|
305
|
-
"slug": "setbundle"
|
|
306
|
-
},
|
|
307
261
|
{
|
|
308
262
|
"name": "setChannel",
|
|
309
263
|
"signature": "(options: SetChannelOptions) => Promise<void>",
|
|
@@ -396,6 +350,35 @@
|
|
|
396
350
|
"SyncOptions"
|
|
397
351
|
],
|
|
398
352
|
"slug": "sync"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"name": "addListener",
|
|
356
|
+
"signature": "(eventName: 'downloadBundleProgress', listenerFunc: DownloadBundleProgressListener) => Promise<PluginListenerHandle>",
|
|
357
|
+
"parameters": [
|
|
358
|
+
{
|
|
359
|
+
"name": "eventName",
|
|
360
|
+
"docs": "",
|
|
361
|
+
"type": "'downloadBundleProgress'"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "listenerFunc",
|
|
365
|
+
"docs": "",
|
|
366
|
+
"type": "DownloadBundleProgressListener"
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
370
|
+
"tags": [
|
|
371
|
+
{
|
|
372
|
+
"name": "since",
|
|
373
|
+
"text": "7.0.0"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"docs": "Listen for the download progress of a bundle.\n\nOnly available on Android and iOS.",
|
|
377
|
+
"complexTypes": [
|
|
378
|
+
"PluginListenerHandle",
|
|
379
|
+
"DownloadBundleProgressListener"
|
|
380
|
+
],
|
|
381
|
+
"slug": "addlistenerdownloadbundleprogress-"
|
|
399
382
|
}
|
|
400
383
|
],
|
|
401
384
|
"properties": []
|
|
@@ -470,7 +453,7 @@
|
|
|
470
453
|
"name": "example"
|
|
471
454
|
}
|
|
472
455
|
],
|
|
473
|
-
"docs": "The unique identifier of the bundle.",
|
|
456
|
+
"docs": "The unique identifier of the bundle.\n\n**Attention**: The value `public` is reserved and cannot be used as a bundle identifier.",
|
|
474
457
|
"complexTypes": [],
|
|
475
458
|
"type": "string"
|
|
476
459
|
},
|
|
@@ -478,15 +461,23 @@
|
|
|
478
461
|
"name": "checksum",
|
|
479
462
|
"tags": [
|
|
480
463
|
{
|
|
481
|
-
"text": "
|
|
464
|
+
"text": "7.1.0",
|
|
482
465
|
"name": "since"
|
|
483
|
-
}
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"docs": "The checksum of the self-hosted bundle as a SHA-256 hash\nin base64 format to verify the integrity of the bundle.\n\n**Attention**: Only supported for the `zip` artifact type.",
|
|
469
|
+
"complexTypes": [],
|
|
470
|
+
"type": "string | undefined"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "signature",
|
|
474
|
+
"tags": [
|
|
484
475
|
{
|
|
485
|
-
"text": "
|
|
486
|
-
"name": "
|
|
476
|
+
"text": "7.1.0",
|
|
477
|
+
"name": "since"
|
|
487
478
|
}
|
|
488
479
|
],
|
|
489
|
-
"docs": "The
|
|
480
|
+
"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.",
|
|
490
481
|
"complexTypes": [],
|
|
491
482
|
"type": "string | undefined"
|
|
492
483
|
},
|
|
@@ -502,7 +493,7 @@
|
|
|
502
493
|
"name": "example"
|
|
503
494
|
}
|
|
504
495
|
],
|
|
505
|
-
"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
|
|
496
|
+
"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 base64 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.",
|
|
506
497
|
"complexTypes": [],
|
|
507
498
|
"type": "string"
|
|
508
499
|
}
|
|
@@ -544,6 +535,34 @@
|
|
|
544
535
|
"complexTypes": [],
|
|
545
536
|
"type": "string | null"
|
|
546
537
|
},
|
|
538
|
+
{
|
|
539
|
+
"name": "checksum",
|
|
540
|
+
"tags": [
|
|
541
|
+
{
|
|
542
|
+
"text": "7.1.0",
|
|
543
|
+
"name": "since"
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"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.",
|
|
547
|
+
"complexTypes": [],
|
|
548
|
+
"type": "string | undefined"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "customProperties",
|
|
552
|
+
"tags": [
|
|
553
|
+
{
|
|
554
|
+
"text": "7.0.0",
|
|
555
|
+
"name": "since"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"text": "{ \"key\": \"value\" }",
|
|
559
|
+
"name": "example"
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
"docs": "Custom properties that are associated with the latest bundle.",
|
|
563
|
+
"complexTypes": [],
|
|
564
|
+
"type": "{ [key: string]: string; } | undefined"
|
|
565
|
+
},
|
|
547
566
|
{
|
|
548
567
|
"name": "downloadUrl",
|
|
549
568
|
"tags": [
|
|
@@ -555,62 +574,44 @@
|
|
|
555
574
|
"docs": "The URL of the latest bundle to download.\nPass this URL to the `downloadBundle(...)` method to download the bundle.",
|
|
556
575
|
"complexTypes": [],
|
|
557
576
|
"type": "string | undefined"
|
|
558
|
-
}
|
|
559
|
-
]
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"name": "FetchLatestBundleOptions",
|
|
563
|
-
"slug": "fetchlatestbundleoptions",
|
|
564
|
-
"docs": "",
|
|
565
|
-
"tags": [
|
|
566
|
-
{
|
|
567
|
-
"text": "6.7.0",
|
|
568
|
-
"name": "since"
|
|
569
|
-
}
|
|
570
|
-
],
|
|
571
|
-
"methods": [],
|
|
572
|
-
"properties": [
|
|
577
|
+
},
|
|
573
578
|
{
|
|
574
|
-
"name": "
|
|
579
|
+
"name": "signature",
|
|
575
580
|
"tags": [
|
|
576
581
|
{
|
|
577
|
-
"text": "
|
|
582
|
+
"text": "7.1.0",
|
|
578
583
|
"name": "since"
|
|
579
584
|
}
|
|
580
585
|
],
|
|
581
|
-
"docs": "The
|
|
586
|
+
"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.",
|
|
582
587
|
"complexTypes": [],
|
|
583
588
|
"type": "string | undefined"
|
|
584
589
|
}
|
|
585
590
|
]
|
|
586
591
|
},
|
|
587
592
|
{
|
|
588
|
-
"name": "
|
|
589
|
-
"slug": "
|
|
593
|
+
"name": "FetchLatestBundleOptions",
|
|
594
|
+
"slug": "fetchlatestbundleoptions",
|
|
590
595
|
"docs": "",
|
|
591
596
|
"tags": [
|
|
592
597
|
{
|
|
593
|
-
"text": "
|
|
598
|
+
"text": "6.7.0",
|
|
594
599
|
"name": "since"
|
|
595
600
|
}
|
|
596
601
|
],
|
|
597
602
|
"methods": [],
|
|
598
603
|
"properties": [
|
|
599
604
|
{
|
|
600
|
-
"name": "
|
|
605
|
+
"name": "channel",
|
|
601
606
|
"tags": [
|
|
602
607
|
{
|
|
603
|
-
"text": "
|
|
608
|
+
"text": "6.7.0",
|
|
604
609
|
"name": "since"
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
"text": "'1.0.0'",
|
|
608
|
-
"name": "example"
|
|
609
610
|
}
|
|
610
611
|
],
|
|
611
|
-
"docs": "The
|
|
612
|
+
"docs": "The name of the channel where the latest bundle is fetched from.",
|
|
612
613
|
"complexTypes": [],
|
|
613
|
-
"type": "string |
|
|
614
|
+
"type": "string | undefined"
|
|
614
615
|
}
|
|
615
616
|
]
|
|
616
617
|
},
|
|
@@ -843,32 +844,52 @@
|
|
|
843
844
|
]
|
|
844
845
|
},
|
|
845
846
|
{
|
|
846
|
-
"name": "
|
|
847
|
-
"slug": "
|
|
847
|
+
"name": "ReadyResult",
|
|
848
|
+
"slug": "readyresult",
|
|
848
849
|
"docs": "",
|
|
849
850
|
"tags": [
|
|
850
851
|
{
|
|
851
|
-
"text": "
|
|
852
|
+
"text": "7.0.0",
|
|
852
853
|
"name": "since"
|
|
853
854
|
}
|
|
854
855
|
],
|
|
855
856
|
"methods": [],
|
|
856
857
|
"properties": [
|
|
857
858
|
{
|
|
858
|
-
"name": "
|
|
859
|
+
"name": "previousBundleId",
|
|
859
860
|
"tags": [
|
|
860
861
|
{
|
|
861
|
-
"text": "
|
|
862
|
+
"text": "7.0.0",
|
|
862
863
|
"name": "since"
|
|
863
|
-
}
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"docs": "The identifier of the previous bundle used.\n\nIf `null`, the default bundle was used.",
|
|
867
|
+
"complexTypes": [],
|
|
868
|
+
"type": "string | null"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "currentBundleId",
|
|
872
|
+
"tags": [
|
|
864
873
|
{
|
|
865
|
-
"text": "
|
|
866
|
-
"name": "
|
|
874
|
+
"text": "7.0.0",
|
|
875
|
+
"name": "since"
|
|
867
876
|
}
|
|
868
877
|
],
|
|
869
|
-
"docs": "The
|
|
878
|
+
"docs": "The identifier of the current bundle used.\n\nIf `null`, the default bundle is being used.",
|
|
870
879
|
"complexTypes": [],
|
|
871
|
-
"type": "string"
|
|
880
|
+
"type": "string | null"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "rollback",
|
|
884
|
+
"tags": [
|
|
885
|
+
{
|
|
886
|
+
"text": "7.0.0",
|
|
887
|
+
"name": "since"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"docs": "Whether or not the app was reset to the default bundle.",
|
|
891
|
+
"complexTypes": [],
|
|
892
|
+
"type": "boolean"
|
|
872
893
|
}
|
|
873
894
|
]
|
|
874
895
|
},
|
|
@@ -1005,10 +1026,106 @@
|
|
|
1005
1026
|
"type": "string | undefined"
|
|
1006
1027
|
}
|
|
1007
1028
|
]
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "PluginListenerHandle",
|
|
1032
|
+
"slug": "pluginlistenerhandle",
|
|
1033
|
+
"docs": "",
|
|
1034
|
+
"tags": [],
|
|
1035
|
+
"methods": [],
|
|
1036
|
+
"properties": [
|
|
1037
|
+
{
|
|
1038
|
+
"name": "remove",
|
|
1039
|
+
"tags": [],
|
|
1040
|
+
"docs": "",
|
|
1041
|
+
"complexTypes": [],
|
|
1042
|
+
"type": "() => Promise<void>"
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"name": "DownloadBundleProgressEvent",
|
|
1048
|
+
"slug": "downloadbundleprogressevent",
|
|
1049
|
+
"docs": "Event that is triggered when the download progress of a bundle changes.",
|
|
1050
|
+
"tags": [
|
|
1051
|
+
{
|
|
1052
|
+
"text": "7.0.0",
|
|
1053
|
+
"name": "since"
|
|
1054
|
+
}
|
|
1055
|
+
],
|
|
1056
|
+
"methods": [],
|
|
1057
|
+
"properties": [
|
|
1058
|
+
{
|
|
1059
|
+
"name": "bundleId",
|
|
1060
|
+
"tags": [
|
|
1061
|
+
{
|
|
1062
|
+
"text": "7.0.0",
|
|
1063
|
+
"name": "since"
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"docs": "The unique identifier of the bundle that is being downloaded.",
|
|
1067
|
+
"complexTypes": [],
|
|
1068
|
+
"type": "string"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"name": "downloadedBytes",
|
|
1072
|
+
"tags": [
|
|
1073
|
+
{
|
|
1074
|
+
"text": "7.0.0",
|
|
1075
|
+
"name": "since"
|
|
1076
|
+
}
|
|
1077
|
+
],
|
|
1078
|
+
"docs": "The number of bytes that have been downloaded.",
|
|
1079
|
+
"complexTypes": [],
|
|
1080
|
+
"type": "number"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "progress",
|
|
1084
|
+
"tags": [
|
|
1085
|
+
{
|
|
1086
|
+
"text": "7.0.0",
|
|
1087
|
+
"name": "since"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"text": "0.5",
|
|
1091
|
+
"name": "example"
|
|
1092
|
+
}
|
|
1093
|
+
],
|
|
1094
|
+
"docs": "The progress of the download in percent as a value between `0` and `1`.",
|
|
1095
|
+
"complexTypes": [],
|
|
1096
|
+
"type": "number"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"name": "totalBytes",
|
|
1100
|
+
"tags": [
|
|
1101
|
+
{
|
|
1102
|
+
"text": "7.0.0",
|
|
1103
|
+
"name": "since"
|
|
1104
|
+
}
|
|
1105
|
+
],
|
|
1106
|
+
"docs": "The total number of bytes to download.",
|
|
1107
|
+
"complexTypes": [],
|
|
1108
|
+
"type": "number"
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1008
1111
|
}
|
|
1009
1112
|
],
|
|
1010
1113
|
"enums": [],
|
|
1011
|
-
"typeAliases": [
|
|
1114
|
+
"typeAliases": [
|
|
1115
|
+
{
|
|
1116
|
+
"name": "DownloadBundleProgressListener",
|
|
1117
|
+
"slug": "downloadbundleprogresslistener",
|
|
1118
|
+
"docs": "Listener for the download progress of a bundle.",
|
|
1119
|
+
"types": [
|
|
1120
|
+
{
|
|
1121
|
+
"text": "(event: DownloadBundleProgressEvent): void",
|
|
1122
|
+
"complexTypes": [
|
|
1123
|
+
"DownloadBundleProgressEvent"
|
|
1124
|
+
]
|
|
1125
|
+
}
|
|
1126
|
+
]
|
|
1127
|
+
}
|
|
1128
|
+
],
|
|
1012
1129
|
"pluginConfigs": [
|
|
1013
1130
|
{
|
|
1014
1131
|
"name": "LiveUpdate",
|
|
@@ -1062,22 +1179,6 @@
|
|
|
1062
1179
|
"complexTypes": [],
|
|
1063
1180
|
"type": "string | undefined"
|
|
1064
1181
|
},
|
|
1065
|
-
{
|
|
1066
|
-
"name": "enabled",
|
|
1067
|
-
"tags": [
|
|
1068
|
-
{
|
|
1069
|
-
"text": "5.0.0",
|
|
1070
|
-
"name": "since"
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
"text": "true",
|
|
1074
|
-
"name": "default"
|
|
1075
|
-
}
|
|
1076
|
-
],
|
|
1077
|
-
"docs": "Whether or not the plugin is enabled.",
|
|
1078
|
-
"complexTypes": [],
|
|
1079
|
-
"type": "boolean | undefined"
|
|
1080
|
-
},
|
|
1081
1182
|
{
|
|
1082
1183
|
"name": "httpTimeout",
|
|
1083
1184
|
"tags": [
|
|
@@ -1094,30 +1195,6 @@
|
|
|
1094
1195
|
"complexTypes": [],
|
|
1095
1196
|
"type": "number | undefined"
|
|
1096
1197
|
},
|
|
1097
|
-
{
|
|
1098
|
-
"name": "location",
|
|
1099
|
-
"tags": [
|
|
1100
|
-
{
|
|
1101
|
-
"text": "6.2.0",
|
|
1102
|
-
"name": "since"
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
"text": "'us'",
|
|
1106
|
-
"name": "default"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
"text": "'eu'",
|
|
1110
|
-
"name": "example"
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
"text": "This option will be removed in the future.",
|
|
1114
|
-
"name": "deprecated"
|
|
1115
|
-
}
|
|
1116
|
-
],
|
|
1117
|
-
"docs": "The location of the server to use when using [Capawesome Cloud](https://capawesome.io/cloud).",
|
|
1118
|
-
"complexTypes": [],
|
|
1119
|
-
"type": "'us' | 'eu' | undefined"
|
|
1120
|
-
},
|
|
1121
1198
|
{
|
|
1122
1199
|
"name": "publicKey",
|
|
1123
1200
|
"tags": [
|
|
@@ -1142,29 +1219,33 @@
|
|
|
1142
1219
|
"name": "since"
|
|
1143
1220
|
},
|
|
1144
1221
|
{
|
|
1145
|
-
"text": "
|
|
1222
|
+
"text": "0",
|
|
1146
1223
|
"name": "default"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"text": "10000",
|
|
1227
|
+
"name": "example"
|
|
1147
1228
|
}
|
|
1148
1229
|
],
|
|
1149
|
-
"docs": "The timeout in milliseconds to wait for the app to be ready before resetting to the default bundle.",
|
|
1230
|
+
"docs": "The timeout in milliseconds to wait for the app to be ready\nbefore resetting to the default bundle.\n\nIt is strongly **recommended** to configure this option so that\nthe plugin can roll back to the default bundle in case of problems.\nIf configured, the plugin will wait for the app to call the `ready()`\nmethod before resetting to the default bundle.\n\nSet to `0` to disable the timeout.",
|
|
1150
1231
|
"complexTypes": [],
|
|
1151
1232
|
"type": "number | undefined"
|
|
1152
1233
|
},
|
|
1153
1234
|
{
|
|
1154
|
-
"name": "
|
|
1235
|
+
"name": "serverDomain",
|
|
1155
1236
|
"tags": [
|
|
1156
1237
|
{
|
|
1157
|
-
"text": "
|
|
1238
|
+
"text": "7.0.0",
|
|
1158
1239
|
"name": "since"
|
|
1159
1240
|
},
|
|
1160
1241
|
{
|
|
1161
|
-
"text": "
|
|
1242
|
+
"text": "'api.cloud.capawesome.io'",
|
|
1162
1243
|
"name": "default"
|
|
1163
1244
|
}
|
|
1164
1245
|
],
|
|
1165
|
-
"docs": "
|
|
1246
|
+
"docs": "The API domain of the [Capawesome Cloud](https://cloud.capawesome.io) server.",
|
|
1166
1247
|
"complexTypes": [],
|
|
1167
|
-
"type": "
|
|
1248
|
+
"type": "string | undefined"
|
|
1168
1249
|
}
|
|
1169
1250
|
],
|
|
1170
1251
|
"docs": ""
|