-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesfyi-ecosystemFor the attention of Ecosystem teamFor the attention of Ecosystem teamp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencesplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Prerequisites:
- Add Swift Package Manager as new opt-in feature for iOS and macOS #146256
- Update packages CI to test Swift Package Manager integration for plugins #146901
Follow "Converting an existing Swift Flutter Plugin to a Swift Package" instructions to make shared_preferences_foundation
plugin compatible with Swift Package Manager and CocoaPods.
To validate all is working, run the following commands
// Disable swift package manager
flutter config --no-enable-swift-package-manager
// Validate podspec
dart run script/tool/bin/flutter_plugin_tools.dart podspec-check --packages=shared_preferences_foundation
// Create, build, delete an app that has a dependency on all packages
.ci/scripts/create_all_packages_app.sh
.ci/scripts/build_all_packages_app.sh ios debug --no-codesign
.ci/scripts/build_all_packages_app.sh macos debug
rm -rf all_packages
// Build example with CocoaPods
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --packages=shared_preferences_foundation
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --packages=shared_preferences_foundation
// Run native tests
dart run script/tool/bin/flutter_plugin_tools.dart native-test --ios --packages=shared_preferences_foundation
dart run script/tool/bin/flutter_plugin_tools.dart native-test --macos --packages=shared_preferences_foundation
// Build example with swift package manager
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --swift-package-manager --packages=shared_preferences_foundation
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --swift-package-manager --packages=shared_preferences_foundation
// Run native tests
dart run script/tool/bin/flutter_plugin_tools.dart native-test --ios --packages=shared_preferences_foundation
dart run script/tool/bin/flutter_plugin_tools.dart native-test --macos --packages=shared_preferences_foundation
// Create, build, delete an app that has a dependency on all packages
.ci/scripts/create_all_packages_app.sh
.ci/scripts/build_all_packages_app.sh ios debug --no-codesign
.ci/scripts/build_all_packages_app.sh macos debug
rm -rf all_packages
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesfyi-ecosystemFor the attention of Ecosystem teamFor the attention of Ecosystem teamp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencesplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team