@capgo/capacitor-updater 4.0.0-alpha.46 → 4.0.0-alpha.47

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 CapacitorUpdater {
47
47
  private static final String bundleDirectory = "versions";
48
48
 
49
49
  public static final String TAG = "Capacitor-updater";
50
- public static final String pluginVersion = "4.0.0-alpha.46";
50
+ public static final String pluginVersion = "4.0.0-alpha.47";
51
51
 
52
52
  public SharedPreferences.Editor editor;
53
53
  public SharedPreferences prefs;
@@ -143,13 +143,10 @@ extension CustomError: LocalizedError {
143
143
  private let INFO_SUFFIX = "_info"
144
144
  private let FALLBACK_VERSION = "pastVersion"
145
145
  private let NEXT_VERSION = "nextVersion"
146
-
147
- private var lastPathHot = ""
148
- private var lastPathPersist = ""
149
146
 
150
147
  public let TAG = "✨ Capacitor-updater:";
151
148
  public let CAP_SERVER_PATH = "serverBasePath"
152
- public let pluginVersion = "4.0.0-alpha.46"
149
+ public let pluginVersion = "4.0.0-alpha.47"
153
150
  public var statsUrl = ""
154
151
  public var appId = ""
155
152
  public var deviceID = UIDevice.current.identifierForVendor?.uuidString ?? ""
@@ -398,7 +395,7 @@ extension CustomError: LocalizedError {
398
395
  return true
399
396
  }
400
397
  if (bundleExists(id: id)) {
401
- self.setCurrentBundle(bundle: id)
398
+ self.setCurrentBundle(bundle: self.getBundleDirectory(id: id))
402
399
  self.setBundleStatus(id: id, status: BundleStatus.PENDING)
403
400
  sendStats(action: "set", versionName: newBundle.getVersionName())
404
401
  return true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "4.0.0-alpha.46",
3
+ "version": "4.0.0-alpha.47",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "OTA update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",