@capgo/capacitor-updater 8.3.0 → 8.4.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/README.md +334 -2
- package/android/build.gradle +3 -0
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +348 -22
- package/dist/docs.json +607 -1
- package/dist/esm/definitions.d.ts +426 -0
- 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/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 +134 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +134 -2
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +212 -2
- package/package.json +3 -3
package/dist/plugin.cjs.js
CHANGED
|
@@ -226,12 +226,12 @@ if (isBrowser) {
|
|
|
226
226
|
originalPushState = history.pushState;
|
|
227
227
|
originalReplaceState = history.replaceState;
|
|
228
228
|
history.pushState = function pushStatePatched(state, title, url) {
|
|
229
|
-
const result = originalPushState.call(history, state, title, url);
|
|
229
|
+
const result = originalPushState === null || originalPushState === void 0 ? void 0 : originalPushState.call(history, state, title, url);
|
|
230
230
|
record(url, false);
|
|
231
231
|
return result;
|
|
232
232
|
};
|
|
233
233
|
history.replaceState = function replaceStatePatched(state, title, url) {
|
|
234
|
-
const result = originalReplaceState.call(history, state, title, url);
|
|
234
|
+
const result = originalReplaceState === null || originalReplaceState === void 0 ? void 0 : originalReplaceState.call(history, state, title, url);
|
|
235
235
|
record(url, true);
|
|
236
236
|
return result;
|
|
237
237
|
};
|
|
@@ -284,6 +284,115 @@ if (isBrowser) {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
+
/*
|
|
288
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
289
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
290
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
291
|
+
*/
|
|
292
|
+
/**
|
|
293
|
+
* Update availability status.
|
|
294
|
+
*
|
|
295
|
+
* @since 8.0.0
|
|
296
|
+
*/
|
|
297
|
+
exports.AppUpdateAvailability = void 0;
|
|
298
|
+
(function (AppUpdateAvailability) {
|
|
299
|
+
/**
|
|
300
|
+
* Update availability is unknown.
|
|
301
|
+
* This typically means the check hasn't completed or failed.
|
|
302
|
+
*/
|
|
303
|
+
AppUpdateAvailability[AppUpdateAvailability["UNKNOWN"] = 0] = "UNKNOWN";
|
|
304
|
+
/**
|
|
305
|
+
* No update is available.
|
|
306
|
+
* The installed version is the latest.
|
|
307
|
+
*/
|
|
308
|
+
AppUpdateAvailability[AppUpdateAvailability["UPDATE_NOT_AVAILABLE"] = 1] = "UPDATE_NOT_AVAILABLE";
|
|
309
|
+
/**
|
|
310
|
+
* An update is available for download.
|
|
311
|
+
*/
|
|
312
|
+
AppUpdateAvailability[AppUpdateAvailability["UPDATE_AVAILABLE"] = 2] = "UPDATE_AVAILABLE";
|
|
313
|
+
/**
|
|
314
|
+
* An update is currently being downloaded or installed.
|
|
315
|
+
*/
|
|
316
|
+
AppUpdateAvailability[AppUpdateAvailability["UPDATE_IN_PROGRESS"] = 3] = "UPDATE_IN_PROGRESS";
|
|
317
|
+
})(exports.AppUpdateAvailability || (exports.AppUpdateAvailability = {}));
|
|
318
|
+
/**
|
|
319
|
+
* Installation status for flexible updates (Android only).
|
|
320
|
+
*
|
|
321
|
+
* @since 8.0.0
|
|
322
|
+
*/
|
|
323
|
+
exports.FlexibleUpdateInstallStatus = void 0;
|
|
324
|
+
(function (FlexibleUpdateInstallStatus) {
|
|
325
|
+
/**
|
|
326
|
+
* Unknown install status.
|
|
327
|
+
*/
|
|
328
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
329
|
+
/**
|
|
330
|
+
* Download is pending and will start soon.
|
|
331
|
+
*/
|
|
332
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["PENDING"] = 1] = "PENDING";
|
|
333
|
+
/**
|
|
334
|
+
* Download is in progress.
|
|
335
|
+
* Check `bytesDownloaded` and `totalBytesToDownload` for progress.
|
|
336
|
+
*/
|
|
337
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["DOWNLOADING"] = 2] = "DOWNLOADING";
|
|
338
|
+
/**
|
|
339
|
+
* The update is being installed.
|
|
340
|
+
*/
|
|
341
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["INSTALLING"] = 3] = "INSTALLING";
|
|
342
|
+
/**
|
|
343
|
+
* The update has been installed.
|
|
344
|
+
* The app needs to be restarted to use the new version.
|
|
345
|
+
*/
|
|
346
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["INSTALLED"] = 4] = "INSTALLED";
|
|
347
|
+
/**
|
|
348
|
+
* The update failed to download or install.
|
|
349
|
+
*/
|
|
350
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["FAILED"] = 5] = "FAILED";
|
|
351
|
+
/**
|
|
352
|
+
* The update was canceled by the user.
|
|
353
|
+
*/
|
|
354
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["CANCELED"] = 6] = "CANCELED";
|
|
355
|
+
/**
|
|
356
|
+
* The update has been downloaded and is ready to install.
|
|
357
|
+
* Call {@link CapacitorUpdaterPlugin.completeFlexibleUpdate} to install.
|
|
358
|
+
*/
|
|
359
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["DOWNLOADED"] = 11] = "DOWNLOADED";
|
|
360
|
+
})(exports.FlexibleUpdateInstallStatus || (exports.FlexibleUpdateInstallStatus = {}));
|
|
361
|
+
/**
|
|
362
|
+
* Result codes for app update operations.
|
|
363
|
+
*
|
|
364
|
+
* @since 8.0.0
|
|
365
|
+
*/
|
|
366
|
+
exports.AppUpdateResultCode = void 0;
|
|
367
|
+
(function (AppUpdateResultCode) {
|
|
368
|
+
/**
|
|
369
|
+
* The update completed successfully.
|
|
370
|
+
*/
|
|
371
|
+
AppUpdateResultCode[AppUpdateResultCode["OK"] = 0] = "OK";
|
|
372
|
+
/**
|
|
373
|
+
* The user canceled the update.
|
|
374
|
+
*/
|
|
375
|
+
AppUpdateResultCode[AppUpdateResultCode["CANCELED"] = 1] = "CANCELED";
|
|
376
|
+
/**
|
|
377
|
+
* The update failed.
|
|
378
|
+
*/
|
|
379
|
+
AppUpdateResultCode[AppUpdateResultCode["FAILED"] = 2] = "FAILED";
|
|
380
|
+
/**
|
|
381
|
+
* No update is available.
|
|
382
|
+
*/
|
|
383
|
+
AppUpdateResultCode[AppUpdateResultCode["NOT_AVAILABLE"] = 3] = "NOT_AVAILABLE";
|
|
384
|
+
/**
|
|
385
|
+
* The requested update type is not allowed.
|
|
386
|
+
* For example, trying to perform an immediate update when only flexible is allowed.
|
|
387
|
+
*/
|
|
388
|
+
AppUpdateResultCode[AppUpdateResultCode["NOT_ALLOWED"] = 4] = "NOT_ALLOWED";
|
|
389
|
+
/**
|
|
390
|
+
* Required information is missing.
|
|
391
|
+
* This can happen if {@link CapacitorUpdaterPlugin.getAppUpdateInfo} wasn't called first.
|
|
392
|
+
*/
|
|
393
|
+
AppUpdateResultCode[AppUpdateResultCode["INFO_MISSING"] = 5] = "INFO_MISSING";
|
|
394
|
+
})(exports.AppUpdateResultCode || (exports.AppUpdateResultCode = {}));
|
|
395
|
+
|
|
287
396
|
/*
|
|
288
397
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
289
398
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
@@ -448,6 +557,29 @@ class CapacitorUpdaterWeb extends core.WebPlugin {
|
|
|
448
557
|
console.warn('Cannot setAppId in web', options);
|
|
449
558
|
return;
|
|
450
559
|
}
|
|
560
|
+
// ============================================================================
|
|
561
|
+
// App Store / Play Store Update Methods (Web stubs)
|
|
562
|
+
// ============================================================================
|
|
563
|
+
async getAppUpdateInfo(_options) {
|
|
564
|
+
console.warn('getAppUpdateInfo is not available on web platform');
|
|
565
|
+
return {
|
|
566
|
+
currentVersionName: '0.0.0',
|
|
567
|
+
currentVersionCode: '0',
|
|
568
|
+
updateAvailability: exports.AppUpdateAvailability.UNKNOWN,
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
async openAppStore(_options) {
|
|
572
|
+
throw this.unimplemented('openAppStore is not available on web platform');
|
|
573
|
+
}
|
|
574
|
+
async performImmediateUpdate() {
|
|
575
|
+
throw this.unimplemented('performImmediateUpdate is only available on Android');
|
|
576
|
+
}
|
|
577
|
+
async startFlexibleUpdate() {
|
|
578
|
+
throw this.unimplemented('startFlexibleUpdate is only available on Android');
|
|
579
|
+
}
|
|
580
|
+
async completeFlexibleUpdate() {
|
|
581
|
+
throw this.unimplemented('completeFlexibleUpdate is only available on Android');
|
|
582
|
+
}
|
|
451
583
|
}
|
|
452
584
|
|
|
453
585
|
var web = /*#__PURE__*/Object.freeze({
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/history.js","esm/index.js","esm/web.js"],"sourcesContent":["/*\n * Maintains navigation history across Capgo-controlled reloads when keepUrlPathAfterReload is enabled.\n */\nconst KEEP_FLAG_KEY = '__capgo_keep_url_path_after_reload';\nconst HISTORY_STORAGE_KEY = '__capgo_history_stack__';\nconst MAX_STACK_ENTRIES = 100;\nconst isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof history !== 'undefined';\nif (isBrowser) {\n const win = window;\n if (!win.__capgoHistoryPatched) {\n win.__capgoHistoryPatched = true;\n const isFeatureConfigured = () => {\n try {\n if (win.__capgoKeepUrlPathAfterReload) {\n return true;\n }\n }\n catch (err) {\n // ignore access issues\n }\n try {\n return window.localStorage.getItem(KEEP_FLAG_KEY) === '1';\n }\n catch (err) {\n return false;\n }\n };\n const readStored = () => {\n try {\n const raw = window.sessionStorage.getItem(HISTORY_STORAGE_KEY);\n if (!raw) {\n return { stack: [], index: -1 };\n }\n const parsed = JSON.parse(raw);\n if (!parsed || !Array.isArray(parsed.stack) || typeof parsed.index !== 'number') {\n return { stack: [], index: -1 };\n }\n return parsed;\n }\n catch (err) {\n return { stack: [], index: -1 };\n }\n };\n const writeStored = (stack, index) => {\n try {\n window.sessionStorage.setItem(HISTORY_STORAGE_KEY, JSON.stringify({ stack, index }));\n }\n catch (err) {\n // Storage might be unavailable; fail silently.\n }\n };\n const clearStored = () => {\n try {\n window.sessionStorage.removeItem(HISTORY_STORAGE_KEY);\n }\n catch (err) {\n // ignore\n }\n };\n const normalize = (url) => {\n try {\n const base = url !== null && url !== void 0 ? url : window.location.href;\n const parsed = new URL(base instanceof URL ? base.toString() : base, window.location.href);\n return `${parsed.pathname}${parsed.search}${parsed.hash}`;\n }\n catch (err) {\n return null;\n }\n };\n const trimStack = (stack, index) => {\n if (stack.length <= MAX_STACK_ENTRIES) {\n return { stack, index };\n }\n const start = stack.length - MAX_STACK_ENTRIES;\n const trimmed = stack.slice(start);\n const adjustedIndex = Math.max(0, index - start);\n return { stack: trimmed, index: adjustedIndex };\n };\n const runWhenReady = (fn) => {\n if (document.readyState === 'complete' || document.readyState === 'interactive') {\n fn();\n }\n else {\n window.addEventListener('DOMContentLoaded', fn, { once: true });\n }\n };\n let featureActive = false;\n let isRestoring = false;\n let restoreScheduled = false;\n const ensureCurrentTracked = () => {\n if (!featureActive) {\n return;\n }\n const stored = readStored();\n const current = normalize();\n if (!current) {\n return;\n }\n if (stored.stack.length === 0) {\n stored.stack.push(current);\n stored.index = 0;\n writeStored(stored.stack, stored.index);\n return;\n }\n if (stored.index < 0 || stored.index >= stored.stack.length) {\n stored.index = stored.stack.length - 1;\n }\n if (stored.stack[stored.index] !== current) {\n stored.stack[stored.index] = current;\n writeStored(stored.stack, stored.index);\n }\n };\n const record = (url, replace) => {\n if (!featureActive || isRestoring) {\n return;\n }\n const normalized = normalize(url);\n if (!normalized) {\n return;\n }\n let { stack, index } = readStored();\n if (stack.length === 0) {\n stack.push(normalized);\n index = stack.length - 1;\n }\n else if (replace) {\n if (index < 0 || index >= stack.length) {\n index = stack.length - 1;\n }\n stack[index] = normalized;\n }\n else {\n if (index >= stack.length - 1) {\n stack.push(normalized);\n index = stack.length - 1;\n }\n else {\n stack = stack.slice(0, index + 1);\n stack.push(normalized);\n index = stack.length - 1;\n }\n }\n ({ stack, index } = trimStack(stack, index));\n writeStored(stack, index);\n };\n const restoreHistory = () => {\n if (!featureActive || isRestoring) {\n return;\n }\n const stored = readStored();\n if (stored.stack.length === 0) {\n ensureCurrentTracked();\n return;\n }\n const targetIndex = stored.index >= 0 && stored.index < stored.stack.length ? stored.index : stored.stack.length - 1;\n const normalizedCurrent = normalize();\n if (stored.stack.length === 1 && normalizedCurrent === stored.stack[0]) {\n return;\n }\n const firstEntry = stored.stack[0];\n if (!firstEntry) {\n return;\n }\n isRestoring = true;\n try {\n history.replaceState(history.state, document.title, firstEntry);\n for (let i = 1; i < stored.stack.length; i += 1) {\n history.pushState(history.state, document.title, stored.stack[i]);\n }\n }\n catch (err) {\n isRestoring = false;\n return;\n }\n isRestoring = false;\n const currentIndex = stored.stack.length - 1;\n const offset = targetIndex - currentIndex;\n if (offset !== 0) {\n history.go(offset);\n }\n else {\n history.replaceState(history.state, document.title, stored.stack[targetIndex]);\n window.dispatchEvent(new PopStateEvent('popstate'));\n }\n };\n const scheduleRestore = () => {\n if (!featureActive || restoreScheduled) {\n return;\n }\n restoreScheduled = true;\n runWhenReady(() => {\n restoreScheduled = false;\n restoreHistory();\n });\n };\n let originalPushState = null;\n let originalReplaceState = null;\n const popstateHandler = () => {\n if (!featureActive || isRestoring) {\n return;\n }\n const normalized = normalize();\n if (!normalized) {\n return;\n }\n const stored = readStored();\n const idx = stored.stack.lastIndexOf(normalized);\n if (idx >= 0) {\n stored.index = idx;\n }\n else {\n stored.stack.push(normalized);\n stored.index = stored.stack.length - 1;\n }\n const trimmed = trimStack(stored.stack, stored.index);\n writeStored(trimmed.stack, trimmed.index);\n };\n const patchHistory = () => {\n if (originalPushState && originalReplaceState) {\n return;\n }\n originalPushState = history.pushState;\n originalReplaceState = history.replaceState;\n history.pushState = function pushStatePatched(state, title, url) {\n const result = originalPushState.call(history, state, title, url);\n record(url, false);\n return result;\n };\n history.replaceState = function replaceStatePatched(state, title, url) {\n const result = originalReplaceState.call(history, state, title, url);\n record(url, true);\n return result;\n };\n window.addEventListener('popstate', popstateHandler);\n };\n const unpatchHistory = () => {\n if (originalPushState) {\n history.pushState = originalPushState;\n originalPushState = null;\n }\n if (originalReplaceState) {\n history.replaceState = originalReplaceState;\n originalReplaceState = null;\n }\n window.removeEventListener('popstate', popstateHandler);\n };\n const setFeatureActive = (enabled) => {\n if (featureActive === enabled) {\n if (featureActive) {\n ensureCurrentTracked();\n scheduleRestore();\n }\n return;\n }\n featureActive = enabled;\n if (featureActive) {\n patchHistory();\n ensureCurrentTracked();\n scheduleRestore();\n }\n else {\n unpatchHistory();\n clearStored();\n }\n };\n window.addEventListener('CapacitorUpdaterKeepUrlPathAfterReload', (event) => {\n var _a;\n const evt = event;\n const enabled = (_a = evt === null || evt === void 0 ? void 0 : evt.detail) === null || _a === void 0 ? void 0 : _a.enabled;\n if (typeof enabled === 'boolean') {\n win.__capgoKeepUrlPathAfterReload = enabled;\n setFeatureActive(enabled);\n }\n else {\n win.__capgoKeepUrlPathAfterReload = true;\n setFeatureActive(true);\n }\n });\n setFeatureActive(isFeatureConfigured());\n }\n}\nexport {};\n//# sourceMappingURL=history.js.map","/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n */\nimport { registerPlugin } from '@capacitor/core';\nimport './history';\nconst CapacitorUpdater = registerPlugin('CapacitorUpdater', {\n web: () => import('./web').then((m) => new m.CapacitorUpdaterWeb()),\n});\nexport * from './definitions';\nexport { CapacitorUpdater };\n//# sourceMappingURL=index.js.map","/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n */\nimport { WebPlugin } from '@capacitor/core';\nconst BUNDLE_BUILTIN = {\n status: 'success',\n version: '',\n downloaded: '1970-01-01T00:00:00.000Z',\n id: 'builtin',\n checksum: '',\n};\nexport class CapacitorUpdaterWeb extends WebPlugin {\n async setStatsUrl(options) {\n console.warn('Cannot setStatsUrl in web', options);\n return;\n }\n async setUpdateUrl(options) {\n console.warn('Cannot setUpdateUrl in web', options);\n return;\n }\n async setChannelUrl(options) {\n console.warn('Cannot setChannelUrl in web', options);\n return;\n }\n async download(options) {\n console.warn('Cannot download version in web', options);\n return BUNDLE_BUILTIN;\n }\n async next(options) {\n console.warn('Cannot set next version in web', options);\n return BUNDLE_BUILTIN;\n }\n async isAutoUpdateEnabled() {\n console.warn('Cannot get isAutoUpdateEnabled in web');\n return { enabled: false };\n }\n async set(options) {\n console.warn('Cannot set active bundle in web', options);\n return;\n }\n async getDeviceId() {\n console.warn('Cannot get ID in web');\n return { deviceId: 'default' };\n }\n async getBuiltinVersion() {\n console.warn('Cannot get version in web');\n return { version: 'default' };\n }\n async getPluginVersion() {\n console.warn('Cannot get plugin version in web');\n return { version: 'default' };\n }\n async delete(options) {\n console.warn('Cannot delete bundle in web', options);\n }\n async setBundleError(options) {\n console.warn('Cannot setBundleError in web', options);\n return BUNDLE_BUILTIN;\n }\n async list() {\n console.warn('Cannot list bundles in web');\n return { bundles: [] };\n }\n async reset(options) {\n console.warn('Cannot reset version in web', options);\n }\n async current() {\n console.warn('Cannot get current bundle in web');\n return { bundle: BUNDLE_BUILTIN, native: '0.0.0' };\n }\n async reload() {\n console.warn('Cannot reload current bundle in web');\n return;\n }\n async getLatest() {\n console.warn('Cannot getLatest current bundle in web');\n return {\n version: '0.0.0',\n message: 'Cannot getLatest current bundle in web',\n };\n }\n async setChannel(options) {\n console.warn('Cannot setChannel in web', options);\n return {\n status: 'error',\n error: 'Cannot setChannel in web',\n };\n }\n async unsetChannel(options) {\n console.warn('Cannot unsetChannel in web', options);\n return;\n }\n async setCustomId(options) {\n console.warn('Cannot setCustomId in web', options);\n return;\n }\n async getChannel() {\n console.warn('Cannot getChannel in web');\n return {\n status: 'error',\n error: 'Cannot getChannel in web',\n };\n }\n async listChannels() {\n console.warn('Cannot listChannels in web');\n throw {\n message: 'Cannot listChannels in web',\n error: 'platform_not_supported',\n };\n }\n async notifyAppReady() {\n return { bundle: BUNDLE_BUILTIN };\n }\n async setMultiDelay(options) {\n console.warn('Cannot setMultiDelay in web', options === null || options === void 0 ? void 0 : options.delayConditions);\n return;\n }\n async setDelay(option) {\n console.warn('Cannot setDelay in web', option);\n return;\n }\n async cancelDelay() {\n console.warn('Cannot cancelDelay in web');\n return;\n }\n async isAutoUpdateAvailable() {\n console.warn('Cannot isAutoUpdateAvailable in web');\n return { available: false };\n }\n async getCurrentBundle() {\n console.warn('Cannot get current bundle in web');\n return BUNDLE_BUILTIN;\n }\n async getNextBundle() {\n return Promise.resolve(null);\n }\n async getFailedUpdate() {\n console.warn('Cannot getFailedUpdate in web');\n return null;\n }\n async setShakeMenu(_options) {\n throw this.unimplemented('Shake menu not available on web platform');\n }\n async isShakeMenuEnabled() {\n return Promise.resolve({ enabled: false });\n }\n async getAppId() {\n console.warn('Cannot getAppId in web');\n return { appId: 'default' };\n }\n async setAppId(options) {\n console.warn('Cannot setAppId in web', options);\n return;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACA,MAAM,aAAa,GAAG,oCAAoC;AAC1D,MAAM,mBAAmB,GAAG,yBAAyB;AACrD,MAAM,iBAAiB,GAAG,GAAG;AAC7B,MAAM,SAAS,GAAG,OAA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,GAAG;AAC/B,QAAQ,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAClD,IAAI;AACJ,IAAI,MAAM,QAAQ,GAAG;AACrB,QAAQ,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC;AAC9C,QAAQ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE;AACnC,IAAI;AACJ,IAAI,MAAM,QAAQ,CAAC,OAAO,EAAE;AAC5B,QAAQ,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,OAAO,CAAC;AACvD,QAAQ;AACR,IAAI;AACJ;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/history.js","esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/*\n * Maintains navigation history across Capgo-controlled reloads when keepUrlPathAfterReload is enabled.\n */\nconst KEEP_FLAG_KEY = '__capgo_keep_url_path_after_reload';\nconst HISTORY_STORAGE_KEY = '__capgo_history_stack__';\nconst MAX_STACK_ENTRIES = 100;\nconst isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof history !== 'undefined';\nif (isBrowser) {\n const win = window;\n if (!win.__capgoHistoryPatched) {\n win.__capgoHistoryPatched = true;\n const isFeatureConfigured = () => {\n try {\n if (win.__capgoKeepUrlPathAfterReload) {\n return true;\n }\n }\n catch (err) {\n // ignore access issues\n }\n try {\n return window.localStorage.getItem(KEEP_FLAG_KEY) === '1';\n }\n catch (err) {\n return false;\n }\n };\n const readStored = () => {\n try {\n const raw = window.sessionStorage.getItem(HISTORY_STORAGE_KEY);\n if (!raw) {\n return { stack: [], index: -1 };\n }\n const parsed = JSON.parse(raw);\n if (!parsed || !Array.isArray(parsed.stack) || typeof parsed.index !== 'number') {\n return { stack: [], index: -1 };\n }\n return parsed;\n }\n catch (err) {\n return { stack: [], index: -1 };\n }\n };\n const writeStored = (stack, index) => {\n try {\n window.sessionStorage.setItem(HISTORY_STORAGE_KEY, JSON.stringify({ stack, index }));\n }\n catch (err) {\n // Storage might be unavailable; fail silently.\n }\n };\n const clearStored = () => {\n try {\n window.sessionStorage.removeItem(HISTORY_STORAGE_KEY);\n }\n catch (err) {\n // ignore\n }\n };\n const normalize = (url) => {\n try {\n const base = url !== null && url !== void 0 ? url : window.location.href;\n const parsed = new URL(base instanceof URL ? base.toString() : base, window.location.href);\n return `${parsed.pathname}${parsed.search}${parsed.hash}`;\n }\n catch (err) {\n return null;\n }\n };\n const trimStack = (stack, index) => {\n if (stack.length <= MAX_STACK_ENTRIES) {\n return { stack, index };\n }\n const start = stack.length - MAX_STACK_ENTRIES;\n const trimmed = stack.slice(start);\n const adjustedIndex = Math.max(0, index - start);\n return { stack: trimmed, index: adjustedIndex };\n };\n const runWhenReady = (fn) => {\n if (document.readyState === 'complete' || document.readyState === 'interactive') {\n fn();\n }\n else {\n window.addEventListener('DOMContentLoaded', fn, { once: true });\n }\n };\n let featureActive = false;\n let isRestoring = false;\n let restoreScheduled = false;\n const ensureCurrentTracked = () => {\n if (!featureActive) {\n return;\n }\n const stored = readStored();\n const current = normalize();\n if (!current) {\n return;\n }\n if (stored.stack.length === 0) {\n stored.stack.push(current);\n stored.index = 0;\n writeStored(stored.stack, stored.index);\n return;\n }\n if (stored.index < 0 || stored.index >= stored.stack.length) {\n stored.index = stored.stack.length - 1;\n }\n if (stored.stack[stored.index] !== current) {\n stored.stack[stored.index] = current;\n writeStored(stored.stack, stored.index);\n }\n };\n const record = (url, replace) => {\n if (!featureActive || isRestoring) {\n return;\n }\n const normalized = normalize(url);\n if (!normalized) {\n return;\n }\n let { stack, index } = readStored();\n if (stack.length === 0) {\n stack.push(normalized);\n index = stack.length - 1;\n }\n else if (replace) {\n if (index < 0 || index >= stack.length) {\n index = stack.length - 1;\n }\n stack[index] = normalized;\n }\n else {\n if (index >= stack.length - 1) {\n stack.push(normalized);\n index = stack.length - 1;\n }\n else {\n stack = stack.slice(0, index + 1);\n stack.push(normalized);\n index = stack.length - 1;\n }\n }\n ({ stack, index } = trimStack(stack, index));\n writeStored(stack, index);\n };\n const restoreHistory = () => {\n if (!featureActive || isRestoring) {\n return;\n }\n const stored = readStored();\n if (stored.stack.length === 0) {\n ensureCurrentTracked();\n return;\n }\n const targetIndex = stored.index >= 0 && stored.index < stored.stack.length ? stored.index : stored.stack.length - 1;\n const normalizedCurrent = normalize();\n if (stored.stack.length === 1 && normalizedCurrent === stored.stack[0]) {\n return;\n }\n const firstEntry = stored.stack[0];\n if (!firstEntry) {\n return;\n }\n isRestoring = true;\n try {\n history.replaceState(history.state, document.title, firstEntry);\n for (let i = 1; i < stored.stack.length; i += 1) {\n history.pushState(history.state, document.title, stored.stack[i]);\n }\n }\n catch (err) {\n isRestoring = false;\n return;\n }\n isRestoring = false;\n const currentIndex = stored.stack.length - 1;\n const offset = targetIndex - currentIndex;\n if (offset !== 0) {\n history.go(offset);\n }\n else {\n history.replaceState(history.state, document.title, stored.stack[targetIndex]);\n window.dispatchEvent(new PopStateEvent('popstate'));\n }\n };\n const scheduleRestore = () => {\n if (!featureActive || restoreScheduled) {\n return;\n }\n restoreScheduled = true;\n runWhenReady(() => {\n restoreScheduled = false;\n restoreHistory();\n });\n };\n let originalPushState = null;\n let originalReplaceState = null;\n const popstateHandler = () => {\n if (!featureActive || isRestoring) {\n return;\n }\n const normalized = normalize();\n if (!normalized) {\n return;\n }\n const stored = readStored();\n const idx = stored.stack.lastIndexOf(normalized);\n if (idx >= 0) {\n stored.index = idx;\n }\n else {\n stored.stack.push(normalized);\n stored.index = stored.stack.length - 1;\n }\n const trimmed = trimStack(stored.stack, stored.index);\n writeStored(trimmed.stack, trimmed.index);\n };\n const patchHistory = () => {\n if (originalPushState && originalReplaceState) {\n return;\n }\n originalPushState = history.pushState;\n originalReplaceState = history.replaceState;\n history.pushState = function pushStatePatched(state, title, url) {\n const result = originalPushState === null || originalPushState === void 0 ? void 0 : originalPushState.call(history, state, title, url);\n record(url, false);\n return result;\n };\n history.replaceState = function replaceStatePatched(state, title, url) {\n const result = originalReplaceState === null || originalReplaceState === void 0 ? void 0 : originalReplaceState.call(history, state, title, url);\n record(url, true);\n return result;\n };\n window.addEventListener('popstate', popstateHandler);\n };\n const unpatchHistory = () => {\n if (originalPushState) {\n history.pushState = originalPushState;\n originalPushState = null;\n }\n if (originalReplaceState) {\n history.replaceState = originalReplaceState;\n originalReplaceState = null;\n }\n window.removeEventListener('popstate', popstateHandler);\n };\n const setFeatureActive = (enabled) => {\n if (featureActive === enabled) {\n if (featureActive) {\n ensureCurrentTracked();\n scheduleRestore();\n }\n return;\n }\n featureActive = enabled;\n if (featureActive) {\n patchHistory();\n ensureCurrentTracked();\n scheduleRestore();\n }\n else {\n unpatchHistory();\n clearStored();\n }\n };\n window.addEventListener('CapacitorUpdaterKeepUrlPathAfterReload', (event) => {\n var _a;\n const evt = event;\n const enabled = (_a = evt === null || evt === void 0 ? void 0 : evt.detail) === null || _a === void 0 ? void 0 : _a.enabled;\n if (typeof enabled === 'boolean') {\n win.__capgoKeepUrlPathAfterReload = enabled;\n setFeatureActive(enabled);\n }\n else {\n win.__capgoKeepUrlPathAfterReload = true;\n setFeatureActive(true);\n }\n });\n setFeatureActive(isFeatureConfigured());\n }\n}\nexport {};\n//# sourceMappingURL=history.js.map","/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n */\n/**\n * Update availability status.\n *\n * @since 8.0.0\n */\nexport var AppUpdateAvailability;\n(function (AppUpdateAvailability) {\n /**\n * Update availability is unknown.\n * This typically means the check hasn't completed or failed.\n */\n AppUpdateAvailability[AppUpdateAvailability[\"UNKNOWN\"] = 0] = \"UNKNOWN\";\n /**\n * No update is available.\n * The installed version is the latest.\n */\n AppUpdateAvailability[AppUpdateAvailability[\"UPDATE_NOT_AVAILABLE\"] = 1] = \"UPDATE_NOT_AVAILABLE\";\n /**\n * An update is available for download.\n */\n AppUpdateAvailability[AppUpdateAvailability[\"UPDATE_AVAILABLE\"] = 2] = \"UPDATE_AVAILABLE\";\n /**\n * An update is currently being downloaded or installed.\n */\n AppUpdateAvailability[AppUpdateAvailability[\"UPDATE_IN_PROGRESS\"] = 3] = \"UPDATE_IN_PROGRESS\";\n})(AppUpdateAvailability || (AppUpdateAvailability = {}));\n/**\n * Installation status for flexible updates (Android only).\n *\n * @since 8.0.0\n */\nexport var FlexibleUpdateInstallStatus;\n(function (FlexibleUpdateInstallStatus) {\n /**\n * Unknown install status.\n */\n FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus[\"UNKNOWN\"] = 0] = \"UNKNOWN\";\n /**\n * Download is pending and will start soon.\n */\n FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus[\"PENDING\"] = 1] = \"PENDING\";\n /**\n * Download is in progress.\n * Check `bytesDownloaded` and `totalBytesToDownload` for progress.\n */\n FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus[\"DOWNLOADING\"] = 2] = \"DOWNLOADING\";\n /**\n * The update is being installed.\n */\n FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus[\"INSTALLING\"] = 3] = \"INSTALLING\";\n /**\n * The update has been installed.\n * The app needs to be restarted to use the new version.\n */\n FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus[\"INSTALLED\"] = 4] = \"INSTALLED\";\n /**\n * The update failed to download or install.\n */\n FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus[\"FAILED\"] = 5] = \"FAILED\";\n /**\n * The update was canceled by the user.\n */\n FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus[\"CANCELED\"] = 6] = \"CANCELED\";\n /**\n * The update has been downloaded and is ready to install.\n * Call {@link CapacitorUpdaterPlugin.completeFlexibleUpdate} to install.\n */\n FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus[\"DOWNLOADED\"] = 11] = \"DOWNLOADED\";\n})(FlexibleUpdateInstallStatus || (FlexibleUpdateInstallStatus = {}));\n/**\n * Result codes for app update operations.\n *\n * @since 8.0.0\n */\nexport var AppUpdateResultCode;\n(function (AppUpdateResultCode) {\n /**\n * The update completed successfully.\n */\n AppUpdateResultCode[AppUpdateResultCode[\"OK\"] = 0] = \"OK\";\n /**\n * The user canceled the update.\n */\n AppUpdateResultCode[AppUpdateResultCode[\"CANCELED\"] = 1] = \"CANCELED\";\n /**\n * The update failed.\n */\n AppUpdateResultCode[AppUpdateResultCode[\"FAILED\"] = 2] = \"FAILED\";\n /**\n * No update is available.\n */\n AppUpdateResultCode[AppUpdateResultCode[\"NOT_AVAILABLE\"] = 3] = \"NOT_AVAILABLE\";\n /**\n * The requested update type is not allowed.\n * For example, trying to perform an immediate update when only flexible is allowed.\n */\n AppUpdateResultCode[AppUpdateResultCode[\"NOT_ALLOWED\"] = 4] = \"NOT_ALLOWED\";\n /**\n * Required information is missing.\n * This can happen if {@link CapacitorUpdaterPlugin.getAppUpdateInfo} wasn't called first.\n */\n AppUpdateResultCode[AppUpdateResultCode[\"INFO_MISSING\"] = 5] = \"INFO_MISSING\";\n})(AppUpdateResultCode || (AppUpdateResultCode = {}));\n//# sourceMappingURL=definitions.js.map","/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n */\nimport { registerPlugin } from '@capacitor/core';\nimport './history';\nconst CapacitorUpdater = registerPlugin('CapacitorUpdater', {\n web: () => import('./web').then((m) => new m.CapacitorUpdaterWeb()),\n});\nexport * from './definitions';\nexport { CapacitorUpdater };\n//# sourceMappingURL=index.js.map","/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n */\nimport { WebPlugin } from '@capacitor/core';\nimport { AppUpdateAvailability } from './definitions';\nconst BUNDLE_BUILTIN = {\n status: 'success',\n version: '',\n downloaded: '1970-01-01T00:00:00.000Z',\n id: 'builtin',\n checksum: '',\n};\nexport class CapacitorUpdaterWeb extends WebPlugin {\n async setStatsUrl(options) {\n console.warn('Cannot setStatsUrl in web', options);\n return;\n }\n async setUpdateUrl(options) {\n console.warn('Cannot setUpdateUrl in web', options);\n return;\n }\n async setChannelUrl(options) {\n console.warn('Cannot setChannelUrl in web', options);\n return;\n }\n async download(options) {\n console.warn('Cannot download version in web', options);\n return BUNDLE_BUILTIN;\n }\n async next(options) {\n console.warn('Cannot set next version in web', options);\n return BUNDLE_BUILTIN;\n }\n async isAutoUpdateEnabled() {\n console.warn('Cannot get isAutoUpdateEnabled in web');\n return { enabled: false };\n }\n async set(options) {\n console.warn('Cannot set active bundle in web', options);\n return;\n }\n async getDeviceId() {\n console.warn('Cannot get ID in web');\n return { deviceId: 'default' };\n }\n async getBuiltinVersion() {\n console.warn('Cannot get version in web');\n return { version: 'default' };\n }\n async getPluginVersion() {\n console.warn('Cannot get plugin version in web');\n return { version: 'default' };\n }\n async delete(options) {\n console.warn('Cannot delete bundle in web', options);\n }\n async setBundleError(options) {\n console.warn('Cannot setBundleError in web', options);\n return BUNDLE_BUILTIN;\n }\n async list() {\n console.warn('Cannot list bundles in web');\n return { bundles: [] };\n }\n async reset(options) {\n console.warn('Cannot reset version in web', options);\n }\n async current() {\n console.warn('Cannot get current bundle in web');\n return { bundle: BUNDLE_BUILTIN, native: '0.0.0' };\n }\n async reload() {\n console.warn('Cannot reload current bundle in web');\n return;\n }\n async getLatest() {\n console.warn('Cannot getLatest current bundle in web');\n return {\n version: '0.0.0',\n message: 'Cannot getLatest current bundle in web',\n };\n }\n async setChannel(options) {\n console.warn('Cannot setChannel in web', options);\n return {\n status: 'error',\n error: 'Cannot setChannel in web',\n };\n }\n async unsetChannel(options) {\n console.warn('Cannot unsetChannel in web', options);\n return;\n }\n async setCustomId(options) {\n console.warn('Cannot setCustomId in web', options);\n return;\n }\n async getChannel() {\n console.warn('Cannot getChannel in web');\n return {\n status: 'error',\n error: 'Cannot getChannel in web',\n };\n }\n async listChannels() {\n console.warn('Cannot listChannels in web');\n throw {\n message: 'Cannot listChannels in web',\n error: 'platform_not_supported',\n };\n }\n async notifyAppReady() {\n return { bundle: BUNDLE_BUILTIN };\n }\n async setMultiDelay(options) {\n console.warn('Cannot setMultiDelay in web', options === null || options === void 0 ? void 0 : options.delayConditions);\n return;\n }\n async setDelay(option) {\n console.warn('Cannot setDelay in web', option);\n return;\n }\n async cancelDelay() {\n console.warn('Cannot cancelDelay in web');\n return;\n }\n async isAutoUpdateAvailable() {\n console.warn('Cannot isAutoUpdateAvailable in web');\n return { available: false };\n }\n async getCurrentBundle() {\n console.warn('Cannot get current bundle in web');\n return BUNDLE_BUILTIN;\n }\n async getNextBundle() {\n return Promise.resolve(null);\n }\n async getFailedUpdate() {\n console.warn('Cannot getFailedUpdate in web');\n return null;\n }\n async setShakeMenu(_options) {\n throw this.unimplemented('Shake menu not available on web platform');\n }\n async isShakeMenuEnabled() {\n return Promise.resolve({ enabled: false });\n }\n async getAppId() {\n console.warn('Cannot getAppId in web');\n return { appId: 'default' };\n }\n async setAppId(options) {\n console.warn('Cannot setAppId in web', options);\n return;\n }\n // ============================================================================\n // App Store / Play Store Update Methods (Web stubs)\n // ============================================================================\n async getAppUpdateInfo(_options) {\n console.warn('getAppUpdateInfo is not available on web platform');\n return {\n currentVersionName: '0.0.0',\n currentVersionCode: '0',\n updateAvailability: AppUpdateAvailability.UNKNOWN,\n };\n }\n async openAppStore(_options) {\n throw this.unimplemented('openAppStore is not available on web platform');\n }\n async performImmediateUpdate() {\n throw this.unimplemented('performImmediateUpdate is only available on Android');\n }\n async startFlexibleUpdate() {\n throw this.unimplemented('startFlexibleUpdate is only available on Android');\n }\n async completeFlexibleUpdate() {\n throw this.unimplemented('completeFlexibleUpdate is only available on Android');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["AppUpdateAvailability","FlexibleUpdateInstallStatus","AppUpdateResultCode","registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACA,MAAM,a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AAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAClD,IAAI;AACJ,IAAI,MAAM,QAAQ,GAAG;AACrB,QAAQ,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC;AAC9C,QAAQ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE;AACnC,IAAI;AACJ,IAAI,MAAM,QAAQ,CAAC,OAAO,EAAE;AAC5B,QAAQ,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,OAAO,CAAC;AACvD,QAAQ;AACR,IAAI;AACJ;AACA;AACA;AACA,IAAI,MAAM,gBAAgB,CAAC,QAAQ,EAAE;AACrC,QAAQ,OAAO,CAAC,IAAI,CAAC,mDAAmD,CAAC;AACzE,QAAQ,OAAO;AACf,YAAY,kBAAkB,EAAE,OAAO;AACvC,YAAY,kBAAkB,EAAE,GAAG;AACnC,YAAY,kBAAkB,EAAEJ,6BAAqB,CAAC,OAAO;AAC7D,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,YAAY,CAAC,QAAQ,EAAE;AACjC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,+CAA+C,CAAC;AACjF,IAAI;AACJ,IAAI,MAAM,sBAAsB,GAAG;AACnC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,qDAAqD,CAAC;AACvF,IAAI;AACJ,IAAI,MAAM,mBAAmB,GAAG;AAChC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,kDAAkD,CAAC;AACpF,IAAI;AACJ,IAAI,MAAM,sBAAsB,GAAG;AACnC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,qDAAqD,CAAC;AACvF,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -225,12 +225,12 @@ var capacitorCapacitorUpdater = (function (exports, core) {
|
|
|
225
225
|
originalPushState = history.pushState;
|
|
226
226
|
originalReplaceState = history.replaceState;
|
|
227
227
|
history.pushState = function pushStatePatched(state, title, url) {
|
|
228
|
-
const result = originalPushState.call(history, state, title, url);
|
|
228
|
+
const result = originalPushState === null || originalPushState === void 0 ? void 0 : originalPushState.call(history, state, title, url);
|
|
229
229
|
record(url, false);
|
|
230
230
|
return result;
|
|
231
231
|
};
|
|
232
232
|
history.replaceState = function replaceStatePatched(state, title, url) {
|
|
233
|
-
const result = originalReplaceState.call(history, state, title, url);
|
|
233
|
+
const result = originalReplaceState === null || originalReplaceState === void 0 ? void 0 : originalReplaceState.call(history, state, title, url);
|
|
234
234
|
record(url, true);
|
|
235
235
|
return result;
|
|
236
236
|
};
|
|
@@ -283,6 +283,115 @@ var capacitorCapacitorUpdater = (function (exports, core) {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
+
/*
|
|
287
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
288
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
289
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
290
|
+
*/
|
|
291
|
+
/**
|
|
292
|
+
* Update availability status.
|
|
293
|
+
*
|
|
294
|
+
* @since 8.0.0
|
|
295
|
+
*/
|
|
296
|
+
exports.AppUpdateAvailability = void 0;
|
|
297
|
+
(function (AppUpdateAvailability) {
|
|
298
|
+
/**
|
|
299
|
+
* Update availability is unknown.
|
|
300
|
+
* This typically means the check hasn't completed or failed.
|
|
301
|
+
*/
|
|
302
|
+
AppUpdateAvailability[AppUpdateAvailability["UNKNOWN"] = 0] = "UNKNOWN";
|
|
303
|
+
/**
|
|
304
|
+
* No update is available.
|
|
305
|
+
* The installed version is the latest.
|
|
306
|
+
*/
|
|
307
|
+
AppUpdateAvailability[AppUpdateAvailability["UPDATE_NOT_AVAILABLE"] = 1] = "UPDATE_NOT_AVAILABLE";
|
|
308
|
+
/**
|
|
309
|
+
* An update is available for download.
|
|
310
|
+
*/
|
|
311
|
+
AppUpdateAvailability[AppUpdateAvailability["UPDATE_AVAILABLE"] = 2] = "UPDATE_AVAILABLE";
|
|
312
|
+
/**
|
|
313
|
+
* An update is currently being downloaded or installed.
|
|
314
|
+
*/
|
|
315
|
+
AppUpdateAvailability[AppUpdateAvailability["UPDATE_IN_PROGRESS"] = 3] = "UPDATE_IN_PROGRESS";
|
|
316
|
+
})(exports.AppUpdateAvailability || (exports.AppUpdateAvailability = {}));
|
|
317
|
+
/**
|
|
318
|
+
* Installation status for flexible updates (Android only).
|
|
319
|
+
*
|
|
320
|
+
* @since 8.0.0
|
|
321
|
+
*/
|
|
322
|
+
exports.FlexibleUpdateInstallStatus = void 0;
|
|
323
|
+
(function (FlexibleUpdateInstallStatus) {
|
|
324
|
+
/**
|
|
325
|
+
* Unknown install status.
|
|
326
|
+
*/
|
|
327
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
328
|
+
/**
|
|
329
|
+
* Download is pending and will start soon.
|
|
330
|
+
*/
|
|
331
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["PENDING"] = 1] = "PENDING";
|
|
332
|
+
/**
|
|
333
|
+
* Download is in progress.
|
|
334
|
+
* Check `bytesDownloaded` and `totalBytesToDownload` for progress.
|
|
335
|
+
*/
|
|
336
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["DOWNLOADING"] = 2] = "DOWNLOADING";
|
|
337
|
+
/**
|
|
338
|
+
* The update is being installed.
|
|
339
|
+
*/
|
|
340
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["INSTALLING"] = 3] = "INSTALLING";
|
|
341
|
+
/**
|
|
342
|
+
* The update has been installed.
|
|
343
|
+
* The app needs to be restarted to use the new version.
|
|
344
|
+
*/
|
|
345
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["INSTALLED"] = 4] = "INSTALLED";
|
|
346
|
+
/**
|
|
347
|
+
* The update failed to download or install.
|
|
348
|
+
*/
|
|
349
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["FAILED"] = 5] = "FAILED";
|
|
350
|
+
/**
|
|
351
|
+
* The update was canceled by the user.
|
|
352
|
+
*/
|
|
353
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["CANCELED"] = 6] = "CANCELED";
|
|
354
|
+
/**
|
|
355
|
+
* The update has been downloaded and is ready to install.
|
|
356
|
+
* Call {@link CapacitorUpdaterPlugin.completeFlexibleUpdate} to install.
|
|
357
|
+
*/
|
|
358
|
+
FlexibleUpdateInstallStatus[FlexibleUpdateInstallStatus["DOWNLOADED"] = 11] = "DOWNLOADED";
|
|
359
|
+
})(exports.FlexibleUpdateInstallStatus || (exports.FlexibleUpdateInstallStatus = {}));
|
|
360
|
+
/**
|
|
361
|
+
* Result codes for app update operations.
|
|
362
|
+
*
|
|
363
|
+
* @since 8.0.0
|
|
364
|
+
*/
|
|
365
|
+
exports.AppUpdateResultCode = void 0;
|
|
366
|
+
(function (AppUpdateResultCode) {
|
|
367
|
+
/**
|
|
368
|
+
* The update completed successfully.
|
|
369
|
+
*/
|
|
370
|
+
AppUpdateResultCode[AppUpdateResultCode["OK"] = 0] = "OK";
|
|
371
|
+
/**
|
|
372
|
+
* The user canceled the update.
|
|
373
|
+
*/
|
|
374
|
+
AppUpdateResultCode[AppUpdateResultCode["CANCELED"] = 1] = "CANCELED";
|
|
375
|
+
/**
|
|
376
|
+
* The update failed.
|
|
377
|
+
*/
|
|
378
|
+
AppUpdateResultCode[AppUpdateResultCode["FAILED"] = 2] = "FAILED";
|
|
379
|
+
/**
|
|
380
|
+
* No update is available.
|
|
381
|
+
*/
|
|
382
|
+
AppUpdateResultCode[AppUpdateResultCode["NOT_AVAILABLE"] = 3] = "NOT_AVAILABLE";
|
|
383
|
+
/**
|
|
384
|
+
* The requested update type is not allowed.
|
|
385
|
+
* For example, trying to perform an immediate update when only flexible is allowed.
|
|
386
|
+
*/
|
|
387
|
+
AppUpdateResultCode[AppUpdateResultCode["NOT_ALLOWED"] = 4] = "NOT_ALLOWED";
|
|
388
|
+
/**
|
|
389
|
+
* Required information is missing.
|
|
390
|
+
* This can happen if {@link CapacitorUpdaterPlugin.getAppUpdateInfo} wasn't called first.
|
|
391
|
+
*/
|
|
392
|
+
AppUpdateResultCode[AppUpdateResultCode["INFO_MISSING"] = 5] = "INFO_MISSING";
|
|
393
|
+
})(exports.AppUpdateResultCode || (exports.AppUpdateResultCode = {}));
|
|
394
|
+
|
|
286
395
|
/*
|
|
287
396
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
288
397
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
@@ -447,6 +556,29 @@ var capacitorCapacitorUpdater = (function (exports, core) {
|
|
|
447
556
|
console.warn('Cannot setAppId in web', options);
|
|
448
557
|
return;
|
|
449
558
|
}
|
|
559
|
+
// ============================================================================
|
|
560
|
+
// App Store / Play Store Update Methods (Web stubs)
|
|
561
|
+
// ============================================================================
|
|
562
|
+
async getAppUpdateInfo(_options) {
|
|
563
|
+
console.warn('getAppUpdateInfo is not available on web platform');
|
|
564
|
+
return {
|
|
565
|
+
currentVersionName: '0.0.0',
|
|
566
|
+
currentVersionCode: '0',
|
|
567
|
+
updateAvailability: exports.AppUpdateAvailability.UNKNOWN,
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
async openAppStore(_options) {
|
|
571
|
+
throw this.unimplemented('openAppStore is not available on web platform');
|
|
572
|
+
}
|
|
573
|
+
async performImmediateUpdate() {
|
|
574
|
+
throw this.unimplemented('performImmediateUpdate is only available on Android');
|
|
575
|
+
}
|
|
576
|
+
async startFlexibleUpdate() {
|
|
577
|
+
throw this.unimplemented('startFlexibleUpdate is only available on Android');
|
|
578
|
+
}
|
|
579
|
+
async completeFlexibleUpdate() {
|
|
580
|
+
throw this.unimplemented('completeFlexibleUpdate is only available on Android');
|
|
581
|
+
}
|
|
450
582
|
}
|
|
451
583
|
|
|
452
584
|
var web = /*#__PURE__*/Object.freeze({
|