Skip to content

Commit 4b5ed35

Browse files
Enable extended advertising on android (#594)
RxAndroidBle 1.16.0 now supports enabling extended advertising (dariuszseweryn/RxAndroidBle@4371b78) flutter_reactive_ble already supports extended advertising with iOS, so no changes are needed.
1 parent 04384dd commit 4b5ed35

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/reactive_ble_mobile/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protobuf {
9595

9696
dependencies {
9797
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
98-
implementation 'com.polidea.rxandroidble2:rxandroidble:1.13.0'
98+
implementation 'com.polidea.rxandroidble2:rxandroidble:1.16.0'
9999
implementation 'com.google.protobuf:protobuf-javalite:3.18.1'
100100
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'
101101
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'

packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/ble/ReactiveBleClient.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ open class ReactiveBleClient(private val context: Context) : BleClient {
7575
return rxBleClient.scanBleDevices(
7676
ScanSettings.Builder()
7777
.setScanMode(scanMode.toScanSettings())
78+
.setLegacy(false)
7879
.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES)
7980
.setShouldCheckLocationServicesState(requireLocationServicesEnabled)
8081
.build(),

0 commit comments

Comments
 (0)