Skip to content

[webview_flutter_wkwebview] Add Swift Package Manager compatibility to webview_flutter_wkwebview #146917

@vashworth

Description

@vashworth

Prerequisites:


Follow "Converting an existing Objective-C Flutter Plugin to a Swift Package" instructions to make webview_flutter_wkwebview 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=webview_flutter_wkwebview

// 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
rm -rf all_packages

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

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

// Build example with Swift Package Manager
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --swift-package-manager --packages=webview_flutter_wkwebview

// Run native tests with Swift Package Manager
dart run script/tool/bin/flutter_plugin_tools.dart native-test --ios --packages=webview_flutter_wkwebview

// Create, build, delete an app that has a dependency on all packages  with Swift Package Manager
.ci/scripts/create_all_packages_app.sh
.ci/scripts/build_all_packages_app.sh ios debug --no-codesign
rm -rf all_packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: pluginsSupport for writing, building, and running plugin packagesp: webviewThe WebView pluginplatform-iosiOS applications 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