Skip to content

feat(secure_storage): add Swift Package Manager support to amplify_secure_storage#6848

Open
ekjotmultani wants to merge 2 commits intomainfrom
feat/spm-amplify-secure-storage
Open

feat(secure_storage): add Swift Package Manager support to amplify_secure_storage#6848
ekjotmultani wants to merge 2 commits intomainfrom
feat/spm-amplify-secure-storage

Conversation

@ekjotmultani
Copy link
Copy Markdown
Member

@ekjotmultani ekjotmultani commented Apr 6, 2026

Issue #, if available:
#6796
#6838

Description of changes:
Cocoapods will be read only soon, this PR brings the secure storage package into SPM. Following this guide from Flutter

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ekjotmultani ekjotmultani force-pushed the feat/spm-amplify-secure-storage branch from 47c4ea1 to acbbf7e Compare April 6, 2026 22:35
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.22%. Comparing base (e19b69c) to head (68f1923).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6848   +/-   ##
=======================================
  Coverage   43.22%   43.22%           
=======================================
  Files          99       99           
  Lines        7769     7769           
  Branches     3400     3400           
=======================================
  Hits         3358     3358           
  Misses       4411     4411           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…cure_storage

Migrate amplify_secure_storage iOS and macOS plugins to support Swift
Package Manager while maintaining backward compatibility with CocoaPods.

Changes:
- Add Package.swift for both iOS and macOS platforms
- Move sources from Classes/ to amplify_secure_storage/Sources/amplify_secure_storage/
- Move Obj-C public headers to include/amplify_secure_storage/ (iOS)
- Move PrivacyInfo.xcprivacy to SPM Sources directory
- Update podspec source_files and resource_bundles paths
- Update Pigeon swiftOut path for new directory structure
- Update Obj-C import path for relocated header
- Add .build/ and .swiftpm/ to .gitignore"
Revert the example app's project.pbxproj and xcscheme changes that
were auto-generated by Flutter's SPM migration. These changes cause
CI failures when SPM is not enabled on the runner, since the
FlutterFramework ephemeral package doesn't exist. Flutter will
migrate the example project on-the-fly when SPM is enabled."
@ekjotmultani ekjotmultani force-pushed the feat/spm-amplify-secure-storage branch from 8fbca1f to 68f1923 Compare April 10, 2026 21:32
@ekjotmultani ekjotmultani marked this pull request as ready for review April 13, 2026 15:20
@ekjotmultani ekjotmultani requested a review from a team as a code owner April 13, 2026 15:20
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.

3 participants