@capgo/capacitor-updater 3.3.13 → 3.3.16
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.
|
@@ -59,7 +59,7 @@ public class CapacitorUpdater {
|
|
|
59
59
|
|
|
60
60
|
public String appId = "";
|
|
61
61
|
public String deviceID = "";
|
|
62
|
-
public final String pluginVersion = "3.3.
|
|
62
|
+
public final String pluginVersion = "3.3.16";
|
|
63
63
|
public String statsUrl = "";
|
|
64
64
|
|
|
65
65
|
public CapacitorUpdater (final Context context) throws PackageManager.NameNotFoundException {
|
|
@@ -228,7 +228,7 @@ public class CapacitorUpdaterPlugin extends Plugin implements Application.Activi
|
|
|
228
228
|
final JSObject ret = new JSObject();
|
|
229
229
|
final String current = pathHot.length() >= 10 ? pathHot.substring(pathHot.length() - 10) : "builtin";
|
|
230
230
|
ret.put("current", current);
|
|
231
|
-
ret.put("currentNative", this.currentVersionNative);
|
|
231
|
+
ret.put("currentNative", this.currentVersionNative.toString());
|
|
232
232
|
call.resolve(ret);
|
|
233
233
|
}
|
|
234
234
|
|
|
@@ -181,7 +181,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
|
181
181
|
let current = pathHot.count >= 10 ? pathHot.suffix(10) : "builtin"
|
|
182
182
|
call.resolve([
|
|
183
183
|
"current": current,
|
|
184
|
-
"currentNative": currentVersionNative
|
|
184
|
+
"currentNative": currentVersionNative.description
|
|
185
185
|
])
|
|
186
186
|
}
|
|
187
187
|
|
|
@@ -230,7 +230,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
|
|
|
230
230
|
print("✨ Capacitor-updater: New version: \(newVersion) found. Current is \(currentVersion == "" ? "builtin" : currentVersion), next backgrounding will trigger update")
|
|
231
231
|
UserDefaults.standard.set(dl, forKey: "nextVersion")
|
|
232
232
|
UserDefaults.standard.set(newVersion.description, forKey: "nextVersionName")
|
|
233
|
-
self.notifyListeners("updateAvailable", data: ["version": newVersion])
|
|
233
|
+
self.notifyListeners("updateAvailable", data: ["version": newVersion.description])
|
|
234
234
|
} catch {
|
|
235
235
|
print("✨ Capacitor-updater: Download version \(newVersion) fail", error.localizedDescription)
|
|
236
236
|
}
|