@capgo/capacitor-updater 8.41.6 → 8.41.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.
|
@@ -84,7 +84,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
84
84
|
private static final String[] BREAKING_EVENT_NAMES = { "breakingAvailable", "majorAvailable" };
|
|
85
85
|
private static final String LAST_FAILED_BUNDLE_PREF_KEY = "CapacitorUpdater.lastFailedBundle";
|
|
86
86
|
|
|
87
|
-
private final String pluginVersion = "8.41.
|
|
87
|
+
private final String pluginVersion = "8.41.7";
|
|
88
88
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
89
89
|
|
|
90
90
|
private SharedPreferences.Editor editor;
|
|
@@ -2109,6 +2109,9 @@ public class CapacitorUpdaterPlugin extends Plugin {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
|
|
2111
2111
|
public void appMovedToBackground() {
|
|
2112
|
+
// Reset timeout flag at start of each background cycle
|
|
2113
|
+
this.autoSplashscreenTimedOut = false;
|
|
2114
|
+
|
|
2112
2115
|
final BundleInfo current = CapacitorUpdaterPlugin.this.implementation.getCurrentBundle();
|
|
2113
2116
|
|
|
2114
2117
|
// Show splashscreen FIRST, before any other background work to ensure launcher shows it
|
|
@@ -60,7 +60,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
60
60
|
CAPPluginMethod(name: "completeFlexibleUpdate", returnType: CAPPluginReturnPromise)
|
|
61
61
|
]
|
|
62
62
|
public var implementation = CapgoUpdater()
|
|
63
|
-
private let pluginVersion: String = "8.41.
|
|
63
|
+
private let pluginVersion: String = "8.41.7"
|
|
64
64
|
static let updateUrlDefault = "https://plugin.capgo.app/updates"
|
|
65
65
|
static let statsUrlDefault = "https://plugin.capgo.app/stats"
|
|
66
66
|
static let channelUrlDefault = "https://plugin.capgo.app/channel_self"
|
|
@@ -1597,6 +1597,9 @@ public class CapacitorUpdaterPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
|
|
1599
1599
|
@objc func appMovedToBackground() {
|
|
1600
|
+
// Reset timeout flag at start of each background cycle
|
|
1601
|
+
self.autoSplashscreenTimedOut = false
|
|
1602
|
+
|
|
1600
1603
|
let current: BundleInfo = self.implementation.getCurrentBundle()
|
|
1601
1604
|
self.implementation.sendStats(action: "app_moved_to_background", versionName: current.getVersionName())
|
|
1602
1605
|
logger.info("Check for pending update")
|