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 #204

Closed
5 of 11 tasks
gerardopar opened this issue Nov 5, 2024 · 1 comment
Closed
5 of 11 tasks

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

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

Comments

@gerardopar
Copy link

gerardopar commented Nov 5, 2024

Plugin(s)

  • Barcode Scanning
  • Face Detection
  • Face Mesh Detection
  • Selfie Segmentation
  • Translation

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

Expected 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

I close this as duplicate of capawesome-team/capacitor-firebase#750

@robingenz robingenz closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
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