From 7fa43017560c97ed808fe11499d2c86660dad381 Mon Sep 17 00:00:00 2001 From: Scott Baar Date: Wed, 26 Oct 2016 15:08:48 -0700 Subject: [PATCH 1/2] uint cast --- ios/RNInCallManager/RNInCallManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNInCallManager/RNInCallManager.swift b/ios/RNInCallManager/RNInCallManager.swift index 9cc2736..b350ede 100644 --- a/ios/RNInCallManager/RNInCallManager.swift +++ b/ios/RNInCallManager/RNInCallManager.swift @@ -377,7 +377,7 @@ class RNInCallManager: NSObject, AVAudioPlayerDelegate { self.audioSessionRouteChangeObserver = self.startObserve(AVAudioSessionRouteChangeNotification, object: nil, queue: nil) { notification in guard notification.name == AVAudioSessionRouteChangeNotification && notification.userInfo != nil else { return } - if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey]?.unsignedIntegerValue { + if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey] as ? UInt { if let type = AVAudioSessionRouteChangeReason(rawValue: rawValue) { switch type { case .Unknown: From 9853b020cb63d0b6078967f9cc608dfd55f07443 Mon Sep 17 00:00:00 2001 From: Scott Baar Date: Wed, 26 Oct 2016 15:12:49 -0700 Subject: [PATCH 2/2] uint cast --- ios/RNInCallManager/RNInCallManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNInCallManager/RNInCallManager.swift b/ios/RNInCallManager/RNInCallManager.swift index b350ede..b34c86d 100644 --- a/ios/RNInCallManager/RNInCallManager.swift +++ b/ios/RNInCallManager/RNInCallManager.swift @@ -377,7 +377,7 @@ class RNInCallManager: NSObject, AVAudioPlayerDelegate { self.audioSessionRouteChangeObserver = self.startObserve(AVAudioSessionRouteChangeNotification, object: nil, queue: nil) { notification in guard notification.name == AVAudioSessionRouteChangeNotification && notification.userInfo != nil else { return } - if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey] as ? UInt { + if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey] as? UInt { if let type = AVAudioSessionRouteChangeReason(rawValue: rawValue) { switch type { case .Unknown: