@capgo/capacitor-updater 5.2.8 → 5.2.9

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.
@@ -56,7 +56,7 @@ public class CapacitorUpdaterPlugin
56
56
  private static final String channelUrlDefault =
57
57
  "https://api.capgo.app/channel_self";
58
58
 
59
- private final String PLUGIN_VERSION = "5.2.8";
59
+ private final String PLUGIN_VERSION = "5.2.9";
60
60
  private static final String DELAY_CONDITION_PREFERENCES = "";
61
61
 
62
62
  private SharedPreferences.Editor editor;
@@ -15,7 +15,7 @@ import Version
15
15
  @objc(CapacitorUpdaterPlugin)
16
16
  public class CapacitorUpdaterPlugin: CAPPlugin {
17
17
  private var implementation = CapacitorUpdater()
18
- private let PLUGIN_VERSION: String = "5.2.8"
18
+ private let PLUGIN_VERSION: String = "5.2.9"
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"
@@ -516,6 +516,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
516
516
  self.notifyListeners("majorAvailable", data: ["version": res.version])
517
517
  }
518
518
  self.notifyListeners("noNeedUpdate", data: ["bundle": current.toJSON()])
519
+ self.notifyListeners("appReady", data: ["bundle": current.toJSON()])
519
520
  self.endBackGroundTask()
520
521
  return
521
522
  }
@@ -523,6 +524,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
523
524
  guard let downloadUrl = URL(string: res.url) else {
524
525
  print("\(self.implementation.TAG) Error no url or wrong format")
525
526
  self.notifyListeners("noNeedUpdate", data: ["bundle": current.toJSON()])
527
+ self.notifyListeners("appReady", data: ["bundle": current.toJSON()])
526
528
  self.endBackGroundTask()
527
529
  return
528
530
  }
@@ -547,12 +549,14 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
547
549
  print("\(self.implementation.TAG) Error downloading file")
548
550
  self.notifyListeners("downloadFailed", data: ["version": latestVersionName])
549
551
  self.notifyListeners("noNeedUpdate", data: ["bundle": current.toJSON()])
552
+ self.notifyListeners("appReady", data: ["bundle": current.toJSON()])
550
553
  self.endBackGroundTask()
551
554
  return
552
555
  }
553
556
  if next.isErrorStatus() {
554
557
  print("\(self.implementation.TAG) Latest version is in error state. Aborting update.")
555
558
  self.notifyListeners("noNeedUpdate", data: ["bundle": current.toJSON()])
559
+ self.notifyListeners("appReady", data: ["bundle": current.toJSON()])
556
560
  self.endBackGroundTask()
557
561
  return
558
562
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "5.2.8",
3
+ "version": "5.2.9",
4
4
  "packageManager": "pnpm@8.6.12",
5
5
  "license": "MPL-2.0",
6
6
  "description": "Live update for capacitor apps",