Files
universal_ble/pubspec.yaml
T
Raphael Smith f4b197f8ae Add requestConnectionPriority support (#221)
* feat: add requestConnectionPriority

- Add BleConnectionPriority enum (balanced, highPerformance, lowPower)
- Add BleCapabilities.supportsConnectionPriorityApi flag
- Implement on Android via BluetoothGatt.requestConnectionPriority()
- Throw notSupported on iOS, macOS, Windows, Linux, and Web
- Update pigeon definition and regenerate platform channel files
- Bump version 1.2.0 -> 1.3.0

* fix: improve requestConnectionPriority implementation

- Remove redundant BleCapabilities guard in Dart layer (native handles it)
- Add BleConnectionPriority Kotlin enum mirroring Dart enum
- Map to explicit Android SDK constants via when expression
- Add firstOrNull with ILLEGAL_ARGUMENT for unknown priority values
- Add catch (e: Exception) block for broader error handling
- Fix enum doc comment (throws belongs on method, not enum)
- Remove stale capability check guidance from docs and README

---------

Co-authored-by: aqeel-bmec-co <aqeel@bmec.co>
Co-authored-by: aqeel-bmec-co <85945830+aqeel-bmec-co@users.noreply.github.com>
2026-04-01 21:15:39 +02:00

57 lines
1.2 KiB
YAML

name: universal_ble
description: A cross-platform (Android/iOS/macOS/Windows/Linux/Web) Bluetooth Low Energy (BLE) plugin for Flutter
version: 1.3.0
homepage: https://navideck.com
repository: https://github.com/Navideck/universal_ble
issue_tracker: https://github.com/Navideck/universal_ble/issues
documentation: https://github.com/Navideck/universal_ble#readme
funding:
- https://github.com/sponsors/Navideck
topics:
- bluetooth-low-energy-ble
- core-bluetooth
- windows-devices-bluetooth
- bluez
- web-bluetooth
platforms:
android:
ios:
linux:
macos:
web:
windows:
environment:
sdk: ">=3.1.3 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.8
flutter_web_bluetooth: ^1.1.0
bluez: ^0.8.3
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
pigeon: ^26.1.4
flutter:
plugin:
platforms:
android:
package: com.navideck.universal_ble
pluginClass: UniversalBlePlugin
ios:
pluginClass: UniversalBlePlugin
sharedDarwinSource: true
macos:
pluginClass: UniversalBlePlugin
sharedDarwinSource: true
windows:
pluginClass: UniversalBlePluginCApi