chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
791 stars 479 forks source link

[Feature]: Convert To Federated Plugin #824

Closed FXschwartz closed 8 months ago

FXschwartz commented 8 months ago

What is your feature request?

Converting flutter_blue_plus to a federated plugin would greatly help implementing support for additional platforms.

@chipweinberger I know you've voiced concerns about the additional complexity of this but I think even if we decided to not endorse additional platforms, converting this to a federated plugin would help other developers create non endorsed platform integration.

Adding support for additional platforms through a fork in the current implementation while would still be beneficial would be extremely risky to use in production applications as it could break at any moment.

Parts of this have been discussed in #6

chipweinberger commented 8 months ago

Thanks for filing. I don't plan to switch to federated.

More importantly, no one is working on Windows or Linux support. So switching to federated would just be a waste of my time.

If people want other platforms, they should just use a platform channel, as discussed in #6.

Windows example:

flutter::MethodChannel<EncodableValue>>(
          registrar->messenger(), "flutter_blue_plus/methods",
          &flutter::StandardMethodCodec::GetInstance());

But again, no one is working on Windows & Linux support.