Skip to content

Releases: dotintent/react-native-ble-plx

2.0.1

30 Jun 10:56
c4fef4c
Compare
Choose a tag to compare
  • Fixed onDisconnected() callback on Android
  • Fixed possibility of wrong characteristics being used on Android if they shared the same UUID

2.0.0

16 Apr 07:55
10d3be8
Compare
Choose a tag to compare
  • Update direct dependency to Multiplatform Ble Adapter
  • Remove support for RN version < 0.60
  • Fixed Typescript callbackType type definition.

1.1.0

12 Sep 17:26
Compare
Choose a tag to compare
  • Add support for descriptors.
  • Fix XCode 11 compilation error.

1.0.3

22 Feb 12:42
Compare
Choose a tag to compare
  • Integrated Travis CI to test library and check its integration with multiple RN versions.
  • Library's build.gradle prefers buildToolsVersion, compileSdkVersion & targetSdkVersion specified in rootProject.
  • Added Typescript definitions.
  • Removed outdated example project.
  • Updated dev dependencies and the README file.

1.0.2

04 Feb 11:10
Compare
Choose a tag to compare
  • Fix build error due to RN 58 changes.
  • Allow registering for notifications and indications on Android despite CCC descriptor being absent.

1.0.1

04 Feb 11:08
Compare
Choose a tag to compare
  • Fix possible ConcurrentModificationException in Android BleModule.
  • Workaround for when canSendWriteWithoutResponse would return false on iOS.
  • Fixed low severity vulnerabilities reported by npm in development dependencies.

1.0.0

04 Feb 11:07
Compare
Choose a tag to compare

Breaking changes

  • Moved to Gradle plugin 3.1.4 and Gradle wrapper to 4.4 (RN 57+ required) on Android.

Other:

  • Added requestConnectionPriority function which increases or decreases connection interval setting on Android Lollipop devices or above.
  • Added connectionPriority option to connection options which calls above function just after the connection is established.
  • Added scanMode and callbackType properties to scan options for Android.
  • Added enable and disable functions to enable/disable Bluetooth on Android.
  • Added optional transactionId argument to discoverAllServicesAndCharacteristicsForDevice.
  • Added errorCodesToMessagesMapping property to BleManagerOptions to be able to override custom BleError messages.
  • Updated cancelDeviceConnection documentation.
  • Don't call CBCentralManager's stopScan, when Bluetooth is powered off in internal implementation on iOS.
  • Clean iOS compiler warnings on XCode10.
  • Changed scan record logging from Debug to Verbose on iOS.
  • Updated writeWithoutResponse implementation on iOS to use canSendWriteWithoutResponse if available starting from iOS 11.
  • Updated library's development dependencies.
  • Fixed cyclic import warnings.
  • Fixed notification/indication subscription moment. Events are monitored before CCC is written on Android.

v0.10.0

04 Feb 11:06
Compare
Choose a tag to compare

Breaking changes:

  • Deprecated old build system. Carthage is not required anymore. To fix your current project please do following steps:
  1. Add empty Swift file if you don't have at least one:
    • Select File/New/File...
    • Choose Swift file and click Next.
    • Name it however you want, select your targets and create it.
    • Accept to create Objective-C bridging header.
  2. Remove copy-frameworks script if you don't have any other dependency requiring it:
    • Go to Your Target / Build Phases
    • Remove run script.

Other:

  • Fix warning when no listeners were attached and events were emitted.
  • Show error.message properly. Make sure that invalid errorCodes from implementation side won't trigger another error during construction.
  • Property ServiceUUID is properly propagated to IncludedServicesDiscoveryFailed's error message.
  • Add missing deviceServicesNotDiscovered implementation on Android.

v0.9.1

04 Feb 11:00
Compare
Choose a tag to compare
  • Updated binary frameworks for XCode 9.4.

v0.9.0

06 Apr 11:43
Compare
Choose a tag to compare

0.9.0

Breaking changes:

  • Use error.errorCode == BleErrorCode.OperationCancelled instead of error.message == 'Cancelled'
  • Use error.errorCode == BleErrorCode.BluetoothManagerDestroyed instead of error.message == 'Destroyed'
  • Reverted implementation of monitorCharacteristicForDevice to properly write to descriptor when last listener is unsubscribed on Android. If you expect to get new notifications as soon as you subscribe for them please use
    version 0.8 for the time being, as regression is expected.

Other:

  • All API calls return BleError instance in case of errors which contains additional fields:
    • errorCode - returns API independent and stable error code (defined in BleErrorCode).
    • attErrorCode (optional) - platform independent ATT error code.
    • iosErrorCode (optional) - iOS specific error code.
    • androidErrorCode (optional) - Android specific error code.
    • reason (optional) - platform specific message.
  • Updated BleModuleInterface type to fix flow errors related to usage.
  • Added refreshGatt option to connectToDevice function.
  • Parse short localName advertisement data type on Android.
  • Don't emit state changes when BLE is not supported.
  • Added devices and connectedDevices functions.
  • Fixed iOS issue related to requiresMainQueueSetup.
  • Added timeout option to connectToDevice.

Docs:

  • Updated dev dependencies to the latest ones.
  • Added Expo section to README file.
  • Added About this library section to README file.
  • Updated Wiki pages