@capgo/capacitor-updater 5.7.14 → 5.7.15-alpha.1
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.
|
@@ -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.7.
|
|
58
|
+
private final String PLUGIN_VERSION = "5.7.15-alpha.1";
|
|
59
59
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
60
60
|
|
|
61
61
|
private SharedPreferences.Editor editor;
|
|
@@ -835,6 +835,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
835
835
|
@Override
|
|
836
836
|
public void run() {
|
|
837
837
|
try {
|
|
838
|
+
Log.i(CapacitorUpdater.TAG, "Period Check");
|
|
838
839
|
CapacitorUpdaterPlugin.this.implementation.getLatest(
|
|
839
840
|
CapacitorUpdaterPlugin.this.updateUrl,
|
|
840
841
|
res -> {
|
|
@@ -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.7.
|
|
18
|
+
private let PLUGIN_VERSION: String = "5.7.15-alpha.1"
|
|
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"
|
|
@@ -792,6 +792,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
|
792
792
|
return
|
|
793
793
|
}
|
|
794
794
|
let timer = Timer.scheduledTimer(withTimeInterval: TimeInterval(periodCheckDelay), repeats: true) { _ in
|
|
795
|
+
print("\(self.implementation.TAG) Period Check")
|
|
795
796
|
DispatchQueue.global(qos: .background).async {
|
|
796
797
|
let res = self.implementation.getLatest(url: url)
|
|
797
798
|
let current = self.implementation.getCurrentBundle()
|