This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Repository navigation
[shared_preferences] Merge iOS and macOS implementations - #6920
Merged
stuartmorgan-g merged 15 commits intoJan 10, 2023
Merged
stuartmorgan-g merged 15 commits into
stuartmorgan-g merged 15 commits into
This merges
shared_preferences_iosandshared_preferences_macosinto a newshared_preferences_foundationsthat replaces both of those packages, as described in flutter/flutter#117941:shared_preferences_macostoshared_prefrences_foundation, since the macOS implementation is the Swift implementation, which is what we want to use going forward.darwin/in anticipation of Allow iOS and macOS plugins to share darwin directory flutter/flutter#115337), adjusting the code and podspec slightly to make it iOS-compatibleflutter create-ing a new iOS example and wiring it up to use the existing native unit test. (This was done instead of moving the example fromshared_preferences_iossince it seemed better to have the example be in Swift as well now.)shared_preferences_ios.Once this lands and has been published, a follow-up will update
shared_preferencesto use this new package instead of the other two, and the old ones will be marked as deprecated on pub.dev.Part of flutter/flutter#117941
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).