Added support for Android 12. This means the new functionality is as follows...
1) If AudioSwitch is used on an Android 12 device and the BLUETOOTH_CONNECT permission has not been granted, it will no longer crash and instead just fail to use bluetooth
2) If AudioSwitch is used on an Android 12 device and BLUETOOTH_CONNECT permission has been granted, it will work appropriately
3) If AudioSwitch is used on an Android 11 or earlier device, it will behave as it did before.
Also got test cases to run again on Android 12.
Breakdown
BluetoothHeadsetManager has been split into an interface with two implementations, one for Android 12 and greater and the legacy version.
Factory method for Instantiate a BluetoothHeadsetManager has been updated to construct the correct implementation of BluetoothHeadsetManager depending on the Android version
upgraded the AndroidX.test.{orchestrator|runner|rules} to version 1.4.1-alpha03
upgraded androidx.annotation.annotation
upgraded junit
upgraded the grade version
Validation
ran enabled test cases on both an Android 12 and pre-android 12 devices.
Modified "Ahoy" application to use AudioSwitch locally and tested on both an Android 12 and pre-Android 12 device the following cases
a) When bluetooth permission is denied
b) When bluetooth permissions is granted
c) When bluetooth is not connected
d) When bluetooth is connected
Additional Notes
Changes to Ahoy application are in a different PR.
Submission Checklist
[*] The source has been evaluated for semantic versioning changes and are reflected in gradle.properties
[*] The CHANGELOG.md reflects any feature, bug fixes, or known issues made in the source code
Description
Added support for Android 12. This means the new functionality is as follows... 1) If AudioSwitch is used on an Android 12 device and the BLUETOOTH_CONNECT permission has not been granted, it will no longer crash and instead just fail to use bluetooth 2) If AudioSwitch is used on an Android 12 device and BLUETOOTH_CONNECT permission has been granted, it will work appropriately 3) If AudioSwitch is used on an Android 11 or earlier device, it will behave as it did before.
Also got test cases to run again on Android 12.
Breakdown
Validation
Additional Notes
Changes to Ahoy application are in a different PR.
Submission Checklist
gradle.properties
CHANGELOG.md
reflects any feature, bug fixes, or known issues made in the source code