Skip to content

[url_launcher] Add Swift Package Manager compatibility to url_launcher_ios and url_launcher_macos #146916

@vashworth

Description

@vashworth

Prerequisites:


Follow "Converting an existing Swift Flutter Plugin to a Swift Package" instructions to make url_launcher_ios & url_launcher_macos 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

// Build example with CocoaPods
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --packages=url_launcher_ios
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --packages=url_launcher_macos

// Build example with swift package manager
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --swift-package-manager --packages=url_launcher_ios
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --swift-package-manager --packages=url_launcher_macos

// Run native tests
dart run script/tool/bin/flutter_plugin_tools.dart native-test --ios --packages=url_launcher_ios
dart run script/tool/bin/flutter_plugin_tools.dart native-test --macos --packages=url_launcher_macos

Metadata

Metadata

Labels

P2Important issues not at the top of the work lista: pluginsSupport for writing, building, and running plugin packagesfyi-ecosystemFor the attention of Ecosystem teamp: url_launcherPlugin to launch external applicationsplatform-iosiOS applications specificallyplatform-macBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions