@capgo/capacitor-updater 7.11.12 → 7.11.13

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.
@@ -58,7 +58,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
58
58
  private static final String statsUrlDefault = "https://plugin.capgo.app/stats";
59
59
  private static final String channelUrlDefault = "https://plugin.capgo.app/channel_self";
60
60
 
61
- private final String PLUGIN_VERSION = "7.11.12";
61
+ private final String PLUGIN_VERSION = "7.11.13";
62
62
  private static final String DELAY_CONDITION_PREFERENCES = "";
63
63
 
64
64
  private SharedPreferences.Editor editor;
@@ -254,7 +254,7 @@ public class CapgoUpdater {
254
254
  // Cleanup download tracking
255
255
  DownloadWorkerManager.cancelBundleDownload(activity, id, version);
256
256
  Map<String, Object> ret = new HashMap<>();
257
- ret.put("version", getCurrentBundle().getVersionName());
257
+ ret.put("version", version);
258
258
  ret.put("error", "finish_download_fail");
259
259
  sendStats("finish_download_fail", version);
260
260
  notifyListeners("downloadFailed", ret);
@@ -275,7 +275,7 @@ public class CapgoUpdater {
275
275
  // Cleanup download tracking for failed downloads
276
276
  DownloadWorkerManager.cancelBundleDownload(activity, id, failedVersion);
277
277
  Map<String, Object> ret = new HashMap<>();
278
- ret.put("version", getCurrentBundle().getVersionName());
278
+ ret.put("version", failedVersion);
279
279
  if ("low_mem_fail".equals(error)) {
280
280
  sendStats("low_mem_fail", failedVersion);
281
281
  }
@@ -371,7 +371,7 @@ public class CapgoUpdater {
371
371
  }
372
372
 
373
373
  final Map<String, Object> ret = new HashMap<>();
374
- ret.put("version", CapgoUpdater.this.getCurrentBundle().getVersionName());
374
+ ret.put("version", version);
375
375
 
376
376
  CapgoUpdater.this.notifyListeners("downloadFailed", ret);
377
377
  CapgoUpdater.this.sendStats("download_fail");
@@ -413,7 +413,7 @@ public class CapgoUpdater {
413
413
  } catch (IOException e) {
414
414
  e.printStackTrace();
415
415
  final Map<String, Object> ret = new HashMap<>();
416
- ret.put("version", CapgoUpdater.this.getCurrentBundle().getVersionName());
416
+ ret.put("version", version);
417
417
  CapgoUpdater.this.notifyListeners("downloadFailed", ret);
418
418
  CapgoUpdater.this.sendStats("download_fail");
419
419
  return false;
@@ -50,7 +50,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
50
50
  CAPPluginMethod(name: "isShakeMenuEnabled", returnType: CAPPluginReturnPromise)
51
51
  ]
52
52
  public var implementation = CapgoUpdater()
53
- private let PLUGIN_VERSION: String = "7.11.12"
53
+ private let PLUGIN_VERSION: String = "7.11.13"
54
54
  static let updateUrlDefault = "https://plugin.capgo.app/updates"
55
55
  static let statsUrlDefault = "https://plugin.capgo.app/stats"
56
56
  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.11.12",
3
+ "version": "7.11.13",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",