@capgo/capacitor-updater 7.27.6 → 7.27.8

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.
@@ -71,7 +71,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
71
71
  private static final String[] BREAKING_EVENT_NAMES = { "breakingAvailable", "majorAvailable" };
72
72
  private static final String LAST_FAILED_BUNDLE_PREF_KEY = "CapacitorUpdater.lastFailedBundle";
73
73
 
74
- private final String pluginVersion = "7.27.6";
74
+ private final String pluginVersion = "7.27.8";
75
75
  private static final String DELAY_CONDITION_PREFERENCES = "";
76
76
 
77
77
  private SharedPreferences.Editor editor;
@@ -439,11 +439,11 @@ public class CapgoUpdater {
439
439
  this.flattenAssets(downloaded, idName);
440
440
  downloaded.delete();
441
441
  }
442
- this.notifyDownload(id, 100);
443
442
  // Remove old bundle info and set new one
444
443
  this.saveBundleInfo(id, null);
445
444
  BundleInfo next = new BundleInfo(id, version, BundleStatus.PENDING, new Date(System.currentTimeMillis()), checksum);
446
445
  this.saveBundleInfo(id, next);
446
+ this.notifyDownload(id, 100);
447
447
 
448
448
  final Map<String, Object> ret = new HashMap<>();
449
449
  ret.put("bundle", next.toJSONMap());