Fix iOS dependency version conflicts with Firebase and Google Sign-In packages #84
+11
−108
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.
This PR resolves critical iOS dependency version conflicts that prevent the card_scanner plugin from being used alongside Firebase and Google Sign-In packages in Flutter applications.
Problem
Users were encountering CocoaPods dependency resolution failures when trying to use card_scanner with other popular Flutter plugins:
Solution
Updated the iOS podspec to use modern, compatible dependency versions:
~> 3.2.0for compatibility with current Firebase packagesChanges
ios/card_scanner.podspec: Updated dependency versions and build configurationspubspec.yaml: Bumped version to 1.0.3CHANGELOG.md: Documented all changesexample/ios/Podfile.lock: Removed to force clean dependency resolutionTesting
The changes maintain full API compatibility with existing iOS Swift code while resolving version conflicts. The updated GoogleMLKit version uses the same
TextRecognizer.textRecognizer()API that the plugin's iOS implementation relies on.Impact
This fix enables developers to use card_scanner alongside Firebase Auth, Firebase Messaging, Google Sign-In, and other popular Flutter plugins without encountering dependency resolution errors during iOS builds.
Closes #[issue_number]
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.