@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.
@@ -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 ?? "Public channel requested, channel override removed. Device will use public channel automatically."
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "8.51.1",
3
+ "version": "8.51.2",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Live update for capacitor apps",
6
6
  "main": "dist/plugin.cjs.js",