Closed MoralCode closed 1 year ago
Fully abstracting the bluetooth library seems like it may not be especially useful and may increase debugging complexity if clients are allowed to use different bluetooth backends what may have different bugs.
in the future the interaction with the bluetooth library may be beneficial to abstract but for now there doesnt seem to be enough value to justify the additional effort.
given the current state of flutter bluetooth libraries (TL;DR "not a lot of great, well-maintained options") this ability to swap between them may be something that could help to abstract into another library for other bluetooth projects
This would allow the specific bluetooth library in use to potentially be swapped out and/or made the responsibility of the application, but also may provide more surface for bugs and/or issue reports as people will likely use different bluetooth libraries
Some Bluetooth backends to consider when designing such an interface: