With Flutter 1.12 adding macos target as beta, it would be great to have macos support in flutter blue.
I tried this quickly and this is actually easy to add.
The whole iOS code can be reused to run on macOS
Instructions:
ios folder in a macos folderFlutterBluePlugin, change the import <Flutter/Flutter.h> to <FlutterMacOS/FlutterMacOS.h>flutter:
plugin:
platforms:
android:
package: com.pauldemarco.flutterblue
pluginClass: FlutterBluePlugin
ios:
pluginClass: FlutterBluePlugin
macos:
pluginClass: FlutterBluePlugin
can we please have this as a PR?
Since macOS will be able to run iOS apps coming this Fall I'm not sure if it's actually needed anymore...
Most helpful comment
I tried this quickly and this is actually easy to add.
The whole iOS code can be reused to run on macOS
Instructions:
iosfolder in amacosfolderFlutterBluePlugin, change the import<Flutter/Flutter.h>to<FlutterMacOS/FlutterMacOS.h>