@capgo/capacitor-updater 7.0.4 → 7.0.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.
package/Package.swift CHANGED
@@ -10,7 +10,7 @@ let package = Package(
10
10
  targets: ["CapacitorUpdaterPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.1"),
14
14
  .package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.10.2")),
15
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"))
@@ -331,7 +331,7 @@ public class CapacitorUpdater {
331
331
  }
332
332
  }
333
333
  // Remove the decryption for manifest downloads
334
- } catch (IOException e) {
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.4";
60
+ private final String PLUGIN_VERSION = "7.0.6";
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.4"
48
+ private let PLUGIN_VERSION: String = "7.0.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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",