Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Capacitor-firebase + Capacitor-mlkit version conflicts #750

Closed
5 of 17 tasks
gerardopar opened this issue Nov 5, 2024 · 5 comments
Closed
5 of 17 tasks

bug: Capacitor-firebase + Capacitor-mlkit version conflicts #750

gerardopar opened this issue Nov 5, 2024 · 5 comments
Labels
bug/fix Something isn't working needs: triage

Comments

@gerardopar
Copy link

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Functions
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Version

6.2.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

We are currently using the capacitor-mlkit and capacitor-firebase plugins in our app.

With the following versions, everything works smoothly:

"@capacitor-firebase/authentication": "^6.1.0",
"@capacitor-mlkit/barcode-scanning": "6.1.0",
"firebase": "^10.14.1"

However, we recently upgraded to the latest versions (6.2.0) to address an issue with Google login on iOS. After the update, versioning conflicts emerged between the plugins:

"@capacitor-firebase/authentication": "^6.2.0",
"@capacitor-mlkit/barcode-scanning": "6.2.0",
"firebase": "^11.0.1"

Error Details:

The issue stems from a version incompatibility with GoogleUtilities/Environment. Specifically:

  • FirebaseAuth requires GoogleUtilities/Environment version 8.0 or above.
  • GoogleMLKit depends on version 7.2.

This discrepancy causes CocoaPods to fail during installation. Here’s a screenshot of the error:

Screenshot 2024-11-05 at 9 56 42 AM

Is there a recommended approach to resolve these conflicts, or are there planned updates to improve compatibility across these dependencies?

Thank you!

Expected behavior

We expected the version bumps to work as expected

Reproduction

https://github.com

Steps to reproduce

the following pkgs should cause the issue we are running into

"@capacitor-firebase/authentication": "^6.2.0",
"@capacitor-mlkit/barcode-scanning": "6.2.0",
"firebase": "^11.0.1",

Other information

No response

Capacitor doctor

run pnpm i 
run npx cap sync 

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@gerardopar gerardopar added bug/fix Something isn't working needs: triage labels Nov 5, 2024
@robingenz
Copy link
Member

Please install the latest version of the ML Kit Barcode Scanning plugin using the next tag:

npm install @capacitor-mlkit/barcode-scanning@next
npx cap sync

This is due to the following issue: capawesome-team/capacitor-mlkit#179.

@gerardopar
Copy link
Author

Please install the latest version of the ML Kit Barcode Scanning plugin using the next tag:

npm install @capacitor-mlkit/barcode-scanning@next
npx cap sync

This is due to the following issue: capawesome-team/capacitor-mlkit#179.

@robingenz hey hey, thanks for the response ... will try shortly & report any changes 👍🏽

@gerardopar
Copy link
Author

gerardopar commented Nov 5, 2024

@robingenz

the following fixed the package version conflicts

  1. installed @capacitor-mlkit/barcode-scanning@next with the next tag
    • 7.0.0-next.1
  2. deleted my Podfile.lock
  3. ran pod install
  4. ran npx cap sync

this allowed me to build the app with the expected packages

strangely i started encountering the follow on simulators running ios 18.1 when i try using google login. The google login modal shows up but is blank & freezes the app.

App works as expected on versions running ios 17

Screenshot 2024-11-05 at 2 41 48 PM

these are my packages

"@capacitor-firebase/authentication": "^6.2.0",
"@capacitor-mlkit/barcode-scanning": "7.0.0-next.1",

@gerardopar
Copy link
Author

it seems like SMS login is also having this issue

passwordless & apple login seem to be working as expected

@robingenz
Copy link
Member

Please create a new issue for that. I close this issue since the version conflict is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Something isn't working needs: triage
Projects
None yet
Development

No branches or pull requests

2 participants