Skip to content

feat: Add Swift Package Manager (SPM) support#197

Open
vasu-nageshri-simform wants to merge 1 commit into
masterfrom
feat/swift-package-manager-support
Open

feat: Add Swift Package Manager (SPM) support#197
vasu-nageshri-simform wants to merge 1 commit into
masterfrom
feat/swift-package-manager-support

Conversation

@vasu-nageshri-simform

Copy link
Copy Markdown

Description

Migrate iOS native sources from Classes/ to the SPM-standard layout (ios/flutter_credit_card/Sources/flutter_credit_card/) so Flutter 3.24+ can resolve this plugin via Swift Package Manager without CocoaPods.

  • Add ios/flutter_credit_card/Package.swift with swift-tools-version 5.9
  • Move all Swift sources to ios/flutter_credit_card/Sources/flutter_credit_card/
  • Update podspec source_files path to the new location; drop deprecated i386 simulator exclusion; bump min iOS from 11.0 → 12.0 (matches SPM target)
  • CocoaPods path continues to work unchanged for apps not yet on SPM

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Closes #196

@vasu-nageshri-simform vasu-nageshri-simform force-pushed the feat/swift-package-manager-support branch from 8ef3e96 to c1d0c79 Compare June 10, 2026 07:49
@vasu-nageshri-simform vasu-nageshri-simform changed the title feat: add Swift Package Manager (SPM) support for iOS feat: Add Swift Package Manager (SPM) support for iOS Jun 10, 2026
Migrate iOS native sources from Classes/ to the SPM-standard layout
(ios/flutter_credit_card/Sources/flutter_credit_card/) so Flutter 3.24+
can resolve this plugin via Swift Package Manager without CocoaPods.

- Add ios/flutter_credit_card/Package.swift with swift-tools-version 5.9
- Move all Swift sources to ios/flutter_credit_card/Sources/flutter_credit_card/
- Update podspec source_files path to the new location; drop deprecated
  i386 simulator exclusion; bump min iOS from 11.0 → 12.0 (matches SPM target)
- CocoaPods path continues to work unchanged for apps not yet on SPM

Closes #196
@vasu-nageshri-simform vasu-nageshri-simform force-pushed the feat/swift-package-manager-support branch from c1d0c79 to e9c7a37 Compare June 10, 2026 07:52
@vasu-nageshri-simform vasu-nageshri-simform changed the title feat: Add Swift Package Manager (SPM) support for iOS feat: Add Swift Package Manager (SPM) support Jun 10, 2026
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.

Add Swift Package Manager support

1 participant