feat!: add support for Swift Package Manager (SPM)#330
Open
feat!: add support for Swift Package Manager (SPM)#330
Conversation
Co-authored-by: Muhammad Rehan <mrehan.official@gmail.com>
Contributor
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for Swift Package Manager (SPM).
Changes
Includes previously approved/merged PRs:
Note
Medium Risk
Medium risk because it refactors CI workflows and sample app build/distribution logic (including Firebase/fastlane inputs and Slack notifications), which can break release/PR build pipelines if misconfigured.
Overview
Adds SPM-based sample app support and shifts CI to treat
apps/flutter_sample_spmas the primary build target, with an additionalflutter_sample_cocoapodsapp used to verify CocoaPods compatibility.Refactors GitHub Actions workflows to build sample apps via a parameterized reusable workflow (per-app inputs, conditional Firebase distribution, and Slack notifications only for the primary app), updates PR build comments accordingly, and keeps iOS native SDK auto-update in sync by updating
ios/customer_io/Package.swiftalongsidepubspec.yaml.Cleans up sample app structure by introducing
apps/.gitignore,apps/README.md, analyzer excludes forapps/scripts/**, and removing legacyapps/amiapp_flutterproject scaffolding while adding SPM-related ignores in the root.gitignore.Reviewed by Cursor Bugbot for commit 26f7f58. Bugbot is set up for automated code reviews on this repo. Configure here.