@capgo/capacitor-updater 4.2.6 → 4.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.
|
@@ -45,7 +45,7 @@ public class CapacitorUpdater {
|
|
|
45
45
|
private static final String bundleDirectory = "versions";
|
|
46
46
|
|
|
47
47
|
public static final String TAG = "Capacitor-updater";
|
|
48
|
-
public static final String pluginVersion = "4.2.
|
|
48
|
+
public static final String pluginVersion = "4.2.7";
|
|
49
49
|
|
|
50
50
|
public SharedPreferences.Editor editor;
|
|
51
51
|
public SharedPreferences prefs;
|
|
@@ -662,7 +662,7 @@ public class CapacitorUpdaterPlugin extends Plugin implements Application.Activi
|
|
|
662
662
|
final BundleInfo current = this.implementation.getCurrentBundle();
|
|
663
663
|
final BundleInfo next = this.implementation.getNextBundle();
|
|
664
664
|
|
|
665
|
-
if (next != null && !next.isErrorStatus() && next.getId()
|
|
665
|
+
if (next != null && !next.isErrorStatus() && !next.getId().equals(current.getId())) {
|
|
666
666
|
// There is a next bundle waiting for activation
|
|
667
667
|
Log.d(CapacitorUpdater.TAG, "Next bundle is: " + next.getVersionName());
|
|
668
668
|
if (this.implementation.set(next) && this._reload()) {
|
|
@@ -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.2.
|
|
149
|
+
public let pluginVersion = "4.2.7"
|
|
150
150
|
public var statsUrl = ""
|
|
151
151
|
public var appId = ""
|
|
152
152
|
public var deviceID = UIDevice.current.identifierForVendor?.uuidString ?? ""
|