@capgo/capacitor-updater 8.51.1 → 8.51.2
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.
- package/README.md +49 -46
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +111 -7
- package/android/src/main/java/ee/forgr/capacitor_updater/CapgoUpdater.java +0 -1
- package/dist/docs.json +18 -2
- package/dist/esm/definitions.d.ts +22 -6
- package/dist/esm/definitions.js.map +1 -1
- package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +506 -22
- package/ios/Sources/CapacitorUpdaterPlugin/CapgoUpdater.swift +2 -3
- package/ios/Sources/CapacitorUpdaterPlugin/ShakeMenu.swift +8 -0
- package/package.json +1 -1
|
@@ -2439,7 +2439,8 @@ import UIKit
|
|
|
2439
2439
|
self.logger.info("Public channel requested, channel override removed")
|
|
2440
2440
|
|
|
2441
2441
|
setChannel.status = responseValue.status ?? "ok"
|
|
2442
|
-
setChannel.message = responseValue.message
|
|
2442
|
+
setChannel.message = responseValue.message
|
|
2443
|
+
?? "Public channel requested, channel override removed. Device will use public channel automatically."
|
|
2443
2444
|
} else {
|
|
2444
2445
|
self.defaultChannel = channel
|
|
2445
2446
|
UserDefaults.standard.set(channel, forKey: defaultChannelKey)
|
|
@@ -2454,7 +2455,6 @@ import UIKit
|
|
|
2454
2455
|
|
|
2455
2456
|
func getChannel(defaultChannelKey: String? = nil) -> GetChannel {
|
|
2456
2457
|
let getChannel: GetChannel = GetChannel()
|
|
2457
|
-
|
|
2458
2458
|
// Check if rate limit was exceeded
|
|
2459
2459
|
if CapgoUpdater.rateLimitExceeded {
|
|
2460
2460
|
logger.debug("Skipping getChannel due to rate limit (429). Requests will resume after app restart.")
|
|
@@ -2853,7 +2853,6 @@ import UIKit
|
|
|
2853
2853
|
}
|
|
2854
2854
|
}
|
|
2855
2855
|
|
|
2856
|
-
|
|
2857
2856
|
private func setBundleStatus(id: String, status: BundleStatus) {
|
|
2858
2857
|
logger.info("Setting status for bundle [\(id)] to \(status)")
|
|
2859
2858
|
let info = self.getBundleInfo(id: id)
|
|
@@ -668,6 +668,14 @@ extension UIWindow {
|
|
|
668
668
|
}
|
|
669
669
|
return
|
|
670
670
|
}
|
|
671
|
+
guard plugin.persistDefaultChannelStateFromDefaults() else {
|
|
672
|
+
DispatchQueue.main.async {
|
|
673
|
+
progressAlert.dismiss(animated: true) {
|
|
674
|
+
self.showError(message: "Channel set to \(name), but local persistence failed.", plugin: plugin)
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
return
|
|
678
|
+
}
|
|
671
679
|
|
|
672
680
|
// Update progress message
|
|
673
681
|
DispatchQueue.main.async {
|