Skip to content

Commit

Permalink
[Improve] update scan comments for withKeywords
Browse files Browse the repository at this point in the history
  • Loading branch information
chipweinberger committed May 9, 2024
1 parent 1726456 commit 90001e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/flutter_blue_plus.dart
Expand Up @@ -240,7 +240,8 @@ class FlutterBluePlus {
withServiceData.isNotEmpty;

// Note: `withKeywords` is not compatible with other filters on android
// because it is implemented in custom fbp code, not android code
// because it is implemented in custom fbp code, not android code, and the
// android 'name' filter is only available as of android sdk 33 (August 2022)
assert(!(Platform.isAndroid && withKeywords.isNotEmpty && hasOtherFilter),
"withKeywords is not compatible with other filters on Android");

Expand Down

0 comments on commit 90001e1

Please sign in to comment.