@capgo/capacitor-updater 7.42.9 → 7.45.10
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/Package.swift +5 -2
- package/README.md +250 -77
- package/android/build.gradle +3 -3
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +682 -213
- package/android/src/main/java/ee/forgr/capacitor_updater/CapgoUpdater.java +222 -35
- package/android/src/main/java/ee/forgr/capacitor_updater/DelayUpdateUtils.java +49 -13
- package/android/src/main/java/ee/forgr/capacitor_updater/DownloadService.java +38 -13
- package/android/src/main/java/ee/forgr/capacitor_updater/InternalUtils.java +13 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/ShakeMenu.java +476 -2
- package/dist/docs.json +402 -10
- package/dist/esm/definitions.d.ts +183 -22
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +3 -2
- package/dist/esm/web.js +6 -4
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +6 -4
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +6 -4
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +653 -140
- package/ios/Sources/CapacitorUpdaterPlugin/CapgoUpdater.swift +213 -50
- package/ios/Sources/CapacitorUpdaterPlugin/DelayUpdateUtils.swift +37 -16
- package/ios/Sources/CapacitorUpdaterPlugin/InternalUtils.swift +2 -0
- package/ios/Sources/CapacitorUpdaterPlugin/ShakeMenu.swift +347 -2
- package/package.json +12 -8
package/dist/docs.json
CHANGED
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
"name": "link",
|
|
346
|
-
"text": "ResetOptions} to control reset behavior
|
|
346
|
+
"text": "ResetOptions} to control reset behavior.\nIf `toLastSuccessful` is `false` (or omitted), resets to builtin.\nIf `true`, resets to last successful bundle.\nIf `usePendingBundle` is `true`, applies the pending bundle set via {@link next} and clears it."
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
"name": "returns",
|
|
@@ -492,14 +492,14 @@
|
|
|
492
492
|
},
|
|
493
493
|
{
|
|
494
494
|
"name": "throws",
|
|
495
|
-
"text": "{Error}
|
|
495
|
+
"text": "{Error} Throws for failed update checks or transport/request failures."
|
|
496
496
|
},
|
|
497
497
|
{
|
|
498
498
|
"name": "since",
|
|
499
499
|
"text": "4.0.0"
|
|
500
500
|
}
|
|
501
501
|
],
|
|
502
|
-
"docs": "Check the update server for the latest available bundle version.\n\nThis queries your configured update URL (or Capgo backend) to see if a newer bundle\nis available for download. It does NOT download the bundle automatically.\n\nThe response includes:\n- `version`: The latest available version identifier\n- `url`: Download URL for the bundle (if available)\n- `breaking`: Whether this update is marked as incompatible (requires native app update)\n- `message`: Optional message from the server\n- `manifest`: File list for delta updates (if using multi-file downloads)\n\nAfter receiving the latest version info, you can:\n1. Compare it with your current version\n2. Download it using {@link download}\n3. Apply it using {@link next} or {@link set}\n\n**Important:
|
|
502
|
+
"docs": "Check the update server for the latest available bundle version.\n\nThis queries your configured update URL (or Capgo backend) to see if a newer bundle\nis available for download. It does NOT download the bundle automatically.\n\nThe response includes:\n- `version`: The latest available version identifier\n- `url`: Download URL for the bundle (if available)\n- `breaking`: Whether this update is marked as incompatible (requires native app update)\n- `message`: Optional message from the server\n- `manifest`: File list for delta updates (if using multi-file downloads)\n\nAfter receiving the latest version info, you can:\n1. Compare it with your current version\n2. Download it using {@link download}\n3. Apply it using {@link next} or {@link set}\n\n**Important: Handling \"no new version available\"**\n\nWhen the device's current version matches the latest version on the server (i.e., the device is already\nup-to-date), the server returns a 200 response with `error: \"no_new_version_available\"` and\n`message: \"No new version available\"`. This is a normal, expected condition and resolves with\n`kind: \"up_to_date\"` when the backend provides that classification.\n\nYou should check `kind` and `error` before attempting to download:\n\n```typescript\nconst latest = await CapacitorUpdater.getLatest();\nif (latest.kind === 'up_to_date') {\n console.log('Already up to date');\n} else if (latest.kind === 'blocked') {\n console.log('Update is blocked:', latest.error);\n} else if (latest.url) {\n // New version is available, proceed with download\n}\n```\n\nIn this scenario, the server:\n- Logs the request with a \"No new version available\" message\n- Sends a \"noNew\" stat action to track that the device checked for updates but was already current (done on the backend)",
|
|
503
503
|
"complexTypes": [
|
|
504
504
|
"LatestVersion",
|
|
505
505
|
"GetLatestOptions"
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
"text": "1.0.0"
|
|
766
766
|
}
|
|
767
767
|
],
|
|
768
|
-
"docs": "Remove all event listeners registered for this plugin.\n\nThis unregisters all listeners added via {@link addListener} for all event types:\n- `download`\n- `noNeedUpdate`\n- `updateAvailable`\n- `downloadComplete`\n- `downloadFailed`\n- `breakingAvailable` / `majorAvailable`\n- `updateFailed`\n- `appReloaded`\n- `appReady`\n\nUse this during cleanup (e.g., when unmounting components or closing screens)\nto prevent memory leaks from lingering event listeners.",
|
|
768
|
+
"docs": "Remove all event listeners registered for this plugin.\n\nThis unregisters all listeners added via {@link addListener} for all event types:\n- `download`\n- `noNeedUpdate`\n- `updateCheckResult`\n- `updateAvailable`\n- `downloadComplete`\n- `downloadFailed`\n- `breakingAvailable` / `majorAvailable`\n- `updateFailed`\n- `appReloaded`\n- `appReady`\n\nUse this during cleanup (e.g., when unmounting components or closing screens)\nto prevent memory leaks from lingering event listeners.",
|
|
769
769
|
"complexTypes": [],
|
|
770
770
|
"slug": "removealllisteners"
|
|
771
771
|
},
|
|
@@ -827,6 +827,35 @@
|
|
|
827
827
|
],
|
|
828
828
|
"slug": "addlistenernoneedupdate-"
|
|
829
829
|
},
|
|
830
|
+
{
|
|
831
|
+
"name": "addListener",
|
|
832
|
+
"signature": "(eventName: 'updateCheckResult', listenerFunc: (state: UpdateCheckResultEvent) => void) => Promise<PluginListenerHandle>",
|
|
833
|
+
"parameters": [
|
|
834
|
+
{
|
|
835
|
+
"name": "eventName",
|
|
836
|
+
"docs": "",
|
|
837
|
+
"type": "'updateCheckResult'"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "listenerFunc",
|
|
841
|
+
"docs": "",
|
|
842
|
+
"type": "(state: UpdateCheckResultEvent) => void"
|
|
843
|
+
}
|
|
844
|
+
],
|
|
845
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
846
|
+
"tags": [
|
|
847
|
+
{
|
|
848
|
+
"name": "since",
|
|
849
|
+
"text": "8.45.11"
|
|
850
|
+
}
|
|
851
|
+
],
|
|
852
|
+
"docs": "Listen for update check results before the updater decides whether to download.\nThe backend can classify the UpdateCheckResultEvent payload as `up_to_date`, `blocked`, or `failed`.\n\nThis event is emitted alongside legacy events. For `up_to_date` and `blocked`, it is emitted before\n`noNeedUpdate` and does not emit `downloadFailed`. For `failed`, it is emitted before the legacy\n`downloadFailed` event and keeps the existing failure stats behavior.",
|
|
853
|
+
"complexTypes": [
|
|
854
|
+
"PluginListenerHandle",
|
|
855
|
+
"UpdateCheckResultEvent"
|
|
856
|
+
],
|
|
857
|
+
"slug": "addlistenerupdatecheckresult-"
|
|
858
|
+
},
|
|
830
859
|
{
|
|
831
860
|
"name": "addListener",
|
|
832
861
|
"signature": "(eventName: 'updateAvailable', listenerFunc: (state: UpdateAvailableEvent) => void) => Promise<PluginListenerHandle>",
|
|
@@ -976,6 +1005,64 @@
|
|
|
976
1005
|
],
|
|
977
1006
|
"slug": "addlistenerupdatefailed-"
|
|
978
1007
|
},
|
|
1008
|
+
{
|
|
1009
|
+
"name": "addListener",
|
|
1010
|
+
"signature": "(eventName: 'set', listenerFunc: (state: SetEvent) => void) => Promise<PluginListenerHandle>",
|
|
1011
|
+
"parameters": [
|
|
1012
|
+
{
|
|
1013
|
+
"name": "eventName",
|
|
1014
|
+
"docs": "",
|
|
1015
|
+
"type": "'set'"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "listenerFunc",
|
|
1019
|
+
"docs": "",
|
|
1020
|
+
"type": "(state: SetEvent) => void"
|
|
1021
|
+
}
|
|
1022
|
+
],
|
|
1023
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1024
|
+
"tags": [
|
|
1025
|
+
{
|
|
1026
|
+
"name": "since",
|
|
1027
|
+
"text": "8.43.12"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"docs": "Listen for set event in the App, let you know when a bundle has been applied successfully.\nThis event is retained natively until JavaScript consumes it, so if the app reloads before your\nlistener is attached, the last pending `set` event is delivered once the listener subscribes.",
|
|
1031
|
+
"complexTypes": [
|
|
1032
|
+
"PluginListenerHandle",
|
|
1033
|
+
"SetEvent"
|
|
1034
|
+
],
|
|
1035
|
+
"slug": "addlistenerset-"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"name": "addListener",
|
|
1039
|
+
"signature": "(eventName: 'setNext', listenerFunc: (state: SetNextEvent) => void) => Promise<PluginListenerHandle>",
|
|
1040
|
+
"parameters": [
|
|
1041
|
+
{
|
|
1042
|
+
"name": "eventName",
|
|
1043
|
+
"docs": "",
|
|
1044
|
+
"type": "'setNext'"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"name": "listenerFunc",
|
|
1048
|
+
"docs": "",
|
|
1049
|
+
"type": "(state: SetNextEvent) => void"
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1053
|
+
"tags": [
|
|
1054
|
+
{
|
|
1055
|
+
"name": "since",
|
|
1056
|
+
"text": "6.14.0"
|
|
1057
|
+
}
|
|
1058
|
+
],
|
|
1059
|
+
"docs": "Listen for set next event in the App, let you know when a bundle is queued as the next bundle to install.",
|
|
1060
|
+
"complexTypes": [
|
|
1061
|
+
"PluginListenerHandle",
|
|
1062
|
+
"SetNextEvent"
|
|
1063
|
+
],
|
|
1064
|
+
"slug": "addlistenersetnext-"
|
|
1065
|
+
},
|
|
979
1066
|
{
|
|
980
1067
|
"name": "addListener",
|
|
981
1068
|
"signature": "(eventName: 'downloadFailed', listenerFunc: (state: DownloadFailedEvent) => void) => Promise<PluginListenerHandle>",
|
|
@@ -1055,7 +1142,7 @@
|
|
|
1055
1142
|
"text": "5.1.0"
|
|
1056
1143
|
}
|
|
1057
1144
|
],
|
|
1058
|
-
"docs": "Listen for app ready event in the App, let you know when app is ready to use,
|
|
1145
|
+
"docs": "Listen for app ready event in the App, let you know when app is ready to use.\nThis event is retained natively until JavaScript consumes it, so it can still be delivered after\na reload even if the listener is attached later in app startup.",
|
|
1059
1146
|
"complexTypes": [
|
|
1060
1147
|
"PluginListenerHandle",
|
|
1061
1148
|
"AppReadyEvent"
|
|
@@ -1255,6 +1342,70 @@
|
|
|
1255
1342
|
],
|
|
1256
1343
|
"slug": "isshakemenuenabled"
|
|
1257
1344
|
},
|
|
1345
|
+
{
|
|
1346
|
+
"name": "setShakeChannelSelector",
|
|
1347
|
+
"signature": "(options: SetShakeChannelSelectorOptions) => Promise<void>",
|
|
1348
|
+
"parameters": [
|
|
1349
|
+
{
|
|
1350
|
+
"name": "options",
|
|
1351
|
+
"docs": "",
|
|
1352
|
+
"type": "SetShakeChannelSelectorOptions"
|
|
1353
|
+
}
|
|
1354
|
+
],
|
|
1355
|
+
"returns": "Promise<void>",
|
|
1356
|
+
"tags": [
|
|
1357
|
+
{
|
|
1358
|
+
"name": "param",
|
|
1359
|
+
"text": "options"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
"name": "link",
|
|
1363
|
+
"text": "SetShakeChannelSelectorOptions} with `enabled: true` to enable or `enabled: false` to disable."
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"name": "returns",
|
|
1367
|
+
"text": "Resolves when the setting is applied."
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"name": "throws",
|
|
1371
|
+
"text": "{Error} If the operation fails."
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"name": "since",
|
|
1375
|
+
"text": "8.43.0"
|
|
1376
|
+
}
|
|
1377
|
+
],
|
|
1378
|
+
"docs": "Enable or disable the shake channel selector at runtime.\n\nWhen enabled AND shakeMenu is true, shaking the device shows a channel\nselector instead of the debug menu. This allows users to switch between\nupdate channels by shaking their device.\n\nAfter selecting a channel, the app automatically checks for updates\nand downloads if available.\n\nCan also be configured via {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.",
|
|
1379
|
+
"complexTypes": [
|
|
1380
|
+
"SetShakeChannelSelectorOptions"
|
|
1381
|
+
],
|
|
1382
|
+
"slug": "setshakechannelselector"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "isShakeChannelSelectorEnabled",
|
|
1386
|
+
"signature": "() => Promise<ShakeChannelSelectorEnabled>",
|
|
1387
|
+
"parameters": [],
|
|
1388
|
+
"returns": "Promise<ShakeChannelSelectorEnabled>",
|
|
1389
|
+
"tags": [
|
|
1390
|
+
{
|
|
1391
|
+
"name": "returns",
|
|
1392
|
+
"text": "Object with `enabled: true` or `enabled: false`."
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "throws",
|
|
1396
|
+
"text": "{Error} If the operation fails."
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"name": "since",
|
|
1400
|
+
"text": "8.43.0"
|
|
1401
|
+
}
|
|
1402
|
+
],
|
|
1403
|
+
"docs": "Check if the shake channel selector is currently enabled.\n\nReturns the current state of the shake channel selector feature that can be toggled via\n{@link setShakeChannelSelector} or configured via {@link PluginsConfig.CapacitorUpdater.allowShakeChannelSelector}.",
|
|
1404
|
+
"complexTypes": [
|
|
1405
|
+
"ShakeChannelSelectorEnabled"
|
|
1406
|
+
],
|
|
1407
|
+
"slug": "isshakechannelselectorenabled"
|
|
1408
|
+
},
|
|
1258
1409
|
{
|
|
1259
1410
|
"name": "getAppId",
|
|
1260
1411
|
"signature": "() => Promise<GetAppIdRes>",
|
|
@@ -1750,10 +1901,27 @@
|
|
|
1750
1901
|
"properties": [
|
|
1751
1902
|
{
|
|
1752
1903
|
"name": "toLastSuccessful",
|
|
1753
|
-
"tags": [
|
|
1754
|
-
|
|
1904
|
+
"tags": [
|
|
1905
|
+
{
|
|
1906
|
+
"text": "false",
|
|
1907
|
+
"name": "default"
|
|
1908
|
+
}
|
|
1909
|
+
],
|
|
1910
|
+
"docs": "Reset to the last successfully loaded bundle instead of the builtin one.",
|
|
1755
1911
|
"complexTypes": [],
|
|
1756
|
-
"type": "boolean"
|
|
1912
|
+
"type": "boolean | undefined"
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
"name": "usePendingBundle",
|
|
1916
|
+
"tags": [
|
|
1917
|
+
{
|
|
1918
|
+
"text": "false",
|
|
1919
|
+
"name": "default"
|
|
1920
|
+
}
|
|
1921
|
+
],
|
|
1922
|
+
"docs": "Apply the pending bundle set via {@link next} while resetting.\n\nWhen `true`, the plugin will switch to the pending bundle immediately and clear the pending flag.\nIf no pending bundle exists, the reset will fail.",
|
|
1923
|
+
"complexTypes": [],
|
|
1924
|
+
"type": "boolean | undefined"
|
|
1757
1925
|
}
|
|
1758
1926
|
]
|
|
1759
1927
|
},
|
|
@@ -1906,10 +2074,36 @@
|
|
|
1906
2074
|
{
|
|
1907
2075
|
"name": "error",
|
|
1908
2076
|
"tags": [],
|
|
1909
|
-
"docs": "Error code from the server, if any
|
|
2077
|
+
"docs": "Error code from the server, if any. Use `kind` for classification instead of parsing this value.",
|
|
1910
2078
|
"complexTypes": [],
|
|
1911
2079
|
"type": "string | undefined"
|
|
1912
2080
|
},
|
|
2081
|
+
{
|
|
2082
|
+
"name": "kind",
|
|
2083
|
+
"tags": [
|
|
2084
|
+
{
|
|
2085
|
+
"text": "8.45.11",
|
|
2086
|
+
"name": "since"
|
|
2087
|
+
}
|
|
2088
|
+
],
|
|
2089
|
+
"docs": "Classification for this response, provided by the backend.",
|
|
2090
|
+
"complexTypes": [
|
|
2091
|
+
"UpdateResponseKind"
|
|
2092
|
+
],
|
|
2093
|
+
"type": "UpdateResponseKind"
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"name": "statusCode",
|
|
2097
|
+
"tags": [
|
|
2098
|
+
{
|
|
2099
|
+
"text": "8.45.11",
|
|
2100
|
+
"name": "since"
|
|
2101
|
+
}
|
|
2102
|
+
],
|
|
2103
|
+
"docs": "HTTP status code returned by the update server for classified update-check responses.",
|
|
2104
|
+
"complexTypes": [],
|
|
2105
|
+
"type": "number | undefined"
|
|
2106
|
+
},
|
|
1913
2107
|
{
|
|
1914
2108
|
"name": "old",
|
|
1915
2109
|
"tags": [],
|
|
@@ -2341,6 +2535,91 @@
|
|
|
2341
2535
|
}
|
|
2342
2536
|
]
|
|
2343
2537
|
},
|
|
2538
|
+
{
|
|
2539
|
+
"name": "UpdateCheckResultEvent",
|
|
2540
|
+
"slug": "updatecheckresultevent",
|
|
2541
|
+
"docs": "",
|
|
2542
|
+
"tags": [],
|
|
2543
|
+
"methods": [],
|
|
2544
|
+
"properties": [
|
|
2545
|
+
{
|
|
2546
|
+
"name": "kind",
|
|
2547
|
+
"tags": [
|
|
2548
|
+
{
|
|
2549
|
+
"text": "8.45.11",
|
|
2550
|
+
"name": "since"
|
|
2551
|
+
}
|
|
2552
|
+
],
|
|
2553
|
+
"docs": "Classification for the update check result, provided by the backend.",
|
|
2554
|
+
"complexTypes": [
|
|
2555
|
+
"UpdateResponseKind"
|
|
2556
|
+
],
|
|
2557
|
+
"type": "UpdateResponseKind"
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"name": "error",
|
|
2561
|
+
"tags": [
|
|
2562
|
+
{
|
|
2563
|
+
"text": "8.45.11",
|
|
2564
|
+
"name": "since"
|
|
2565
|
+
}
|
|
2566
|
+
],
|
|
2567
|
+
"docs": "Backend error code, when provided.",
|
|
2568
|
+
"complexTypes": [],
|
|
2569
|
+
"type": "string | undefined"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
"name": "message",
|
|
2573
|
+
"tags": [
|
|
2574
|
+
{
|
|
2575
|
+
"text": "8.45.11",
|
|
2576
|
+
"name": "since"
|
|
2577
|
+
}
|
|
2578
|
+
],
|
|
2579
|
+
"docs": "Backend message, when provided.",
|
|
2580
|
+
"complexTypes": [],
|
|
2581
|
+
"type": "string | undefined"
|
|
2582
|
+
},
|
|
2583
|
+
{
|
|
2584
|
+
"name": "statusCode",
|
|
2585
|
+
"tags": [
|
|
2586
|
+
{
|
|
2587
|
+
"text": "8.45.11",
|
|
2588
|
+
"name": "since"
|
|
2589
|
+
}
|
|
2590
|
+
],
|
|
2591
|
+
"docs": "HTTP status code returned by the update endpoint.",
|
|
2592
|
+
"complexTypes": [],
|
|
2593
|
+
"type": "number | undefined"
|
|
2594
|
+
},
|
|
2595
|
+
{
|
|
2596
|
+
"name": "version",
|
|
2597
|
+
"tags": [
|
|
2598
|
+
{
|
|
2599
|
+
"text": "8.45.11",
|
|
2600
|
+
"name": "since"
|
|
2601
|
+
}
|
|
2602
|
+
],
|
|
2603
|
+
"docs": "Version referenced by the update check result.",
|
|
2604
|
+
"complexTypes": [],
|
|
2605
|
+
"type": "string | undefined"
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
"name": "bundle",
|
|
2609
|
+
"tags": [
|
|
2610
|
+
{
|
|
2611
|
+
"text": "8.45.11",
|
|
2612
|
+
"name": "since"
|
|
2613
|
+
}
|
|
2614
|
+
],
|
|
2615
|
+
"docs": "Current bundle on the device.",
|
|
2616
|
+
"complexTypes": [
|
|
2617
|
+
"BundleInfo"
|
|
2618
|
+
],
|
|
2619
|
+
"type": "BundleInfo"
|
|
2620
|
+
}
|
|
2621
|
+
]
|
|
2622
|
+
},
|
|
2344
2623
|
{
|
|
2345
2624
|
"name": "UpdateAvailableEvent",
|
|
2346
2625
|
"slug": "updateavailableevent",
|
|
@@ -2435,6 +2714,52 @@
|
|
|
2435
2714
|
}
|
|
2436
2715
|
]
|
|
2437
2716
|
},
|
|
2717
|
+
{
|
|
2718
|
+
"name": "SetEvent",
|
|
2719
|
+
"slug": "setevent",
|
|
2720
|
+
"docs": "",
|
|
2721
|
+
"tags": [],
|
|
2722
|
+
"methods": [],
|
|
2723
|
+
"properties": [
|
|
2724
|
+
{
|
|
2725
|
+
"name": "bundle",
|
|
2726
|
+
"tags": [
|
|
2727
|
+
{
|
|
2728
|
+
"text": "8.43.12",
|
|
2729
|
+
"name": "since"
|
|
2730
|
+
}
|
|
2731
|
+
],
|
|
2732
|
+
"docs": "Emit when a bundle has been applied successfully.\nThis event uses native `retainUntilConsumed` behavior.",
|
|
2733
|
+
"complexTypes": [
|
|
2734
|
+
"BundleInfo"
|
|
2735
|
+
],
|
|
2736
|
+
"type": "BundleInfo"
|
|
2737
|
+
}
|
|
2738
|
+
]
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
"name": "SetNextEvent",
|
|
2742
|
+
"slug": "setnextevent",
|
|
2743
|
+
"docs": "",
|
|
2744
|
+
"tags": [],
|
|
2745
|
+
"methods": [],
|
|
2746
|
+
"properties": [
|
|
2747
|
+
{
|
|
2748
|
+
"name": "bundle",
|
|
2749
|
+
"tags": [
|
|
2750
|
+
{
|
|
2751
|
+
"text": "6.14.0",
|
|
2752
|
+
"name": "since"
|
|
2753
|
+
}
|
|
2754
|
+
],
|
|
2755
|
+
"docs": "Emit when a bundle is queued as the next bundle to install.",
|
|
2756
|
+
"complexTypes": [
|
|
2757
|
+
"BundleInfo"
|
|
2758
|
+
],
|
|
2759
|
+
"type": "BundleInfo"
|
|
2760
|
+
}
|
|
2761
|
+
]
|
|
2762
|
+
},
|
|
2438
2763
|
{
|
|
2439
2764
|
"name": "DownloadFailedEvent",
|
|
2440
2765
|
"slug": "downloadfailedevent",
|
|
@@ -2471,7 +2796,7 @@
|
|
|
2471
2796
|
"name": "since"
|
|
2472
2797
|
}
|
|
2473
2798
|
],
|
|
2474
|
-
"docs": "Emitted when the app is ready to use.",
|
|
2799
|
+
"docs": "Emitted when the app is ready to use.\nThis event uses native `retainUntilConsumed` behavior.",
|
|
2475
2800
|
"complexTypes": [
|
|
2476
2801
|
"BundleInfo"
|
|
2477
2802
|
],
|
|
@@ -2614,6 +2939,38 @@
|
|
|
2614
2939
|
}
|
|
2615
2940
|
]
|
|
2616
2941
|
},
|
|
2942
|
+
{
|
|
2943
|
+
"name": "SetShakeChannelSelectorOptions",
|
|
2944
|
+
"slug": "setshakechannelselectoroptions",
|
|
2945
|
+
"docs": "",
|
|
2946
|
+
"tags": [],
|
|
2947
|
+
"methods": [],
|
|
2948
|
+
"properties": [
|
|
2949
|
+
{
|
|
2950
|
+
"name": "enabled",
|
|
2951
|
+
"tags": [],
|
|
2952
|
+
"docs": "",
|
|
2953
|
+
"complexTypes": [],
|
|
2954
|
+
"type": "boolean"
|
|
2955
|
+
}
|
|
2956
|
+
]
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
"name": "ShakeChannelSelectorEnabled",
|
|
2960
|
+
"slug": "shakechannelselectorenabled",
|
|
2961
|
+
"docs": "",
|
|
2962
|
+
"tags": [],
|
|
2963
|
+
"methods": [],
|
|
2964
|
+
"properties": [
|
|
2965
|
+
{
|
|
2966
|
+
"name": "enabled",
|
|
2967
|
+
"tags": [],
|
|
2968
|
+
"docs": "",
|
|
2969
|
+
"complexTypes": [],
|
|
2970
|
+
"type": "boolean"
|
|
2971
|
+
}
|
|
2972
|
+
]
|
|
2973
|
+
},
|
|
2617
2974
|
{
|
|
2618
2975
|
"name": "GetAppIdRes",
|
|
2619
2976
|
"slug": "getappidres",
|
|
@@ -3076,6 +3433,25 @@
|
|
|
3076
3433
|
}
|
|
3077
3434
|
]
|
|
3078
3435
|
},
|
|
3436
|
+
{
|
|
3437
|
+
"name": "UpdateResponseKind",
|
|
3438
|
+
"slug": "updateresponsekind",
|
|
3439
|
+
"docs": "Classification for update-check responses that do not provide a downloadable bundle.\nThe update backend provides this field directly. Missing or unknown values are treated as\nfailed by native clients.",
|
|
3440
|
+
"types": [
|
|
3441
|
+
{
|
|
3442
|
+
"text": "'up_to_date'",
|
|
3443
|
+
"complexTypes": []
|
|
3444
|
+
},
|
|
3445
|
+
{
|
|
3446
|
+
"text": "'blocked'",
|
|
3447
|
+
"complexTypes": []
|
|
3448
|
+
},
|
|
3449
|
+
{
|
|
3450
|
+
"text": "'failed'",
|
|
3451
|
+
"complexTypes": []
|
|
3452
|
+
}
|
|
3453
|
+
]
|
|
3454
|
+
},
|
|
3079
3455
|
{
|
|
3080
3456
|
"name": "BreakingAvailableEvent",
|
|
3081
3457
|
"slug": "breakingavailableevent",
|
|
@@ -3658,6 +4034,22 @@
|
|
|
3658
4034
|
"docs": "Enable shake gesture to show update menu for debugging/testing purposes",
|
|
3659
4035
|
"complexTypes": [],
|
|
3660
4036
|
"type": "boolean | undefined"
|
|
4037
|
+
},
|
|
4038
|
+
{
|
|
4039
|
+
"name": "allowShakeChannelSelector",
|
|
4040
|
+
"tags": [
|
|
4041
|
+
{
|
|
4042
|
+
"text": "false",
|
|
4043
|
+
"name": "default"
|
|
4044
|
+
},
|
|
4045
|
+
{
|
|
4046
|
+
"text": "8.43.0",
|
|
4047
|
+
"name": "since"
|
|
4048
|
+
}
|
|
4049
|
+
],
|
|
4050
|
+
"docs": "Enable the shake gesture to show a channel selector menu for switching between update channels.\nWhen enabled AND `shakeMenu` is true, the shake gesture shows a channel selector\ninstead of the default debug menu (Go Home/Reload/Close).\n\nAfter selecting a channel, the app automatically checks for updates and downloads if available.\nOnly works if channels have `allow_self_set` enabled on the backend.\n\nOnly available for Android and iOS.",
|
|
4051
|
+
"complexTypes": [],
|
|
4052
|
+
"type": "boolean | undefined"
|
|
3661
4053
|
}
|
|
3662
4054
|
],
|
|
3663
4055
|
"docs": "CapacitorUpdater can be configured with these options:"
|