From d58840df43698fa053418c58920347c77b2d5c73 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 9 Mar 2026 14:41:23 +1000 Subject: [PATCH] fix: fixing AudioManger so it builds - removed trailing commas from function calls - fixed option enums --- ios/AudioManager.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ios/AudioManager.swift b/ios/AudioManager.swift index 5f18963..c824586 100644 --- a/ios/AudioManager.swift +++ b/ios/AudioManager.swift @@ -177,7 +177,7 @@ class AudioManager: HybridAudioManagerSpec { let interruptionChangeInfo = InterruptionEvent( type: type, - reason: reason, + reason: reason ) interruptionListeners.forEach { $0.callback(interruptionChangeInfo) } @@ -204,7 +204,7 @@ class AudioManager: HybridAudioManagerSpec { let routeChangeInfo = RouteChangeEvent( prevRoute: previousRouteDescription, currentRoute: currentRouteDescription, - reason: reason, + reason: reason ) routeChangeListeners.forEach { $0.callback(routeChangeInfo) } @@ -568,7 +568,7 @@ class AudioManager: HybridAudioManagerSpec { message: "AllowBluetooth is not supported for category \(categoryName)" ) } - options.insert(.allowBluetoothHFP) + options.insert(.allowBluetooth) case "AllowBluetoothA2DP": if category == .playAndRecord { options.insert(.allowBluetoothA2DP) @@ -952,7 +952,7 @@ class AudioManager: HybridAudioManagerSpec { if options.contains(.duckOthers) { result.append(.duckothers) } - if options.contains(.allowBluetoothHFP) { + if options.contains(.allowBluetooth) { result.append(.allowbluetoothhfp) } if options.contains(.allowBluetoothA2DP) {