diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a058620..5e5116ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 1.8.6 +* dart: rename BluetoothDevice.id -> remoteId +* dart: rename uuid -> characteristicUuid / serviceUuid / descriptorUuid +* dart: rename FlutterBluePlus.name -> adapterName +* dart: rename BluetoothDevice.name -> localName +* dart: rename FlutterBluePlus.state -> adapterState +* dart: rename BluetoothDevice.state -> connectionState +* iOS: add support for autoReconnect (iOS 17 only) ## 1.8.5 * iOS: check for nil peripheral. (regression in 1.8.3) diff --git a/lib/src/bluetooth_device.dart b/lib/src/bluetooth_device.dart index 96c6e647..b4fcf532 100644 --- a/lib/src/bluetooth_device.dart +++ b/lib/src/bluetooth_device.dart @@ -310,7 +310,10 @@ class BluetoothDevice { @override bool operator ==(Object other) => - identical(this, other) || other is BluetoothDevice && runtimeType == other.runtimeType && id == other.id; + identical(this, other) || + (other is BluetoothDevice && + runtimeType == other.runtimeType && + remoteId == other.remoteId); @override int get hashCode => remoteId.hashCode; diff --git a/pubspec.yaml b/pubspec.yaml index ad1ccd33..d3ab2051 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_blue_plus description: Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android and iOS -version: 1.8.5 +version: 1.8.6 homepage: https://github.com/boskokg/flutter_blue_plus environment: