@capgo/capacitor-updater 3.3.14 → 3.3.15

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.14";
62
+ public final String pluginVersion = "3.3.15";
63
63
  public String statsUrl = "";
64
64
 
65
65
  public CapacitorUpdater (final Context context) throws PackageManager.NameNotFoundException {
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "3.3.14",
3
+ "version": "3.3.15",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "OTA update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",