@capgo/capacitor-updater 5.2.6 → 5.2.7

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
55
55
  private static final String channelUrlDefault =
56
56
  "https://api.capgo.app/channel_self";
57
57
 
58
- private final String PLUGIN_VERSION = "5.2.6";
58
+ private final String PLUGIN_VERSION = "5.2.7";
59
59
  private static final String DELAY_CONDITION_PREFERENCES = "";
60
60
 
61
61
  private SharedPreferences.Editor editor;
@@ -1235,6 +1235,11 @@ public class CapacitorUpdaterPlugin
1235
1235
  this._checkCancelDelay(true);
1236
1236
  if (CapacitorUpdaterPlugin.this._isAutoUpdateEnabled()) {
1237
1237
  this.backgroundDownload();
1238
+ } else {
1239
+ Log.i(CapacitorUpdater.TAG, "Auto update is disabled");
1240
+ final JSObject ret = new JSObject();
1241
+ ret.put("bundle", current.toJSON());
1242
+ CapacitorUpdaterPlugin.this.notifyListeners("appReady", ret);
1238
1243
  }
1239
1244
  this.checkAppReady();
1240
1245
  }
@@ -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.6"
18
+ private let PLUGIN_VERSION: String = "5.2.7"
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"
@@ -646,6 +646,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
646
646
  self.backgroundDownload()
647
647
  } else {
648
648
  print("\(self.implementation.TAG) Auto update is disabled")
649
+ self.notifyListeners("appReady", data: ["bundle": current.toJSON()])
649
650
  }
650
651
  self.checkAppReady()
651
652
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "packageManager": "pnpm@8.6.12",
5
5
  "license": "MPL-2.0",
6
6
  "description": "Live update for capacitor apps",