Releases: twilio/audioswitch
Releases · twilio/audioswitch
1.2.0
1.2.0 (June 3, 2024)
- Updated gradle version to 8.4
- Updated gradle plugin to 8.3.1
- BluetoothHeadsetConnectionListener now can be added to AudioSwitch to notify when bluetooth device has connected or failed to connect.
- BLUETOOTH_CONNECT and/or BLUETOOTH permission have been removed and are optional now. For bluetooth support, permission have to be added to application using AudioSwitch library. If not provided bluetooth device will not appear in the list of available devices and no callbacks will be received for BluetoothHeadsetConnectionListener.
1.1.8
1.1.8 (May 25, 2023)
Bug Fixes:
- Fixed issue where some Samsung Galaxy devices (S9, S21) would not route audio through USB headset when MODE_IN_COMMUNICATION is set.
- Fixed issue where IllegalStateException would be thrown when activating selected AudioDevice shortly after starting AudioSwitch.
- Fixed issue where after stopping AudioSwitch while having an active Bluetooth device would result in permanent audio focus gain.
1.1.7
1.1.7 (Feb 21, 2023)
Bug Fixes
- Bluetooth permissions now checks for the device version in case the target version is newer
- Documentation is now available again and integration tests now pass
- Fixed issue where reported Bluetooth device list could be incorrect upon AudioSwitch restart
1.1.5
1.1.5 (June 17, 2022)
Bug Fixes
- Fixed issue with lingering EnableBluetoothSCOJob object causing spurious AudioDeviceChangeListener calls after routing switch.
1.1.4
1.1.4 (January 4, 2022)
Enhancements
- Dokka dependency upgraded such that documents can be generated successfully again.
- Updated gradle version to 7.0.2
- Updated gradle plugin to 7.0.3
Bug Fixes
- Fixed issue with spurious
AudioDeviceChangedListener
invocations. - Fixed issue where
InvalidStateException
would be triggered durringaudioswitch.stop(..)
if bluetooth permissions were granted after 'AudioSwitch.start()`.
1.1.3
1.1.3
Enhancements
- Updated the library to support Android 12.
- Updated internal dependencies related to Android 12 support
- Updated compile and target sdk to Android 12 (31)
- Updated gradle to version 4.2.1
- Snapshots are now published to the Maven Central snapshots repository
1.1.2
1.1.1
Enhancements
- Added public KDoc documentation for each release. The latest documentation release can be found at https://twilio.github.io/audioswitch/latest
1.1.0
Enhancements
- Added a constructor parameter named
preferredDeviceList
to configure the order in which audio devices are automatically selected and activated whenselectedAudioDevice
is null.
val audioSwitch = AudioSwitch(application, preferredDeviceList = listOf(Speakerphone::class.java, BluetoothHeadset::class.java))
- Updated
compileSdkVersion
andtargetSdkVersion
to Android API version30
.
1.0.1
Enhancements
- Upgraded Kotlin to
1.4.0
. - Improved the Bluetooth headset connection and audio change reliability by registering the
BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED
andBluetoothHeadset.ACTION_AUDIO_STATE_CHANGED
intent actions instead of relying onandroid.bluetooth.BluetoothDevice
andandroid.media.AudioManager
intent actions. - The context provided when constructing
AudioSwitch
can now take any context. Previously theApplicationContext
was required.
Bug Fixes
- Added the internal access modifier to the
SystemClockWrapper
class since it is not meant to be exposed publicly.