Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine iOS and macOS plugins #158

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

pvaibhav
Copy link

@pvaibhav pvaibhav commented Aug 6, 2023

The code is 99% the same, and since Flutter 3.7.0, it can be shared.

Some UI elements e.g. `RaisedButton` were renamed. The macOS deployment
target needs to be 10.14 for recent versions of flutter's `FlutterMacOS`
pod. The Xcode project was automatically upgraded by xcode-build, and
Flutter build also makes some automatic changes to generated files even
for linux and windows platforms.
Flutter >= 3.7.0 supports sharing source code between iOS and macOS
plugins. The iOS code in `quick_blue` was removed and replaced with just
the macOS federated plugin, which was modified to support both iOS and
macOS.
The API has been modified to add a new `forServices:` named parameter to
the `QuickBlue.scan(..)` method. Pass in a list of primary service UUIDs
to only scan for devices advertising one of thoese services. Without
this, there was no way to identify a device specific to your app.

NOTE: The new parameter is only effective on Apple platforms. On Linux
it is currently ignored and on Android and Windows it will probably
crash as I've not modified the platform channel code at all.
Dependency versions also bumped (except Windows which was not
touched).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant