@capgo/capacitor-updater 4.0.0-alpha.50 → 4.0.0-alpha.51

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.
@@ -47,7 +47,7 @@ public class CapacitorUpdater {
47
47
  private static final String bundleDirectory = "versions";
48
48
 
49
49
  public static final String TAG = "Capacitor-updater";
50
- public static final String pluginVersion = "4.0.0-alpha.50";
50
+ public static final String pluginVersion = "4.0.0-alpha.51";
51
51
 
52
52
  public SharedPreferences.Editor editor;
53
53
  public SharedPreferences prefs;
@@ -320,8 +320,8 @@ public class CapacitorUpdater {
320
320
  this.setBundleStatus(bundle.getId(), BundleStatus.SUCCESS);
321
321
  final BundleInfo fallback = this.getFallbackBundle();
322
322
  Log.d(CapacitorUpdater.TAG, "Fallback bundle is: " + fallback);
323
+ Log.i(CapacitorUpdater.TAG, "Version successfully loaded: " + bundle.getVersionName());
323
324
  if(autoDeletePrevious && !fallback.isBuiltin()) {
324
- Log.i(CapacitorUpdater.TAG, "Version successfully loaded: " + bundle.getVersionName());
325
325
  try {
326
326
  final Boolean res = this.delete(fallback.getId());
327
327
  if (res) {
@@ -146,7 +146,7 @@ extension CustomError: LocalizedError {
146
146
 
147
147
  public let TAG = "✨ Capacitor-updater:";
148
148
  public let CAP_SERVER_PATH = "serverBasePath"
149
- public let pluginVersion = "4.0.0-alpha.50"
149
+ public let pluginVersion = "4.0.0-alpha.51"
150
150
  public var statsUrl = ""
151
151
  public var appId = ""
152
152
  public var deviceID = UIDevice.current.identifierForVendor?.uuidString ?? ""
@@ -430,8 +430,8 @@ extension CustomError: LocalizedError {
430
430
  self.setBundleStatus(id: bundle.getId(), status: BundleStatus.SUCCESS)
431
431
  let fallback: BundleInfo = self.getFallbackBundle()
432
432
  print("\(self.TAG) Fallback bundle is: \(fallback.toString())")
433
+ print("\(self.TAG) Version successfully loaded: \(bundle.toString())")
433
434
  if(autoDeletePrevious) {
434
- print("\(self.TAG) Version successfully loaded: \(bundle.toString())")
435
435
  let res = self.delete(id: fallback.getId())
436
436
  if (res) {
437
437
  print("\(self.TAG) Deleted previous bundle: \(fallback.toString())")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "4.0.0-alpha.50",
3
+ "version": "4.0.0-alpha.51",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "OTA update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",