Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ios/AudioManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class AudioManager: HybridAudioManagerSpec {

let interruptionChangeInfo = InterruptionEvent(
type: type,
reason: reason,
reason: reason
)

interruptionListeners.forEach { $0.callback(interruptionChangeInfo) }
Expand All @@ -204,7 +204,7 @@ class AudioManager: HybridAudioManagerSpec {
let routeChangeInfo = RouteChangeEvent(
prevRoute: previousRouteDescription,
currentRoute: currentRouteDescription,
reason: reason,
reason: reason
)

routeChangeListeners.forEach { $0.callback(routeChangeInfo) }
Expand Down Expand Up @@ -568,7 +568,7 @@ class AudioManager: HybridAudioManagerSpec {
message: "AllowBluetooth is not supported for category \(categoryName)"
)
}
options.insert(.allowBluetoothHFP)
options.insert(.allowBluetooth)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow Bluetooth is depcrecated:
https://developer.apple.com/documentation/avfaudio/avaudiosession/categoryoptions-swift.struct

What version of xcode and swift are you building with?

case "AllowBluetoothA2DP":
if category == .playAndRecord {
options.insert(.allowBluetoothA2DP)
Expand Down Expand Up @@ -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) {
Expand Down