Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[in_app_purchase_storekit] Add Swift Package Manager compatibility to in_app_purchase_storekit #146905

Open
1 of 2 tasks
Tracked by #146922
vashworth opened this issue Apr 17, 2024 · 0 comments · May be fixed by flutter/packages#8469
Open
1 of 2 tasks
Tracked by #146922
Labels
a: plugins Support for writing, building, and running plugin packages p: in_app_purchase Plugin for in-app purchase P2 Important issues not at the top of the work list platform-ios iOS applications specifically platform-mac Building on or for macOS specifically team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team

Comments

@vashworth
Copy link
Contributor

vashworth commented Apr 17, 2024

Prerequisites:


Follow "Converting an existing Objective-C Flutter Plugin to a Swift Package" instructions to make in_app_purchase_storekit 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=in_app_purchase_storekit
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --packages=in_app_purchase_storekit

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

// Run native tests
dart run script/tool/bin/flutter_plugin_tools.dart native-test --ios --packages=in_app_purchase_storekit
dart run script/tool/bin/flutter_plugin_tools.dart native-test --macos --packages=in_app_purchase_storekit
@vashworth vashworth added platform-ios iOS applications specifically platform-mac Building on or for macOS specifically p: in_app_purchase Plugin for in-app purchase a: plugins Support for writing, building, and running plugin packages labels Apr 17, 2024
@vashworth vashworth added P2 Important issues not at the top of the work list fyi-ecosystem For the attention of Ecosystem team team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team labels Apr 17, 2024
@stuartmorgan stuartmorgan added the triaged-ecosystem Triaged by Ecosystem team label Apr 23, 2024
@flutter-triage-bot flutter-triage-bot bot removed fyi-ecosystem For the attention of Ecosystem team triaged-ecosystem Triaged by Ecosystem team labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: plugins Support for writing, building, and running plugin packages p: in_app_purchase Plugin for in-app purchase P2 Important issues not at the top of the work list platform-ios iOS applications specifically platform-mac Building on or for macOS specifically team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team
Projects
None yet
2 participants