@capgo/capacitor-updater 4.0.0-alpha.48 → 4.0.0-alpha.49
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.
|
|
50
|
+
public static final String pluginVersion = "4.0.0-alpha.49";
|
|
51
51
|
|
|
52
52
|
public SharedPreferences.Editor editor;
|
|
53
53
|
public SharedPreferences prefs;
|
|
@@ -146,7 +146,7 @@ extension CustomError: LocalizedError {
|
|
|
146
146
|
|
|
147
147
|
public let TAG = "✨ Capacitor-updater:";
|
|
148
148
|
public let CAP_SERVER_PATH = "serverBasePath"
|
|
149
|
-
public let pluginVersion = "4.0.0-alpha.
|
|
149
|
+
public let pluginVersion = "4.0.0-alpha.49"
|
|
150
150
|
public var statsUrl = ""
|
|
151
151
|
public var appId = ""
|
|
152
152
|
public var deviceID = UIDevice.current.identifierForVendor?.uuidString ?? ""
|
|
@@ -540,12 +540,13 @@ extension CustomError: LocalizedError {
|
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
public func getCurrentBundleId() -> String {
|
|
543
|
-
guard let
|
|
543
|
+
guard let bundlePath = UserDefaults.standard.string(forKey: self.CAP_SERVER_PATH) else {
|
|
544
544
|
return BundleInfo.ID_BUILTIN
|
|
545
545
|
}
|
|
546
|
-
if (
|
|
546
|
+
if (bundlePath == "") {
|
|
547
547
|
return BundleInfo.ID_BUILTIN
|
|
548
548
|
}
|
|
549
|
+
let bundleID = bundlePath.components(separatedBy: "/").last ?? bundlePath
|
|
549
550
|
return bundleID
|
|
550
551
|
}
|
|
551
552
|
|