@capgo/capacitor-updater 6.0.54 → 6.0.56

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.
@@ -55,7 +55,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
55
55
  private static final String channelUrlDefault =
56
56
  "https://api.capgo.app/channel_self";
57
57
 
58
- private final String PLUGIN_VERSION = "6.0.54";
58
+ private final String PLUGIN_VERSION = "6.0.56";
59
59
  private static final String DELAY_CONDITION_PREFERENCES = "";
60
60
 
61
61
  private SharedPreferences.Editor editor;
@@ -1444,7 +1444,8 @@ public class CapacitorUpdaterPlugin extends Plugin {
1444
1444
  this._checkCancelDelay(false);
1445
1445
  if (
1446
1446
  CapacitorUpdaterPlugin.this._isAutoUpdateEnabled() &&
1447
- this.backgroundDownloadTask == null
1447
+ (this.backgroundDownloadTask == null ||
1448
+ !this.backgroundDownloadTask.isAlive())
1448
1449
  ) {
1449
1450
  this.backgroundDownloadTask = this.backgroundDownload();
1450
1451
  } else {
@@ -15,7 +15,7 @@ import Version
15
15
  @objc(CapacitorUpdaterPlugin)
16
16
  public class CapacitorUpdaterPlugin: CAPPlugin {
17
17
  public var implementation = CapacitorUpdater()
18
- private let PLUGIN_VERSION: String = "6.0.54"
18
+ private let PLUGIN_VERSION: String = "6.0.56"
19
19
  static let updateUrlDefault = "https://api.capgo.app/updates"
20
20
  static let statsUrlDefault = "https://api.capgo.app/stats"
21
21
  static let channelUrlDefault = "https://api.capgo.app/channel_self"
@@ -54,7 +54,7 @@ public struct AES128Key {
54
54
 
55
55
  let status: CCCryptorStatus = CCCrypt(CCOperation(kCCDecrypt), CryptoCipherConstants.aesAlgorithm, CryptoCipherConstants.aesOptions, keyData, keyLength, ivData, encryptedData, encryptedDataLength, decryptedData, decryptedDataLength, &decryptedLength)
56
56
 
57
- if UInt32(status) == UInt32(kCCSuccess) {
57
+ if Int32(status) == Int32(kCCSuccess) {
58
58
  result.length = Int(decryptedLength)
59
59
  return result as Data
60
60
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "6.0.54",
3
+ "version": "6.0.56",
4
4
  "packageManager": "pnpm@8.15.9",
5
5
  "license": "MPL-2.0",
6
6
  "description": "Live update for capacitor apps",