Add SPM support to powersync_flutter_libs
#325
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For native dependencies on Apple platforms, Flutter is migrating to Swift package manager to replace CocoaPods.
SPM support is experimental at the moment (users have to opt-in with
flutter config --enable-swift-package-manager
). But since we can support both inpowersync_flutter_libs
, we probably should:So, this PR:
ios
andmacos
podspecs forpowersync_flutter_libs
into a singledarwin
directory for simplicity.powersync_flutter_libs
depending on our core extension dependency.demos/supabase-todolist-drift
to use SPM exclusively.demos/supabase-todolist
to use CocoaPods (and explicitly opt out of SPM) so that we can keep testing both variants ofpowersync_flutter_libs
.I ran both updated projects on macOS and an iOS simulator for verification.