@capgo/capacitor-updater 6.14.3 → 6.14.6
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.
|
@@ -465,21 +465,7 @@ public class CapacitorUpdater {
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
if (workInfo.getState()
|
|
469
|
-
Data outputData = workInfo.getOutputData();
|
|
470
|
-
boolean success = finishDownload(
|
|
471
|
-
id,
|
|
472
|
-
outputData.getString(DownloadService.FILEDEST),
|
|
473
|
-
version,
|
|
474
|
-
sessionKey,
|
|
475
|
-
checksum,
|
|
476
|
-
true,
|
|
477
|
-
false
|
|
478
|
-
);
|
|
479
|
-
if (!success) {
|
|
480
|
-
throw new IOException("Failed to finish download");
|
|
481
|
-
}
|
|
482
|
-
} else {
|
|
468
|
+
if (workInfo.getState() != WorkInfo.State.SUCCEEDED) {
|
|
483
469
|
Data outputData = workInfo.getOutputData();
|
|
484
470
|
String error = outputData.getString(DownloadService.ERROR);
|
|
485
471
|
throw new IOException(error != null ? error : "Download failed: " + workInfo.getState());
|
|
@@ -57,7 +57,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
57
57
|
private static final String statsUrlDefault = "https://plugin.capgo.app/stats";
|
|
58
58
|
private static final String channelUrlDefault = "https://plugin.capgo.app/channel_self";
|
|
59
59
|
|
|
60
|
-
private final String PLUGIN_VERSION = "6.14.
|
|
60
|
+
private final String PLUGIN_VERSION = "6.14.6";
|
|
61
61
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
62
62
|
|
|
63
63
|
private SharedPreferences.Editor editor;
|
|
@@ -45,7 +45,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
45
45
|
CAPPluginMethod(name: "getNextBundle", returnType: CAPPluginReturnPromise)
|
|
46
46
|
]
|
|
47
47
|
public var implementation = CapacitorUpdater()
|
|
48
|
-
private let PLUGIN_VERSION: String = "6.14.
|
|
48
|
+
private let PLUGIN_VERSION: String = "6.14.6"
|
|
49
49
|
static let updateUrlDefault = "https://plugin.capgo.app/updates"
|
|
50
50
|
static let statsUrlDefault = "https://plugin.capgo.app/stats"
|
|
51
51
|
static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
|