@capgo/capacitor-updater 6.38.0 → 6.40.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/CapgoCapacitorUpdater.podspec +1 -1
- package/Package.swift +2 -2
- package/README.md +311 -143
- package/android/build.gradle +3 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +348 -25
- package/android/src/main/java/ee/forgr/capacitor_updater/DeviceIdHelper.java +0 -6
- package/dist/docs.json +515 -481
- package/dist/esm/definitions.d.ts +426 -329
- package/dist/esm/definitions.js +103 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/history.js +2 -2
- package/dist/esm/history.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +6 -1
- package/dist/esm/web.js +24 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +135 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +136 -4
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +212 -2
- package/ios/Sources/CapacitorUpdaterPlugin/CapgoUpdater.swift +53 -57
- package/ios/Sources/CapacitorUpdaterPlugin/CryptoCipher.swift +1 -5
- package/package.json +6 -5
package/dist/docs.json
CHANGED
|
@@ -1091,6 +1091,35 @@
|
|
|
1091
1091
|
],
|
|
1092
1092
|
"slug": "addlistenerchannelprivate-"
|
|
1093
1093
|
},
|
|
1094
|
+
{
|
|
1095
|
+
"name": "addListener",
|
|
1096
|
+
"signature": "(eventName: 'onFlexibleUpdateStateChange', listenerFunc: (state: FlexibleUpdateState) => void) => Promise<PluginListenerHandle>",
|
|
1097
|
+
"parameters": [
|
|
1098
|
+
{
|
|
1099
|
+
"name": "eventName",
|
|
1100
|
+
"docs": "",
|
|
1101
|
+
"type": "'onFlexibleUpdateStateChange'"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"name": "listenerFunc",
|
|
1105
|
+
"docs": "",
|
|
1106
|
+
"type": "(state: FlexibleUpdateState) => void"
|
|
1107
|
+
}
|
|
1108
|
+
],
|
|
1109
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1110
|
+
"tags": [
|
|
1111
|
+
{
|
|
1112
|
+
"name": "since",
|
|
1113
|
+
"text": "8.0.0"
|
|
1114
|
+
}
|
|
1115
|
+
],
|
|
1116
|
+
"docs": "Listen for flexible update state changes on Android.\n\nThis event fires during the flexible update download process, providing:\n- Download progress (bytes downloaded / total bytes)\n- Installation status changes\n\n**Install status values:**\n- `UNKNOWN` (0): Unknown status\n- `PENDING` (1): Download pending\n- `DOWNLOADING` (2): Download in progress\n- `INSTALLING` (3): Installing the update\n- `INSTALLED` (4): Update installed (app restart needed)\n- `FAILED` (5): Update failed\n- `CANCELED` (6): Update was canceled\n- `DOWNLOADED` (11): Download complete, ready to install\n\nWhen status is `DOWNLOADED`, you should prompt the user and call\n{@link completeFlexibleUpdate} to finish the installation.",
|
|
1117
|
+
"complexTypes": [
|
|
1118
|
+
"PluginListenerHandle",
|
|
1119
|
+
"FlexibleUpdateState"
|
|
1120
|
+
],
|
|
1121
|
+
"slug": "addlisteneronflexibleupdatestatechange-"
|
|
1122
|
+
},
|
|
1094
1123
|
{
|
|
1095
1124
|
"name": "isAutoUpdateAvailable",
|
|
1096
1125
|
"signature": "() => Promise<AutoUpdateAvailable>",
|
|
@@ -1289,6 +1318,150 @@
|
|
|
1289
1318
|
"SetAppIdOptions"
|
|
1290
1319
|
],
|
|
1291
1320
|
"slug": "setappid"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"name": "getAppUpdateInfo",
|
|
1324
|
+
"signature": "(options?: GetAppUpdateInfoOptions | undefined) => Promise<AppUpdateInfo>",
|
|
1325
|
+
"parameters": [
|
|
1326
|
+
{
|
|
1327
|
+
"name": "options",
|
|
1328
|
+
"docs": "Optional {@link GetAppUpdateInfoOptions} with country code for iOS.",
|
|
1329
|
+
"type": "GetAppUpdateInfoOptions | undefined"
|
|
1330
|
+
}
|
|
1331
|
+
],
|
|
1332
|
+
"returns": "Promise<AppUpdateInfo>",
|
|
1333
|
+
"tags": [
|
|
1334
|
+
{
|
|
1335
|
+
"name": "param",
|
|
1336
|
+
"text": "options Optional {@link GetAppUpdateInfoOptions} with country code for iOS."
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"name": "returns",
|
|
1340
|
+
"text": "Information about the current and available app versions."
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"name": "throws",
|
|
1344
|
+
"text": "{Error} If the operation fails or store information is unavailable."
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"name": "since",
|
|
1348
|
+
"text": "8.0.0"
|
|
1349
|
+
}
|
|
1350
|
+
],
|
|
1351
|
+
"docs": "Get information about the app's availability in the App Store or Play Store.\n\nThis method checks the native app stores to see if a newer version of the app\nis available for download. This is different from Capgo's OTA updates - this\nchecks for native app updates that require going through the app stores.\n\n**Platform differences:**\n- **Android**: Uses Play Store's In-App Updates API for accurate update information\n- **iOS**: Queries the App Store lookup API (requires country code for accurate results)\n\n**Returns information about:**\n- Current installed version\n- Available version in the store (if any)\n- Whether an update is available\n- Update priority (Android only)\n- Whether immediate/flexible updates are allowed (Android only)\n\nUse this to:\n- Check if users need to update from the app store\n- Show \"Update Available\" prompts for native updates\n- Implement version gating (require minimum native version)\n- Combine with Capgo OTA updates for a complete update strategy",
|
|
1352
|
+
"complexTypes": [
|
|
1353
|
+
"AppUpdateInfo",
|
|
1354
|
+
"GetAppUpdateInfoOptions"
|
|
1355
|
+
],
|
|
1356
|
+
"slug": "getappupdateinfo"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"name": "openAppStore",
|
|
1360
|
+
"signature": "(options?: OpenAppStoreOptions | undefined) => Promise<void>",
|
|
1361
|
+
"parameters": [
|
|
1362
|
+
{
|
|
1363
|
+
"name": "options",
|
|
1364
|
+
"docs": "Optional {@link OpenAppStoreOptions} to customize which app's store page to open.",
|
|
1365
|
+
"type": "OpenAppStoreOptions | undefined"
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
"returns": "Promise<void>",
|
|
1369
|
+
"tags": [
|
|
1370
|
+
{
|
|
1371
|
+
"name": "param",
|
|
1372
|
+
"text": "options Optional {@link OpenAppStoreOptions} to customize which app's store page to open."
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "returns",
|
|
1376
|
+
"text": "Resolves when the store is opened."
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "throws",
|
|
1380
|
+
"text": "{Error} If the store cannot be opened."
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"name": "since",
|
|
1384
|
+
"text": "8.0.0"
|
|
1385
|
+
}
|
|
1386
|
+
],
|
|
1387
|
+
"docs": "Open the app's page in the App Store or Play Store.\n\nThis navigates the user to your app's store listing where they can manually\nupdate the app. Use this as a fallback when in-app updates are not available\nor when the user needs to update on iOS.\n\n**Platform behavior:**\n- **Android**: Opens Play Store to the app's page\n- **iOS**: Opens App Store to the app's page\n\n**Customization options:**\n- `appId`: Specify a custom App Store ID (iOS) - useful for opening a different app's page\n- `packageName`: Specify a custom package name (Android) - useful for opening a different app's page",
|
|
1388
|
+
"complexTypes": [
|
|
1389
|
+
"OpenAppStoreOptions"
|
|
1390
|
+
],
|
|
1391
|
+
"slug": "openappstore"
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"name": "performImmediateUpdate",
|
|
1395
|
+
"signature": "() => Promise<AppUpdateResult>",
|
|
1396
|
+
"parameters": [],
|
|
1397
|
+
"returns": "Promise<AppUpdateResult>",
|
|
1398
|
+
"tags": [
|
|
1399
|
+
{
|
|
1400
|
+
"name": "returns",
|
|
1401
|
+
"text": "Result indicating success, cancellation, or failure."
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "throws",
|
|
1405
|
+
"text": "{Error} If not on Android, no update is available, or immediate updates not allowed."
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"name": "since",
|
|
1409
|
+
"text": "8.0.0"
|
|
1410
|
+
}
|
|
1411
|
+
],
|
|
1412
|
+
"docs": "Perform an immediate in-app update on Android.\n\nThis triggers Google Play's immediate update flow, which:\n1. Shows a full-screen update UI\n2. Downloads and installs the update\n3. Restarts the app automatically\n\nThe user cannot continue using the app until the update is complete.\nThis is ideal for critical updates that must be installed immediately.\n\n**Requirements:**\n- Android only (throws error on iOS)\n- An update must be available (check with {@link getAppUpdateInfo} first)\n- The update must allow immediate updates (`immediateUpdateAllowed: true`)\n\n**User experience:**\n- Full-screen blocking UI\n- Progress shown during download\n- App automatically restarts after installation",
|
|
1413
|
+
"complexTypes": [
|
|
1414
|
+
"AppUpdateResult"
|
|
1415
|
+
],
|
|
1416
|
+
"slug": "performimmediateupdate"
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"name": "startFlexibleUpdate",
|
|
1420
|
+
"signature": "() => Promise<AppUpdateResult>",
|
|
1421
|
+
"parameters": [],
|
|
1422
|
+
"returns": "Promise<AppUpdateResult>",
|
|
1423
|
+
"tags": [
|
|
1424
|
+
{
|
|
1425
|
+
"name": "returns",
|
|
1426
|
+
"text": "Result indicating the update was started, cancelled, or failed."
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "throws",
|
|
1430
|
+
"text": "{Error} If not on Android, no update is available, or flexible updates not allowed."
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"name": "since",
|
|
1434
|
+
"text": "8.0.0"
|
|
1435
|
+
}
|
|
1436
|
+
],
|
|
1437
|
+
"docs": "Start a flexible in-app update on Android.\n\nThis triggers Google Play's flexible update flow, which:\n1. Downloads the update in the background\n2. Allows the user to continue using the app\n3. Notifies when download is complete\n4. Requires calling {@link completeFlexibleUpdate} to install\n\nMonitor the download progress using the `onFlexibleUpdateStateChange` listener.\n\n**Requirements:**\n- Android only (throws error on iOS)\n- An update must be available (check with {@link getAppUpdateInfo} first)\n- The update must allow flexible updates (`flexibleUpdateAllowed: true`)\n\n**Typical flow:**\n1. Call `startFlexibleUpdate()` to begin download\n2. Listen to `onFlexibleUpdateStateChange` for progress\n3. When status is `DOWNLOADED`, prompt user to restart\n4. Call `completeFlexibleUpdate()` to install and restart",
|
|
1438
|
+
"complexTypes": [
|
|
1439
|
+
"AppUpdateResult"
|
|
1440
|
+
],
|
|
1441
|
+
"slug": "startflexibleupdate"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"name": "completeFlexibleUpdate",
|
|
1445
|
+
"signature": "() => Promise<void>",
|
|
1446
|
+
"parameters": [],
|
|
1447
|
+
"returns": "Promise<void>",
|
|
1448
|
+
"tags": [
|
|
1449
|
+
{
|
|
1450
|
+
"name": "returns",
|
|
1451
|
+
"text": "Resolves when the update installation begins (app will restart)."
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"name": "throws",
|
|
1455
|
+
"text": "{Error} If not on Android or no downloaded update is pending."
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"name": "since",
|
|
1459
|
+
"text": "8.0.0"
|
|
1460
|
+
}
|
|
1461
|
+
],
|
|
1462
|
+
"docs": "Complete a flexible in-app update on Android.\n\nAfter a flexible update has been downloaded (status `DOWNLOADED` in\n`onFlexibleUpdateStateChange`), call this method to install the update\nand restart the app.\n\n**Important:** This will immediately restart the app. Make sure to:\n- Save any user data before calling\n- Prompt the user before restarting\n- Only call when the download status is `DOWNLOADED`",
|
|
1463
|
+
"complexTypes": [],
|
|
1464
|
+
"slug": "completeflexibleupdate"
|
|
1292
1465
|
}
|
|
1293
1466
|
],
|
|
1294
1467
|
"properties": []
|
|
@@ -2341,6 +2514,58 @@
|
|
|
2341
2514
|
}
|
|
2342
2515
|
]
|
|
2343
2516
|
},
|
|
2517
|
+
{
|
|
2518
|
+
"name": "FlexibleUpdateState",
|
|
2519
|
+
"slug": "flexibleupdatestate",
|
|
2520
|
+
"docs": "State information for flexible update progress (Android only).",
|
|
2521
|
+
"tags": [
|
|
2522
|
+
{
|
|
2523
|
+
"text": "8.0.0",
|
|
2524
|
+
"name": "since"
|
|
2525
|
+
}
|
|
2526
|
+
],
|
|
2527
|
+
"methods": [],
|
|
2528
|
+
"properties": [
|
|
2529
|
+
{
|
|
2530
|
+
"name": "installStatus",
|
|
2531
|
+
"tags": [
|
|
2532
|
+
{
|
|
2533
|
+
"text": "8.0.0",
|
|
2534
|
+
"name": "since"
|
|
2535
|
+
}
|
|
2536
|
+
],
|
|
2537
|
+
"docs": "The current installation status.",
|
|
2538
|
+
"complexTypes": [
|
|
2539
|
+
"FlexibleUpdateInstallStatus"
|
|
2540
|
+
],
|
|
2541
|
+
"type": "FlexibleUpdateInstallStatus"
|
|
2542
|
+
},
|
|
2543
|
+
{
|
|
2544
|
+
"name": "bytesDownloaded",
|
|
2545
|
+
"tags": [
|
|
2546
|
+
{
|
|
2547
|
+
"text": "8.0.0",
|
|
2548
|
+
"name": "since"
|
|
2549
|
+
}
|
|
2550
|
+
],
|
|
2551
|
+
"docs": "Number of bytes downloaded so far.\nOnly available during the `DOWNLOADING` status.",
|
|
2552
|
+
"complexTypes": [],
|
|
2553
|
+
"type": "number | undefined"
|
|
2554
|
+
},
|
|
2555
|
+
{
|
|
2556
|
+
"name": "totalBytesToDownload",
|
|
2557
|
+
"tags": [
|
|
2558
|
+
{
|
|
2559
|
+
"text": "8.0.0",
|
|
2560
|
+
"name": "since"
|
|
2561
|
+
}
|
|
2562
|
+
],
|
|
2563
|
+
"docs": "Total number of bytes to download.\nOnly available during the `DOWNLOADING` status.",
|
|
2564
|
+
"complexTypes": [],
|
|
2565
|
+
"type": "number | undefined"
|
|
2566
|
+
}
|
|
2567
|
+
]
|
|
2568
|
+
},
|
|
2344
2569
|
{
|
|
2345
2570
|
"name": "AutoUpdateAvailable",
|
|
2346
2571
|
"slug": "autoupdateavailable",
|
|
@@ -2420,641 +2645,450 @@
|
|
|
2420
2645
|
"type": "string"
|
|
2421
2646
|
}
|
|
2422
2647
|
]
|
|
2423
|
-
}
|
|
2424
|
-
],
|
|
2425
|
-
"enums": [],
|
|
2426
|
-
"typeAliases": [
|
|
2427
|
-
{
|
|
2428
|
-
"name": "BundleStatus",
|
|
2429
|
-
"slug": "bundlestatus",
|
|
2430
|
-
"docs": "pending: The bundle is pending to be **SET** as the next bundle.\ndownloading: The bundle is being downloaded.\nsuccess: The bundle has been downloaded and is ready to be **SET** as the next bundle.\nerror: The bundle has failed to download.",
|
|
2431
|
-
"types": [
|
|
2432
|
-
{
|
|
2433
|
-
"text": "'success'",
|
|
2434
|
-
"complexTypes": []
|
|
2435
|
-
},
|
|
2436
|
-
{
|
|
2437
|
-
"text": "'error'",
|
|
2438
|
-
"complexTypes": []
|
|
2439
|
-
},
|
|
2440
|
-
{
|
|
2441
|
-
"text": "'pending'",
|
|
2442
|
-
"complexTypes": []
|
|
2443
|
-
},
|
|
2444
|
-
{
|
|
2445
|
-
"text": "'downloading'",
|
|
2446
|
-
"complexTypes": []
|
|
2447
|
-
}
|
|
2448
|
-
]
|
|
2449
|
-
},
|
|
2450
|
-
{
|
|
2451
|
-
"name": "DelayUntilNext",
|
|
2452
|
-
"slug": "delayuntilnext",
|
|
2453
|
-
"docs": "",
|
|
2454
|
-
"types": [
|
|
2455
|
-
{
|
|
2456
|
-
"text": "'background'",
|
|
2457
|
-
"complexTypes": []
|
|
2458
|
-
},
|
|
2459
|
-
{
|
|
2460
|
-
"text": "'kill'",
|
|
2461
|
-
"complexTypes": []
|
|
2462
|
-
},
|
|
2463
|
-
{
|
|
2464
|
-
"text": "'nativeVersion'",
|
|
2465
|
-
"complexTypes": []
|
|
2466
|
-
},
|
|
2467
|
-
{
|
|
2468
|
-
"text": "'date'",
|
|
2469
|
-
"complexTypes": []
|
|
2470
|
-
}
|
|
2471
|
-
]
|
|
2472
2648
|
},
|
|
2473
2649
|
{
|
|
2474
|
-
"name": "
|
|
2475
|
-
"slug": "
|
|
2476
|
-
"docs": "
|
|
2477
|
-
"
|
|
2650
|
+
"name": "AppUpdateInfo",
|
|
2651
|
+
"slug": "appupdateinfo",
|
|
2652
|
+
"docs": "Information about app updates available in the App Store or Play Store.",
|
|
2653
|
+
"tags": [
|
|
2478
2654
|
{
|
|
2479
|
-
"text": "
|
|
2480
|
-
"
|
|
2481
|
-
"MajorAvailableEvent"
|
|
2482
|
-
]
|
|
2655
|
+
"text": "8.0.0",
|
|
2656
|
+
"name": "since"
|
|
2483
2657
|
}
|
|
2484
|
-
]
|
|
2485
|
-
|
|
2486
|
-
],
|
|
2487
|
-
"pluginConfigs": [
|
|
2488
|
-
{
|
|
2489
|
-
"name": "CapacitorUpdater",
|
|
2490
|
-
"slug": "capacitorupdater",
|
|
2658
|
+
],
|
|
2659
|
+
"methods": [],
|
|
2491
2660
|
"properties": [
|
|
2492
2661
|
{
|
|
2493
|
-
"name": "
|
|
2662
|
+
"name": "currentVersionName",
|
|
2494
2663
|
"tags": [
|
|
2495
2664
|
{
|
|
2496
|
-
"text": "
|
|
2497
|
-
"name": "
|
|
2498
|
-
},
|
|
2499
|
-
{
|
|
2500
|
-
"text": "1000 // (1 second, minimum 1000)",
|
|
2501
|
-
"name": "example"
|
|
2665
|
+
"text": "8.0.0",
|
|
2666
|
+
"name": "since"
|
|
2502
2667
|
}
|
|
2503
2668
|
],
|
|
2504
|
-
"docs": "
|
|
2669
|
+
"docs": "The currently installed version name (e.g., \"1.2.3\").",
|
|
2505
2670
|
"complexTypes": [],
|
|
2506
|
-
"type": "
|
|
2671
|
+
"type": "string"
|
|
2507
2672
|
},
|
|
2508
2673
|
{
|
|
2509
|
-
"name": "
|
|
2674
|
+
"name": "availableVersionName",
|
|
2510
2675
|
"tags": [
|
|
2511
2676
|
{
|
|
2512
|
-
"text": "
|
|
2513
|
-
"name": "
|
|
2514
|
-
},
|
|
2515
|
-
{
|
|
2516
|
-
"text": "10 // (10 second)",
|
|
2517
|
-
"name": "example"
|
|
2677
|
+
"text": "8.0.0",
|
|
2678
|
+
"name": "since"
|
|
2518
2679
|
}
|
|
2519
2680
|
],
|
|
2520
|
-
"docs": "
|
|
2681
|
+
"docs": "The version name available in the store, if an update is available.\nMay be undefined if no update information is available.",
|
|
2521
2682
|
"complexTypes": [],
|
|
2522
|
-
"type": "
|
|
2683
|
+
"type": "string | undefined"
|
|
2523
2684
|
},
|
|
2524
2685
|
{
|
|
2525
|
-
"name": "
|
|
2686
|
+
"name": "currentVersionCode",
|
|
2526
2687
|
"tags": [
|
|
2527
2688
|
{
|
|
2528
|
-
"text": "
|
|
2529
|
-
"name": "
|
|
2530
|
-
},
|
|
2531
|
-
{
|
|
2532
|
-
"text": "false",
|
|
2533
|
-
"name": "example"
|
|
2689
|
+
"text": "8.0.0",
|
|
2690
|
+
"name": "since"
|
|
2534
2691
|
}
|
|
2535
2692
|
],
|
|
2536
|
-
"docs": "
|
|
2693
|
+
"docs": "The currently installed version code (Android) or build number (iOS).",
|
|
2537
2694
|
"complexTypes": [],
|
|
2538
|
-
"type": "
|
|
2695
|
+
"type": "string"
|
|
2539
2696
|
},
|
|
2540
2697
|
{
|
|
2541
|
-
"name": "
|
|
2698
|
+
"name": "availableVersionCode",
|
|
2542
2699
|
"tags": [
|
|
2543
2700
|
{
|
|
2544
|
-
"text": "
|
|
2545
|
-
"name": "
|
|
2546
|
-
},
|
|
2547
|
-
{
|
|
2548
|
-
"text": "false",
|
|
2549
|
-
"name": "example"
|
|
2701
|
+
"text": "8.0.0",
|
|
2702
|
+
"name": "since"
|
|
2550
2703
|
}
|
|
2551
2704
|
],
|
|
2552
|
-
"docs": "
|
|
2705
|
+
"docs": "The version code available in the store (Android only).\nOn iOS, this will be the same as `availableVersionName`.",
|
|
2553
2706
|
"complexTypes": [],
|
|
2554
|
-
"type": "
|
|
2707
|
+
"type": "string | undefined"
|
|
2555
2708
|
},
|
|
2556
2709
|
{
|
|
2557
|
-
"name": "
|
|
2710
|
+
"name": "availableVersionReleaseDate",
|
|
2558
2711
|
"tags": [
|
|
2559
2712
|
{
|
|
2560
|
-
"text": "
|
|
2561
|
-
"name": "
|
|
2562
|
-
},
|
|
2563
|
-
{
|
|
2564
|
-
"text": "false",
|
|
2565
|
-
"name": "example"
|
|
2713
|
+
"text": "8.0.0",
|
|
2714
|
+
"name": "since"
|
|
2566
2715
|
}
|
|
2567
2716
|
],
|
|
2568
|
-
"docs": "
|
|
2717
|
+
"docs": "The release date of the available version (iOS only).\nFormat: ISO 8601 date string.",
|
|
2569
2718
|
"complexTypes": [],
|
|
2570
|
-
"type": "
|
|
2719
|
+
"type": "string | undefined"
|
|
2571
2720
|
},
|
|
2572
2721
|
{
|
|
2573
|
-
"name": "
|
|
2722
|
+
"name": "updateAvailability",
|
|
2574
2723
|
"tags": [
|
|
2575
2724
|
{
|
|
2576
|
-
"text": "
|
|
2577
|
-
"name": "
|
|
2578
|
-
},
|
|
2579
|
-
{
|
|
2580
|
-
"text": "false",
|
|
2581
|
-
"name": "example"
|
|
2725
|
+
"text": "8.0.0",
|
|
2726
|
+
"name": "since"
|
|
2582
2727
|
}
|
|
2583
2728
|
],
|
|
2584
|
-
"docs": "
|
|
2585
|
-
"complexTypes": [
|
|
2586
|
-
|
|
2587
|
-
|
|
2729
|
+
"docs": "The current update availability status.",
|
|
2730
|
+
"complexTypes": [
|
|
2731
|
+
"AppUpdateAvailability"
|
|
2732
|
+
],
|
|
2733
|
+
"type": "AppUpdateAvailability"
|
|
2734
|
+
},
|
|
2588
2735
|
{
|
|
2589
|
-
"name": "
|
|
2736
|
+
"name": "updatePriority",
|
|
2590
2737
|
"tags": [
|
|
2591
2738
|
{
|
|
2592
|
-
"text": "
|
|
2593
|
-
"name": "
|
|
2594
|
-
},
|
|
2595
|
-
{
|
|
2596
|
-
"text": "https://example.com/api/auto_update",
|
|
2597
|
-
"name": "example"
|
|
2739
|
+
"text": "8.0.0",
|
|
2740
|
+
"name": "since"
|
|
2598
2741
|
}
|
|
2599
2742
|
],
|
|
2600
|
-
"docs": "
|
|
2743
|
+
"docs": "The priority of the update as set by the developer in Play Console (Android only).\nValues range from 0 (default/lowest) to 5 (highest priority).\n\nUse this to decide whether to show an update prompt or force an update.",
|
|
2601
2744
|
"complexTypes": [],
|
|
2602
|
-
"type": "
|
|
2745
|
+
"type": "number | undefined"
|
|
2603
2746
|
},
|
|
2604
2747
|
{
|
|
2605
|
-
"name": "
|
|
2748
|
+
"name": "immediateUpdateAllowed",
|
|
2606
2749
|
"tags": [
|
|
2607
2750
|
{
|
|
2608
|
-
"text": "
|
|
2609
|
-
"name": "
|
|
2610
|
-
},
|
|
2611
|
-
{
|
|
2612
|
-
"text": "https://example.com/api/channel",
|
|
2613
|
-
"name": "example"
|
|
2751
|
+
"text": "8.0.0",
|
|
2752
|
+
"name": "since"
|
|
2614
2753
|
}
|
|
2615
2754
|
],
|
|
2616
|
-
"docs": "
|
|
2755
|
+
"docs": "Whether an immediate update is allowed (Android only).\n\nIf `true`, you can call {@link CapacitorUpdaterPlugin.performImmediateUpdate}.",
|
|
2617
2756
|
"complexTypes": [],
|
|
2618
|
-
"type": "
|
|
2757
|
+
"type": "boolean | undefined"
|
|
2619
2758
|
},
|
|
2620
2759
|
{
|
|
2621
|
-
"name": "
|
|
2760
|
+
"name": "flexibleUpdateAllowed",
|
|
2622
2761
|
"tags": [
|
|
2623
2762
|
{
|
|
2624
|
-
"text": "
|
|
2625
|
-
"name": "
|
|
2626
|
-
},
|
|
2627
|
-
{
|
|
2628
|
-
"text": "https://example.com/api/stats",
|
|
2629
|
-
"name": "example"
|
|
2763
|
+
"text": "8.0.0",
|
|
2764
|
+
"name": "since"
|
|
2630
2765
|
}
|
|
2631
2766
|
],
|
|
2632
|
-
"docs": "
|
|
2767
|
+
"docs": "Whether a flexible update is allowed (Android only).\n\nIf `true`, you can call {@link CapacitorUpdaterPlugin.startFlexibleUpdate}.",
|
|
2633
2768
|
"complexTypes": [],
|
|
2634
|
-
"type": "
|
|
2769
|
+
"type": "boolean | undefined"
|
|
2635
2770
|
},
|
|
2636
2771
|
{
|
|
2637
|
-
"name": "
|
|
2772
|
+
"name": "clientVersionStalenessDays",
|
|
2638
2773
|
"tags": [
|
|
2639
2774
|
{
|
|
2640
|
-
"text": "
|
|
2641
|
-
"name": "
|
|
2642
|
-
},
|
|
2643
|
-
{
|
|
2644
|
-
"text": "Use publicKey instead",
|
|
2645
|
-
"name": "deprecated"
|
|
2775
|
+
"text": "8.0.0",
|
|
2776
|
+
"name": "since"
|
|
2646
2777
|
}
|
|
2647
2778
|
],
|
|
2648
|
-
"docs": "
|
|
2779
|
+
"docs": "Number of days since the update became available (Android only).\n\nUse this to implement \"update nagging\" - remind users more frequently\nas the update ages.",
|
|
2649
2780
|
"complexTypes": [],
|
|
2650
|
-
"type": "
|
|
2781
|
+
"type": "number | undefined"
|
|
2651
2782
|
},
|
|
2652
2783
|
{
|
|
2653
|
-
"name": "
|
|
2784
|
+
"name": "installStatus",
|
|
2654
2785
|
"tags": [
|
|
2655
2786
|
{
|
|
2656
|
-
"text": "
|
|
2657
|
-
"name": "default"
|
|
2658
|
-
},
|
|
2659
|
-
{
|
|
2660
|
-
"text": "6.2.0",
|
|
2787
|
+
"text": "8.0.0",
|
|
2661
2788
|
"name": "since"
|
|
2662
2789
|
}
|
|
2663
2790
|
],
|
|
2664
|
-
"docs": "
|
|
2665
|
-
"complexTypes": [
|
|
2666
|
-
|
|
2791
|
+
"docs": "The current install status of a flexible update (Android only).",
|
|
2792
|
+
"complexTypes": [
|
|
2793
|
+
"FlexibleUpdateInstallStatus"
|
|
2794
|
+
],
|
|
2795
|
+
"type": "FlexibleUpdateInstallStatus"
|
|
2667
2796
|
},
|
|
2668
2797
|
{
|
|
2669
|
-
"name": "
|
|
2798
|
+
"name": "minimumOsVersion",
|
|
2670
2799
|
"tags": [
|
|
2671
2800
|
{
|
|
2672
|
-
"text": "
|
|
2673
|
-
"name": "default"
|
|
2674
|
-
},
|
|
2675
|
-
{
|
|
2676
|
-
"text": "4.17.48",
|
|
2801
|
+
"text": "8.0.0",
|
|
2677
2802
|
"name": "since"
|
|
2678
2803
|
}
|
|
2679
2804
|
],
|
|
2680
|
-
"docs": "
|
|
2805
|
+
"docs": "The minimum OS version required for the available update (iOS only).",
|
|
2681
2806
|
"complexTypes": [],
|
|
2682
2807
|
"type": "string | undefined"
|
|
2683
|
-
}
|
|
2808
|
+
}
|
|
2809
|
+
]
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
"name": "GetAppUpdateInfoOptions",
|
|
2813
|
+
"slug": "getappupdateinfooptions",
|
|
2814
|
+
"docs": "Options for {@link CapacitorUpdaterPlugin.getAppUpdateInfo}.",
|
|
2815
|
+
"tags": [
|
|
2816
|
+
{
|
|
2817
|
+
"text": "8.0.0",
|
|
2818
|
+
"name": "since"
|
|
2819
|
+
}
|
|
2820
|
+
],
|
|
2821
|
+
"methods": [],
|
|
2822
|
+
"properties": [
|
|
2684
2823
|
{
|
|
2685
|
-
"name": "
|
|
2824
|
+
"name": "country",
|
|
2686
2825
|
"tags": [
|
|
2687
2826
|
{
|
|
2688
|
-
"text": "
|
|
2689
|
-
"name": "default"
|
|
2690
|
-
},
|
|
2691
|
-
{
|
|
2692
|
-
"text": "5.1.0",
|
|
2827
|
+
"text": "8.0.0",
|
|
2693
2828
|
"name": "since"
|
|
2694
2829
|
}
|
|
2695
2830
|
],
|
|
2696
|
-
"docs": "
|
|
2831
|
+
"docs": "Two-letter country code (ISO 3166-1 alpha-2) for the App Store lookup.\n\nThis is required on iOS to get accurate App Store information, as app\navailability and versions can vary by country.\n\nExamples: \"US\", \"GB\", \"DE\", \"JP\", \"FR\"\n\nOn Android, this option is ignored as the Play Store handles region\ndetection automatically.",
|
|
2697
2832
|
"complexTypes": [],
|
|
2698
|
-
"type": "
|
|
2699
|
-
}
|
|
2833
|
+
"type": "string | undefined"
|
|
2834
|
+
}
|
|
2835
|
+
]
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"name": "OpenAppStoreOptions",
|
|
2839
|
+
"slug": "openappstoreoptions",
|
|
2840
|
+
"docs": "Options for {@link CapacitorUpdaterPlugin.openAppStore}.",
|
|
2841
|
+
"tags": [
|
|
2700
2842
|
{
|
|
2701
|
-
"
|
|
2843
|
+
"text": "8.0.0",
|
|
2844
|
+
"name": "since"
|
|
2845
|
+
}
|
|
2846
|
+
],
|
|
2847
|
+
"methods": [],
|
|
2848
|
+
"properties": [
|
|
2849
|
+
{
|
|
2850
|
+
"name": "packageName",
|
|
2702
2851
|
"tags": [
|
|
2703
2852
|
{
|
|
2704
|
-
"text": "
|
|
2705
|
-
"name": "default"
|
|
2706
|
-
},
|
|
2707
|
-
{
|
|
2708
|
-
"text": "7.6.0",
|
|
2853
|
+
"text": "8.0.0",
|
|
2709
2854
|
"name": "since"
|
|
2710
2855
|
}
|
|
2711
2856
|
],
|
|
2712
|
-
"docs": "
|
|
2857
|
+
"docs": "The Android package name to open in the Play Store.\n\nIf not specified, uses the current app's package name.\nUse this to open a different app's store page.\n\nOnly used on Android.",
|
|
2713
2858
|
"complexTypes": [],
|
|
2714
|
-
"type": "
|
|
2859
|
+
"type": "string | undefined"
|
|
2715
2860
|
},
|
|
2716
2861
|
{
|
|
2717
|
-
"name": "
|
|
2862
|
+
"name": "appId",
|
|
2718
2863
|
"tags": [
|
|
2719
2864
|
{
|
|
2720
|
-
"text": "
|
|
2721
|
-
"name": "default"
|
|
2722
|
-
},
|
|
2723
|
-
{
|
|
2724
|
-
"text": "7.19.0",
|
|
2865
|
+
"text": "8.0.0",
|
|
2725
2866
|
"name": "since"
|
|
2726
2867
|
}
|
|
2727
2868
|
],
|
|
2728
|
-
"docs": "
|
|
2869
|
+
"docs": "The iOS App Store ID to open.\n\nIf not specified, uses the current app's bundle identifier to look up the app.\nUse this to open a different app's store page or when automatic lookup fails.\n\nOnly used on iOS.",
|
|
2729
2870
|
"complexTypes": [],
|
|
2730
|
-
"type": "
|
|
2731
|
-
}
|
|
2871
|
+
"type": "string | undefined"
|
|
2872
|
+
}
|
|
2873
|
+
]
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
"name": "AppUpdateResult",
|
|
2877
|
+
"slug": "appupdateresult",
|
|
2878
|
+
"docs": "Result of an app update operation.",
|
|
2879
|
+
"tags": [
|
|
2732
2880
|
{
|
|
2733
|
-
"
|
|
2881
|
+
"text": "8.0.0",
|
|
2882
|
+
"name": "since"
|
|
2883
|
+
}
|
|
2884
|
+
],
|
|
2885
|
+
"methods": [],
|
|
2886
|
+
"properties": [
|
|
2887
|
+
{
|
|
2888
|
+
"name": "code",
|
|
2734
2889
|
"tags": [
|
|
2735
2890
|
{
|
|
2736
|
-
"text": "
|
|
2737
|
-
"name": "default"
|
|
2738
|
-
},
|
|
2739
|
-
{
|
|
2740
|
-
"text": "7.19.0",
|
|
2891
|
+
"text": "8.0.0",
|
|
2741
2892
|
"name": "since"
|
|
2742
2893
|
}
|
|
2743
2894
|
],
|
|
2744
|
-
"docs": "
|
|
2745
|
-
"complexTypes": [
|
|
2746
|
-
|
|
2895
|
+
"docs": "The result code of the update operation.",
|
|
2896
|
+
"complexTypes": [
|
|
2897
|
+
"AppUpdateResultCode"
|
|
2898
|
+
],
|
|
2899
|
+
"type": "AppUpdateResultCode"
|
|
2900
|
+
}
|
|
2901
|
+
]
|
|
2902
|
+
}
|
|
2903
|
+
],
|
|
2904
|
+
"enums": [
|
|
2905
|
+
{
|
|
2906
|
+
"name": "FlexibleUpdateInstallStatus",
|
|
2907
|
+
"slug": "flexibleupdateinstallstatus",
|
|
2908
|
+
"members": [
|
|
2909
|
+
{
|
|
2910
|
+
"name": "UNKNOWN",
|
|
2911
|
+
"value": "0",
|
|
2912
|
+
"tags": [],
|
|
2913
|
+
"docs": "Unknown install status."
|
|
2747
2914
|
},
|
|
2748
2915
|
{
|
|
2749
|
-
"name": "
|
|
2750
|
-
"
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
"name": "default"
|
|
2754
|
-
},
|
|
2755
|
-
{
|
|
2756
|
-
"text": "3600 (1 hour)",
|
|
2757
|
-
"name": "example"
|
|
2758
|
-
},
|
|
2759
|
-
{
|
|
2760
|
-
"text": "86400 (24 hours)",
|
|
2761
|
-
"name": "example"
|
|
2762
|
-
}
|
|
2763
|
-
],
|
|
2764
|
-
"docs": "Configure the delay period for period update check. the unit is in seconds.\n\nOnly available for Android and iOS.\nCannot be less than 600 seconds (10 minutes).",
|
|
2765
|
-
"complexTypes": [],
|
|
2766
|
-
"type": "number | undefined"
|
|
2916
|
+
"name": "PENDING",
|
|
2917
|
+
"value": "1",
|
|
2918
|
+
"tags": [],
|
|
2919
|
+
"docs": "Download is pending and will start soon."
|
|
2767
2920
|
},
|
|
2768
2921
|
{
|
|
2769
|
-
"name": "
|
|
2770
|
-
"
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
"name": "default"
|
|
2774
|
-
},
|
|
2775
|
-
{
|
|
2776
|
-
"text": "4.17.48",
|
|
2777
|
-
"name": "since"
|
|
2778
|
-
}
|
|
2779
|
-
],
|
|
2780
|
-
"docs": "Configure the CLI to use a local server for testing or self-hosted update server.",
|
|
2781
|
-
"complexTypes": [],
|
|
2782
|
-
"type": "boolean | undefined"
|
|
2922
|
+
"name": "DOWNLOADING",
|
|
2923
|
+
"value": "2",
|
|
2924
|
+
"tags": [],
|
|
2925
|
+
"docs": "Download is in progress.\nCheck `bytesDownloaded` and `totalBytesToDownload` for progress."
|
|
2783
2926
|
},
|
|
2784
2927
|
{
|
|
2785
|
-
"name": "
|
|
2786
|
-
"
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
"name": "default"
|
|
2790
|
-
},
|
|
2791
|
-
{
|
|
2792
|
-
"text": "4.17.48",
|
|
2793
|
-
"name": "since"
|
|
2794
|
-
}
|
|
2795
|
-
],
|
|
2796
|
-
"docs": "Configure the CLI to use a local server for testing or self-hosted update server.",
|
|
2797
|
-
"complexTypes": [],
|
|
2798
|
-
"type": "string | undefined"
|
|
2928
|
+
"name": "INSTALLING",
|
|
2929
|
+
"value": "3",
|
|
2930
|
+
"tags": [],
|
|
2931
|
+
"docs": "The update is being installed."
|
|
2799
2932
|
},
|
|
2800
2933
|
{
|
|
2801
|
-
"name": "
|
|
2802
|
-
"
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
"name": "default"
|
|
2806
|
-
},
|
|
2807
|
-
{
|
|
2808
|
-
"text": "4.17.48",
|
|
2809
|
-
"name": "since"
|
|
2810
|
-
}
|
|
2811
|
-
],
|
|
2812
|
-
"docs": "Configure the CLI to use a local server for testing or self-hosted update server.",
|
|
2813
|
-
"complexTypes": [],
|
|
2814
|
-
"type": "string | undefined"
|
|
2934
|
+
"name": "INSTALLED",
|
|
2935
|
+
"value": "4",
|
|
2936
|
+
"tags": [],
|
|
2937
|
+
"docs": "The update has been installed.\nThe app needs to be restarted to use the new version."
|
|
2815
2938
|
},
|
|
2816
2939
|
{
|
|
2817
|
-
"name": "
|
|
2818
|
-
"
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
"name": "default"
|
|
2822
|
-
},
|
|
2823
|
-
{
|
|
2824
|
-
"text": "4.17.48",
|
|
2825
|
-
"name": "since"
|
|
2826
|
-
}
|
|
2827
|
-
],
|
|
2828
|
-
"docs": "Configure the CLI to use a local server for testing or self-hosted update server.",
|
|
2829
|
-
"complexTypes": [],
|
|
2830
|
-
"type": "string | undefined"
|
|
2940
|
+
"name": "FAILED",
|
|
2941
|
+
"value": "5",
|
|
2942
|
+
"tags": [],
|
|
2943
|
+
"docs": "The update failed to download or install."
|
|
2831
2944
|
},
|
|
2832
2945
|
{
|
|
2833
|
-
"name": "
|
|
2834
|
-
"
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
"name": "default"
|
|
2838
|
-
},
|
|
2839
|
-
{
|
|
2840
|
-
"text": "4.17.48",
|
|
2841
|
-
"name": "since"
|
|
2842
|
-
}
|
|
2843
|
-
],
|
|
2844
|
-
"docs": "Configure the CLI to use a local server for testing.",
|
|
2845
|
-
"complexTypes": [],
|
|
2846
|
-
"type": "string | undefined"
|
|
2946
|
+
"name": "CANCELED",
|
|
2947
|
+
"value": "6",
|
|
2948
|
+
"tags": [],
|
|
2949
|
+
"docs": "The update was canceled by the user."
|
|
2847
2950
|
},
|
|
2848
2951
|
{
|
|
2849
|
-
"name": "
|
|
2850
|
-
"
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
"
|
|
2862
|
-
"
|
|
2952
|
+
"name": "DOWNLOADED",
|
|
2953
|
+
"value": "11",
|
|
2954
|
+
"tags": [],
|
|
2955
|
+
"docs": "The update has been downloaded and is ready to install.\nCall {@link CapacitorUpdaterPlugin.completeFlexibleUpdate} to install."
|
|
2956
|
+
}
|
|
2957
|
+
]
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
"name": "AppUpdateAvailability",
|
|
2961
|
+
"slug": "appupdateavailability",
|
|
2962
|
+
"members": [
|
|
2963
|
+
{
|
|
2964
|
+
"name": "UNKNOWN",
|
|
2965
|
+
"value": "0",
|
|
2966
|
+
"tags": [],
|
|
2967
|
+
"docs": "Update availability is unknown.\nThis typically means the check hasn't completed or failed."
|
|
2863
2968
|
},
|
|
2864
2969
|
{
|
|
2865
|
-
"name": "
|
|
2866
|
-
"
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
"name": "default"
|
|
2870
|
-
},
|
|
2871
|
-
{
|
|
2872
|
-
"text": "6.3.3",
|
|
2873
|
-
"name": "since"
|
|
2874
|
-
}
|
|
2875
|
-
],
|
|
2876
|
-
"docs": "Configure the CLI to use a local file api for testing.",
|
|
2877
|
-
"complexTypes": [],
|
|
2878
|
-
"type": "string | undefined"
|
|
2970
|
+
"name": "UPDATE_NOT_AVAILABLE",
|
|
2971
|
+
"value": "1",
|
|
2972
|
+
"tags": [],
|
|
2973
|
+
"docs": "No update is available.\nThe installed version is the latest."
|
|
2879
2974
|
},
|
|
2880
2975
|
{
|
|
2881
|
-
"name": "
|
|
2882
|
-
"
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
"name": "default"
|
|
2886
|
-
},
|
|
2887
|
-
{
|
|
2888
|
-
"text": "5.4.0",
|
|
2889
|
-
"name": "since"
|
|
2890
|
-
}
|
|
2891
|
-
],
|
|
2892
|
-
"docs": "Allow the plugin to modify the updateUrl, statsUrl and channelUrl dynamically from the JavaScript side.",
|
|
2893
|
-
"complexTypes": [],
|
|
2894
|
-
"type": "boolean | undefined"
|
|
2976
|
+
"name": "UPDATE_AVAILABLE",
|
|
2977
|
+
"value": "2",
|
|
2978
|
+
"tags": [],
|
|
2979
|
+
"docs": "An update is available for download."
|
|
2895
2980
|
},
|
|
2896
2981
|
{
|
|
2897
|
-
"name": "
|
|
2898
|
-
"
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
"
|
|
2910
|
-
"
|
|
2982
|
+
"name": "UPDATE_IN_PROGRESS",
|
|
2983
|
+
"value": "3",
|
|
2984
|
+
"tags": [],
|
|
2985
|
+
"docs": "An update is currently being downloaded or installed."
|
|
2986
|
+
}
|
|
2987
|
+
]
|
|
2988
|
+
},
|
|
2989
|
+
{
|
|
2990
|
+
"name": "AppUpdateResultCode",
|
|
2991
|
+
"slug": "appupdateresultcode",
|
|
2992
|
+
"members": [
|
|
2993
|
+
{
|
|
2994
|
+
"name": "OK",
|
|
2995
|
+
"value": "0",
|
|
2996
|
+
"tags": [],
|
|
2997
|
+
"docs": "The update completed successfully."
|
|
2911
2998
|
},
|
|
2912
2999
|
{
|
|
2913
|
-
"name": "
|
|
2914
|
-
"
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
"name": "default"
|
|
2918
|
-
},
|
|
2919
|
-
{
|
|
2920
|
-
"text": "7.20.0",
|
|
2921
|
-
"name": "since"
|
|
2922
|
-
}
|
|
2923
|
-
],
|
|
2924
|
-
"docs": "Allow marking bundles as errored from JavaScript while using manual update flows.\nWhen enabled, {@link CapacitorUpdaterPlugin.setBundleError} can change a bundle status to `error`.",
|
|
2925
|
-
"complexTypes": [],
|
|
2926
|
-
"type": "boolean | undefined"
|
|
3000
|
+
"name": "CANCELED",
|
|
3001
|
+
"value": "1",
|
|
3002
|
+
"tags": [],
|
|
3003
|
+
"docs": "The user canceled the update."
|
|
2927
3004
|
},
|
|
2928
3005
|
{
|
|
2929
|
-
"name": "
|
|
2930
|
-
"
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
"name": "default"
|
|
2934
|
-
},
|
|
2935
|
-
{
|
|
2936
|
-
"text": "7.17.3",
|
|
2937
|
-
"name": "since"
|
|
2938
|
-
}
|
|
2939
|
-
],
|
|
2940
|
-
"docs": "Persist the customId set through {@link CapacitorUpdaterPlugin.setCustomId} across app restarts.\n\nOnly available for Android and iOS.",
|
|
2941
|
-
"complexTypes": [],
|
|
2942
|
-
"type": "boolean | undefined"
|
|
3006
|
+
"name": "FAILED",
|
|
3007
|
+
"value": "2",
|
|
3008
|
+
"tags": [],
|
|
3009
|
+
"docs": "The update failed."
|
|
2943
3010
|
},
|
|
2944
3011
|
{
|
|
2945
|
-
"name": "
|
|
2946
|
-
"
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
"name": "default"
|
|
2950
|
-
},
|
|
2951
|
-
{
|
|
2952
|
-
"text": "7.20.0",
|
|
2953
|
-
"name": "since"
|
|
2954
|
-
}
|
|
2955
|
-
],
|
|
2956
|
-
"docs": "Persist the updateUrl, statsUrl and channelUrl set through {@link CapacitorUpdaterPlugin.setUpdateUrl},\n{@link CapacitorUpdaterPlugin.setStatsUrl} and {@link CapacitorUpdaterPlugin.setChannelUrl} across app restarts.\n\nOnly available for Android and iOS.",
|
|
2957
|
-
"complexTypes": [],
|
|
2958
|
-
"type": "boolean | undefined"
|
|
3012
|
+
"name": "NOT_AVAILABLE",
|
|
3013
|
+
"value": "3",
|
|
3014
|
+
"tags": [],
|
|
3015
|
+
"docs": "No update is available."
|
|
2959
3016
|
},
|
|
2960
3017
|
{
|
|
2961
|
-
"name": "
|
|
2962
|
-
"
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
"name": "default"
|
|
2966
|
-
},
|
|
2967
|
-
{
|
|
2968
|
-
"text": "7.34.0",
|
|
2969
|
-
"name": "since"
|
|
2970
|
-
}
|
|
2971
|
-
],
|
|
2972
|
-
"docs": "Allow or disallow the {@link CapacitorUpdaterPlugin.setChannel} method to modify the defaultChannel.\nWhen set to `false`, calling `setChannel()` will return an error with code `disabled_by_config`.",
|
|
2973
|
-
"complexTypes": [],
|
|
2974
|
-
"type": "boolean | undefined"
|
|
3018
|
+
"name": "NOT_ALLOWED",
|
|
3019
|
+
"value": "4",
|
|
3020
|
+
"tags": [],
|
|
3021
|
+
"docs": "The requested update type is not allowed.\nFor example, trying to perform an immediate update when only flexible is allowed."
|
|
2975
3022
|
},
|
|
2976
3023
|
{
|
|
2977
|
-
"name": "
|
|
2978
|
-
"
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
3024
|
+
"name": "INFO_MISSING",
|
|
3025
|
+
"value": "5",
|
|
3026
|
+
"tags": [],
|
|
3027
|
+
"docs": "Required information is missing.\nThis can happen if {@link CapacitorUpdaterPlugin.getAppUpdateInfo} wasn't called first."
|
|
3028
|
+
}
|
|
3029
|
+
]
|
|
3030
|
+
}
|
|
3031
|
+
],
|
|
3032
|
+
"typeAliases": [
|
|
3033
|
+
{
|
|
3034
|
+
"name": "BundleStatus",
|
|
3035
|
+
"slug": "bundlestatus",
|
|
3036
|
+
"docs": "pending: The bundle is pending to be **SET** as the next bundle.\ndownloading: The bundle is being downloaded.\nsuccess: The bundle has been downloaded and is ready to be **SET** as the next bundle.\nerror: The bundle has failed to download.",
|
|
3037
|
+
"types": [
|
|
3038
|
+
{
|
|
3039
|
+
"text": "'success'",
|
|
3040
|
+
"complexTypes": []
|
|
2991
3041
|
},
|
|
2992
3042
|
{
|
|
2993
|
-
"
|
|
2994
|
-
"
|
|
2995
|
-
{
|
|
2996
|
-
"text": "undefined",
|
|
2997
|
-
"name": "default"
|
|
2998
|
-
},
|
|
2999
|
-
{
|
|
3000
|
-
"text": "6.0.0",
|
|
3001
|
-
"name": "since"
|
|
3002
|
-
}
|
|
3003
|
-
],
|
|
3004
|
-
"docs": "Configure the app id for the app in the config.",
|
|
3005
|
-
"complexTypes": [],
|
|
3006
|
-
"type": "string | undefined"
|
|
3043
|
+
"text": "'error'",
|
|
3044
|
+
"complexTypes": []
|
|
3007
3045
|
},
|
|
3008
3046
|
{
|
|
3009
|
-
"
|
|
3010
|
-
"
|
|
3011
|
-
{
|
|
3012
|
-
"text": "false",
|
|
3013
|
-
"name": "default"
|
|
3014
|
-
},
|
|
3015
|
-
{
|
|
3016
|
-
"text": "6.8.0",
|
|
3017
|
-
"name": "since"
|
|
3018
|
-
}
|
|
3019
|
-
],
|
|
3020
|
-
"docs": "Configure the plugin to keep the URL path after a reload.\nWARNING: When a reload is triggered, 'window.history' will be cleared.",
|
|
3021
|
-
"complexTypes": [],
|
|
3022
|
-
"type": "boolean | undefined"
|
|
3047
|
+
"text": "'pending'",
|
|
3048
|
+
"complexTypes": []
|
|
3023
3049
|
},
|
|
3024
3050
|
{
|
|
3025
|
-
"
|
|
3026
|
-
"
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
"
|
|
3037
|
-
"complexTypes": []
|
|
3038
|
-
"type": "boolean | undefined"
|
|
3051
|
+
"text": "'downloading'",
|
|
3052
|
+
"complexTypes": []
|
|
3053
|
+
}
|
|
3054
|
+
]
|
|
3055
|
+
},
|
|
3056
|
+
{
|
|
3057
|
+
"name": "DelayUntilNext",
|
|
3058
|
+
"slug": "delayuntilnext",
|
|
3059
|
+
"docs": "",
|
|
3060
|
+
"types": [
|
|
3061
|
+
{
|
|
3062
|
+
"text": "'background'",
|
|
3063
|
+
"complexTypes": []
|
|
3039
3064
|
},
|
|
3040
3065
|
{
|
|
3041
|
-
"
|
|
3042
|
-
"
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
],
|
|
3052
|
-
"docs": "Enable shake gesture to show update menu for debugging/testing purposes",
|
|
3053
|
-
"complexTypes": [],
|
|
3054
|
-
"type": "boolean | undefined"
|
|
3066
|
+
"text": "'kill'",
|
|
3067
|
+
"complexTypes": []
|
|
3068
|
+
},
|
|
3069
|
+
{
|
|
3070
|
+
"text": "'nativeVersion'",
|
|
3071
|
+
"complexTypes": []
|
|
3072
|
+
},
|
|
3073
|
+
{
|
|
3074
|
+
"text": "'date'",
|
|
3075
|
+
"complexTypes": []
|
|
3055
3076
|
}
|
|
3056
|
-
]
|
|
3057
|
-
|
|
3077
|
+
]
|
|
3078
|
+
},
|
|
3079
|
+
{
|
|
3080
|
+
"name": "BreakingAvailableEvent",
|
|
3081
|
+
"slug": "breakingavailableevent",
|
|
3082
|
+
"docs": "Payload emitted by {@link CapacitorUpdaterPlugin.addListener} with `breakingAvailable`.",
|
|
3083
|
+
"types": [
|
|
3084
|
+
{
|
|
3085
|
+
"text": "MajorAvailableEvent",
|
|
3086
|
+
"complexTypes": [
|
|
3087
|
+
"MajorAvailableEvent"
|
|
3088
|
+
]
|
|
3089
|
+
}
|
|
3090
|
+
]
|
|
3058
3091
|
}
|
|
3059
|
-
]
|
|
3092
|
+
],
|
|
3093
|
+
"pluginConfigs": []
|
|
3060
3094
|
}
|