Skip to content

feat!: add support for Swift Package Manager (SPM)#330

Merged
mrehan27 merged 8 commits intomainfrom
feature/spm-support
Apr 10, 2026
Merged

feat!: add support for Swift Package Manager (SPM)#330
mrehan27 merged 8 commits intomainfrom
feature/spm-support

Conversation

@mrehan27
Copy link
Copy Markdown
Contributor

@mrehan27 mrehan27 commented Apr 8, 2026

Summary

This PR adds support for Swift Package Manager (SPM).

Changes

Includes previously approved/merged PRs:


Note

Medium Risk
Moderate risk because it rewires CI build/release workflows and introduces a new SPM-based iOS build path; failures would primarily impact automation and sample app packaging rather than the core plugin runtime.

Overview
Adds two new sample apps under apps/flutter_sample_spm (primary, SPM-based iOS) and flutter_sample_cocoapods (secondary)—and removes the old apps/amiapp_flutter project.

Updates GitHub Actions to build/test these apps via a parameterized reusable-build-sample-apps.yml, run dependency installs across apps/flutter_sample_*, and adjust PR commenting/release workflows to treat SPM as the primary distributable while using the CocoaPods app mainly for compatibility verification.

Improves automation/docs: auto-update workflow now syncs ios/customer_io/Package.swift with pubspec.yaml native iOS version, adds SPM-related ignores, and excludes apps/scripts/** from Dart analysis.

Reviewed by Cursor Bugbot for commit dfa4c27. Bugbot is set up for automated code reviews on this repo. Configure here.

@mrehan27 mrehan27 self-assigned this Apr 8, 2026
@mrehan27 mrehan27 requested a review from a team as a code owner April 8, 2026 10:54
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

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.


  • flutter_sample_spm: 330.8.0 (29597271)

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit dfa4c27. Configure here.

@mrehan27 mrehan27 merged commit 8abff81 into main Apr 10, 2026
22 checks passed
@mrehan27 mrehan27 deleted the feature/spm-support branch April 10, 2026 16:17
github-actions bot pushed a commit that referenced this pull request Apr 10, 2026
## [4.0.0](3.5.0...4.0.0) (2026-04-10)

### ⚠ BREAKING CHANGES

* add support for Swift Package Manager (SPM) (#330)

### Features

* add support for Swift Package Manager (SPM) ([#330](#330)) ([8abff81](8abff81))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants