bluetooth_le_flutter 0.2.0 copy "bluetooth_le_flutter: ^0.2.0" to clipboard
bluetooth_le_flutter: ^0.2.0 copied to clipboard

PlatformAndroid

Flutter plugin that adds the Android native build for bluetooth_le (Bluetooth Low Energy / GATT). Add it to a Flutter app and use the bluetooth_le API.

Changelog #

0.2.0 #

  • Android native fixes for bluetooth_le 0.2.0 (tracked CCCD writes, scan cleanup, hot-restart quiesce hook). connect() and startScan() return distinct codes for adapter-off (-2) and missing permission (-3) so the Dart side throws the right exception (additive; older Dart treats them as failure). Scan failures (onScanFailed) are now bridged, the backend survives R8/ProGuard and app-classloader loading, and GATT ops fail fast on bridge errors instead of hanging. Use with bluetooth_le >= 0.2.0; no API changes here.

0.1.0 #

Initial release.

  • Flutter plugin companion for bluetooth_le.
  • Provides the Android native build (Kotlin BluetoothGatt + JNI C shim via Gradle/CMake) and bundles libbluetooth_le_android.so into the host app.
  • iOS/macOS native code is built from bluetooth_le's native-assets hook; Windows/Linux need no native build.
  • Re-exports the bluetooth_le API; there is no separate Dart surface.
0
likes
160
points
123
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter plugin that adds the Android native build for bluetooth_le (Bluetooth Low Energy / GATT). Add it to a Flutter app and use the bluetooth_le API.

Homepage
Repository (GitHub)
View/report issues

Topics

#bluetooth #ble #gatt #flutter

License

BSD-3-Clause (license)

Dependencies

bluetooth_le, flutter

More

Packages that depend on bluetooth_le_flutter

Packages that implement bluetooth_le_flutter