@capgo/capacitor-updater 7.0.3 → 7.0.5
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 +1 -1
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdater.java +1 -1
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +1 -1
- package/android/src/main/java/ee/forgr/capacitor_updater/DownloadService.java +3 -0
- package/ios/Plugin/CapacitorUpdaterPlugin.swift +1 -1
- package/package.json +1 -1
package/Package.swift
CHANGED
|
@@ -12,7 +12,7 @@ let package = Package(
|
|
|
12
12
|
dependencies: [
|
|
13
13
|
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
|
|
14
14
|
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.10.2")),
|
|
15
|
-
.package(url: "https://github.com/ZipArchive/ZipArchive.git", .upToNextMajor(from: "2.
|
|
15
|
+
.package(url: "https://github.com/ZipArchive/ZipArchive.git", .upToNextMajor(from: "2.4.3")),
|
|
16
16
|
.package(url: "https://github.com/mxcl/Version.git", .upToNextMajor(from: "2.1.0"))
|
|
17
17
|
],
|
|
18
18
|
targets: [
|
|
@@ -331,7 +331,7 @@ public class CapacitorUpdater {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
// Remove the decryption for manifest downloads
|
|
334
|
-
} catch (
|
|
334
|
+
} catch (Exception e) {
|
|
335
335
|
final Boolean res = this.delete(id);
|
|
336
336
|
if (!res) {
|
|
337
337
|
Log.i(CapacitorUpdater.TAG, "Double error, cannot cleanup: " + version);
|
|
@@ -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 = "7.0.
|
|
60
|
+
private final String PLUGIN_VERSION = "7.0.5";
|
|
61
61
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
62
62
|
|
|
63
63
|
private SharedPreferences.Editor editor;
|
|
@@ -419,6 +419,9 @@ public class DownloadService extends Worker {
|
|
|
419
419
|
targetFile.delete();
|
|
420
420
|
throw new IOException("Checksum verification failed for " + targetFile.getName());
|
|
421
421
|
}
|
|
422
|
+
} catch (Exception e) {
|
|
423
|
+
Log.e(TAG, "Error in downloadAndVerify", e);
|
|
424
|
+
throw new IOException("Error in downloadAndVerify: " + e.getMessage());
|
|
422
425
|
}
|
|
423
426
|
}
|
|
424
427
|
|
|
@@ -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 = "7.0.
|
|
48
|
+
private let PLUGIN_VERSION: String = "7.0.5"
|
|
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"
|