Skip to content

Releases: twilio/audioswitch

1.2.0

04 Jun 07:08
8112473
Compare
Choose a tag to compare

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

25 May 06:54
c6d9f3b
Compare
Choose a tag to compare

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

22 Feb 02:31
Compare
Choose a tag to compare

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

17 Jun 18:24
c380dae
Compare
Choose a tag to compare

1.1.5 (June 17, 2022)

Bug Fixes

  • Fixed issue with lingering EnableBluetoothSCOJob object causing spurious AudioDeviceChangeListener calls after routing switch.

1.1.4

04 Jan 21:32
339e8e0
Compare
Choose a tag to compare

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 durring audioswitch.stop(..) if bluetooth permissions were granted after 'AudioSwitch.start()`.

1.1.3

05 Nov 16:52
b994780
Compare
Choose a tag to compare

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

24 Feb 21:45
302bbc8
Compare
Choose a tag to compare

Enhancements

  • Updated the library to use Android Gradle Plugin 4.1.1
  • Now published to MavenCentral

1.1.1

20 Oct 20:34
0f0ab8e
Compare
Choose a tag to compare

Enhancements

1.1.0

08 Oct 21:24
d799496
Compare
Choose a tag to compare

Enhancements

  • Added a constructor parameter named preferredDeviceList to configure the order in which audio devices are automatically selected and activated when selectedAudioDevice is null.
val audioSwitch = AudioSwitch(application, preferredDeviceList = listOf(Speakerphone::class.java, BluetoothHeadset::class.java))
  • Updated compileSdkVersion and targetSdkVersion to Android API version 30.

1.0.1

11 Sep 18:02
3a1cf4a
Compare
Choose a tag to compare

Enhancements

  • Upgraded Kotlin to 1.4.0.
  • Improved the Bluetooth headset connection and audio change reliability by registering the BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED and BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED intent actions instead of relying on android.bluetooth.BluetoothDevice and android.media.AudioManager intent actions.
  • The context provided when constructing AudioSwitch can now take any context. Previously the ApplicationContext was required.

Bug Fixes

  • Added the internal access modifier to the SystemClockWrapper class since it is not meant to be exposed publicly.