expo-beacon 0.8.5 → 0.8.6

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.
@@ -467,12 +467,12 @@ public class ExpoBeaconModule: Module {
467
467
  self.startCarPlayMonitoringInternal()
468
468
  promise.resolve(nil)
469
469
  }
470
- self.removeAppForegroundObserverForCarPlay()
471
-
470
+
472
471
  AsyncFunction("stopCarPlayMonitoring") { (promise: Promise) in
473
472
  self.defaults.set(false, forKey: CARPLAY_MONITORING_ENABLED_KEY)
474
473
  CarPlayMonitor.shared.stop()
475
474
  self.stopCarPlayBackgroundWakes()
475
+ self.removeAppForegroundObserverForCarPlay()
476
476
  promise.resolve(nil)
477
477
  }
478
478
 
@@ -633,11 +633,11 @@ self.removeAppForegroundObserverForCarPlay()
633
633
  // that route changes continue to be observed across module recreations
634
634
  // (e.g. background-launch wake → module re-init → OnDestroy on suspend).
635
635
  if !self.defaults.bool(forKey: CARPLAY_MONITORING_ENABLED_KEY) {
636
-
636
+ CarPlayMonitor.shared.stop()
637
+ }
637
638
  // Foreground observer is bound to this module instance — always
638
639
  // remove it on destroy to avoid leaking observers across recreations.
639
- self.removeAppForegroundObserverForCarPlay() CarPlayMonitor.shared.stop()
640
- }
640
+ self.removeAppForegroundObserverForCarPlay()
641
641
  self.centralManager?.stopScan()
642
642
  self.centralManager = nil
643
643
  self.scanTimer?.cancel()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-beacon",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "Expo module for scanning, pairing, and monitoring iBeacons on Android and iOS",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",