Skip to content

feat(ios): migrate to Swift Package Manager - #3

Merged
ElectricCookie merged 5 commits into
devfrom
feat/spm-migration
Aug 14, 2026
Merged

feat(ios): migrate to Swift Package Manager#3
ElectricCookie merged 5 commits into
devfrom
feat/spm-migration

Conversation

@ElectricCookie

@ElectricCookie ElectricCookie commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds Swift Package Manager support for the iOS plugin (ios/mtrust_barcode_kit/), removes the dead ObjC bridge, and keeps CocoaPods compatibility via mtrust_barcode_kit.podspec
  • Drops CocoaPods from the example app and wires SPM integration in the Xcode project/scheme
  • Bumps native_device_orientation and permission_handler, raises Flutter SDK to >=3.44.0, and aligns iOS module naming with the mtrust_barcode_kit Dart package

Test plan

  • flutter build ios --no-codesign in example/ (SPM-only, no Podfile)
  • CI PR workflow passes on macOS
  • Smoke test barcode scanning on a physical iOS device
  • Smoke test OCR toggle on a physical iOS device
  • Verify pod lib lint ios/mtrust_barcode_kit.podspec --allow-warnings for CocoaPods consumers

Add SPM package layout, remove ObjC bridge, bump iOS plugin deps,
and drop CocoaPods from the example app.
Rename iOS SPM layout and podspec for emdgroup repo compatibility.
Integrate dev changes including iOS camera fallback fix and
Android package rename while keeping SPM migration work.
@ElectricCookie
ElectricCookie changed the base branch from main to dev August 14, 2026 12:55
Replace prepare-flutter which pins 3.24.3 with subosito/flutter-action
to satisfy the >=3.44.0 SDK constraint required for iOS SPM support.
- Deleted the azure_pipeline.yml file as it is no longer needed.
- Updated the equatable dependency version from ^2.0.5 to ^2.1.0.
- Modified _PerspectiveMatrix class to extend Equatable instead of EquatableMixin for better compatibility.
@ElectricCookie
ElectricCookie merged commit 90a447f into dev Aug 14, 2026
4 checks passed
@ElectricCookie
ElectricCookie deleted the feat/spm-migration branch August 14, 2026 13:11
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.

1 participant