Skip to content

Release 4.0.0

Compare
Choose a tag to compare
@zxcpoiu zxcpoiu released this 26 May 01:27
· 25 commits to master since this release

BREAKING CHANGE:

Remove permission related function, users are responsible to check permissions before using this lib.
ex: using react-native-permissions

Note For Android Permissions:

you may need:

RECORD_AUDIO, MODIFY_AUDIO_SETTINGS, VIBRATE, WAKE_LOCK

For BLUETOOTH, on android api targeting 31 (android 12), you should ask new bluetooth permission BLUETOOTH_CONNECT instead BLUETOOH ( before 31 )

below is the example AndroidManifest.xml for bluetooth

    <!-- Android 12 (API 31): splits bluetooth permissions into detailed
    see: https://developer.android.com/guide/topics/connectivity/bluetooth/permissions -->
    <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
    <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

Main Change:

  • support newer api
  • refine some thread issues
  • performance improvements

Change Log:

ffdb9b3 fix: make bluetooth and proximity manager runs on the main thread ( zxcpoiu 2022-05-26 07:48:50 +0800)
87fda16 android: support check bluetooth permission for api 31 ( zxcpoiu 2022-05-01 00:31:25 +0800)
5500e34 Updated readme to better reflect current status. ( lahsuk 2021-12-14 16:22:00 +0545)
bbad44c Add android get wired headset. ( lahsuk 2021-12-14 16:17:56 +0545)
73dfce9 android: refine OnAudioFocusChangeListener ( zxcpoiu 2021-12-09 12:22:58 +0800)
82778ca android: expose request/abandon audio focus ( zxcpoiu 2021-12-09 12:15:34 +0800)
f29b1f9 android: AudioFocus api compatible ( zxcpoiu 2021-12-09 02:50:05 +0800)
7a48b8b typo correction: changed remote to remove (#180) ( javatutorials2016 2021-12-07 15:02:48 -0500)
43ac15b android: use new api of AudioFocus and do not using compat ( zxcpoiu 2021-12-08 04:01:25 +0800)
5f05bbd Expose proximity functions (#179) ( lahsuk 2021-12-03 13:03:33 +0545)
f9b2c97 #174 Fix audio category restore for setForceSpeakerphoneOn as setting audio mode would have no effect on invalid audio category. ( Roman Melnyk 2021-11-16 15:51:23 +0200)
54bd8d4 android: deprecate setAudioStreamType in favor of AudioAttributes ( zxcpoiu 2021-11-10 17:55:52 +0800)
8cdac83 android: fix startRingtone use handler inside thread without looper ( zxcpoiu 2021-11-10 02:12:58 +0800)
c0fa1f5 android: bump android build/compile version to match latest RN ( zxcpoiu 2021-11-10 00:20:05 +0800)
b32ae30 misc: change npm url in package.json ( zxcpoiu 2021-11-10 00:16:59 +0800)
a6e7672 remove permission related codes ( zxcpoiu 2021-01-23 03:43:05 +0800)
cce2a34 fix: Sometimes startRingtone() would throw java.lang.UnsupportedOperationException ( Ricardo Corrie 2021-09-27 10:55:44 -0400)
8eb2b45 On android, there is a significant performance bottleneck when calling startRingtone and stopRingtone. ( Ricardo Corrie 2021-08-27 22:29:39 -0400)
784fe80 fix: Xcode 12 compatibility ( nvojnovic 2021-03-02 11:02:37 +0100)