capawesome-team / capacitor-firebase

⚡️ Firebase plugins for Capacitor. Supports Android, iOS and the Web.
https://capawesome.io/plugins/firebase/
Apache License 2.0
398 stars 102 forks source link

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

Open gerardopar opened 11 hours ago

gerardopar commented 11 hours ago

Plugin(s)

Version

6.2.0

Platform(s)

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:

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

robingenz commented 8 hours ago

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: https://github.com/capawesome-team/capacitor-mlkit/pull/179.

gerardopar commented 8 hours ago

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 commented 6 hours ago

@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 commented 6 hours ago

it seems like SMS login is also having this issue

passwordless & apple login seem to be working as expected