@capgo/capacitor-updater 5.8.5 → 5.8.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.
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdater.java +4 -9
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +1 -1
- package/ios/Plugin/CapacitorUpdater.swift +2 -5
- package/ios/Plugin/CapacitorUpdaterPlugin.swift +1 -1
- package/package.json +1 -1
|
@@ -698,14 +698,10 @@ public class CapacitorUpdater {
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
public void autoReset() {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
return;
|
|
706
|
-
}
|
|
707
|
-
final BundleInfo currentBundle = this.getBundleInfo(id);
|
|
708
|
-
if (!currentBundle.isBuiltin() && !this.bundleExists(id)) {
|
|
701
|
+
final BundleInfo currentBundle = this.getCurrentBundle();
|
|
702
|
+
if (
|
|
703
|
+
!currentBundle.isBuiltin() && !this.bundleExists(currentBundle.getId())
|
|
704
|
+
) {
|
|
709
705
|
Log.i(TAG, "Folder at bundle path does not exist. Triggering reset.");
|
|
710
706
|
this.reset();
|
|
711
707
|
}
|
|
@@ -1054,7 +1050,6 @@ public class CapacitorUpdater {
|
|
|
1054
1050
|
if (id != null) {
|
|
1055
1051
|
trueId = id;
|
|
1056
1052
|
}
|
|
1057
|
-
// Log.d(TAG, "Getting info for bundle [" + trueId + "]");
|
|
1058
1053
|
BundleInfo result;
|
|
1059
1054
|
if (BundleInfo.ID_BUILTIN.equals(trueId)) {
|
|
1060
1055
|
result = new BundleInfo(trueId, null, BundleStatus.SUCCESS, "", "");
|
|
@@ -55,7 +55,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
55
55
|
private static final String channelUrlDefault =
|
|
56
56
|
"https://api.capgo.app/channel_self";
|
|
57
57
|
|
|
58
|
-
private final String PLUGIN_VERSION = "5.8.
|
|
58
|
+
private final String PLUGIN_VERSION = "5.8.7";
|
|
59
59
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
60
60
|
|
|
61
61
|
private SharedPreferences.Editor editor;
|
|
@@ -727,11 +727,8 @@ extension CustomError: LocalizedError {
|
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
public func autoReset() {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
}
|
|
733
|
-
let currentBundle: BundleInfo = self.getBundleInfo(id: id)
|
|
734
|
-
if !currentBundle.isBuiltin() && !self.bundleExists(id: id) {
|
|
730
|
+
let currentBundle: BundleInfo = self.getCurrentBundle()
|
|
731
|
+
if !currentBundle.isBuiltin() && !self.bundleExists(id: currentBundle.getId()) {
|
|
735
732
|
print("\(self.TAG) Folder at bundle path does not exist. Triggering reset.")
|
|
736
733
|
self.reset()
|
|
737
734
|
}
|
|
@@ -15,7 +15,7 @@ import Version
|
|
|
15
15
|
@objc(CapacitorUpdaterPlugin)
|
|
16
16
|
public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
17
17
|
public var implementation = CapacitorUpdater()
|
|
18
|
-
private let PLUGIN_VERSION: String = "5.8.
|
|
18
|
+
private let PLUGIN_VERSION: String = "5.8.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"
|