@capgo/capacitor-updater 4.17.10 → 4.17.11
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.
|
@@ -47,7 +47,7 @@ public class CapacitorUpdaterPlugin
|
|
|
47
47
|
private static final String channelUrlDefault =
|
|
48
48
|
"https://api.capgo.app/channel_self";
|
|
49
49
|
|
|
50
|
-
private final String PLUGIN_VERSION = "4.17.
|
|
50
|
+
private final String PLUGIN_VERSION = "4.17.11";
|
|
51
51
|
private static final String DELAY_CONDITION_PREFERENCES = "";
|
|
52
52
|
|
|
53
53
|
private SharedPreferences.Editor editor;
|
|
@@ -148,8 +148,6 @@ public class CapacitorUpdaterPlugin
|
|
|
148
148
|
final Application application = (Application) this.getContext()
|
|
149
149
|
.getApplicationContext();
|
|
150
150
|
application.registerActivityLifecycleCallbacks(this);
|
|
151
|
-
this.onActivityStarted(this.getActivity());
|
|
152
|
-
this._checkCancelDelay(true);
|
|
153
151
|
}
|
|
154
152
|
|
|
155
153
|
private void cleanupObsoleteVersions() {
|
|
@@ -959,11 +957,14 @@ public class CapacitorUpdaterPlugin
|
|
|
959
957
|
final String session_key = res.has("session_key")
|
|
960
958
|
? res.getString("session_key")
|
|
961
959
|
: "";
|
|
960
|
+
final String checksum = res.has("checksum")
|
|
961
|
+
? res.getString("checksum")
|
|
962
|
+
: "";
|
|
962
963
|
CapacitorUpdaterPlugin.this.implementation.downloadBackground(
|
|
963
964
|
url,
|
|
964
965
|
latestVersionName,
|
|
965
966
|
session_key,
|
|
966
|
-
|
|
967
|
+
checksum
|
|
967
968
|
);
|
|
968
969
|
} catch (final Exception e) {
|
|
969
970
|
Log.e(
|
|
@@ -1027,6 +1028,7 @@ public class CapacitorUpdaterPlugin
|
|
|
1027
1028
|
|
|
1028
1029
|
@Override // appMovedToForeground
|
|
1029
1030
|
public void onActivityStarted(@NonNull final Activity activity) {
|
|
1031
|
+
this._checkCancelDelay(true);
|
|
1030
1032
|
if (CapacitorUpdaterPlugin.this._isAutoUpdateEnabled()) {
|
|
1031
1033
|
this.backgroundDownload();
|
|
1032
1034
|
}
|
|
@@ -9,7 +9,7 @@ import Version
|
|
|
9
9
|
@objc(CapacitorUpdaterPlugin)
|
|
10
10
|
public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
11
11
|
private var implementation = CapacitorUpdater()
|
|
12
|
-
private let PLUGIN_VERSION: String = "4.17.
|
|
12
|
+
private let PLUGIN_VERSION: String = "4.17.11"
|
|
13
13
|
static let updateUrlDefault = "https://api.capgo.app/updates"
|
|
14
14
|
static let statsUrlDefault = "https://api.capgo.app/stats"
|
|
15
15
|
static let channelUrlDefault = "https://api.capgo.app/channel_self"
|