v2.0.0
2.0.0 - 2019-06-26
BREAKING CHANGES
- Changed npm package name from
react-native-audio-toolkitto@react-native-community/audio-toolkitand changed Android namespace fromcom.futurice.rctaudiotoolkittocom.reactnativecommunity.rctaudiotoolkit. These changes require users to reinstall and re-link the library to update to this version. This can be done manually or automatically during the update process via:react-native unlink react-native-audio-toolkit npm uninstall --save react-native-audio-toolkit npm install --save @react-native-community/audio-toolkit react-native link @react-native-community/audio-toolkit - Android: Remove permissions from library AndroidManifest and instead require users to add them. See SETUP.md and PR #148 for more details
Added
- Add Typescript typings
- Add ability to set playback speed for audio player
- Add ability to pause a Recorder
- Android: Add ability to record to AAC
- iOS: Added possibility to record from Bluetooth microphone
Changed
- Specify exactly which files to include in npm package
- Only import specific items from lodash to keep build size down
- Android:
build.gradlewill use SDK version settings of the root project, if available - iOS: Buffer up to 10 seconds of audio before beginning playback
Fixed
- Fixed some incorrect examples in the documentation
- Android: Guard against possible exceptions while parsing stack trace
- Android: Guard against exceptions that can appear in onHostPause
- Android: Fix build error related to defining
android:minSdkVersionin the library's AndroidManifest - Android: Fix crash on devices running API level 22 or earlier
- iOS: Fix
Player.pause()not settingPAUSEDstate