capawesome-team / capacitor-mlkit

⚡️ ML Kit plugins for Capacitor. Supports Android and iOS.
https://capawesome.io/plugins/mlkit/
Apache License 2.0
147 stars 46 forks source link

bug: Dependency conflict with capacitor-firebase #201

Closed vlafranca closed 3 weeks ago

vlafranca commented 4 weeks ago

Plugin(s)

Version

@next

Platform(s)

Current behavior

Hi, I just updated the to the latest version of @capacitor-firebase/authentication, @capacitor-firebase/messaging and installed the latest @next version of capacitor-mlkit but I am not able to build my project anymore, here is the pod install error I get. Seems there is a missmatch with the GoogleUtilities/Environment versions:

[error] Analyzing dependencies
        Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
        [!] CocoaPods could not find compatible versions for pod "GoogleUtilities/Environment":
        In Podfile:
        CapacitorFirebaseAuthentication/Google (from `../../node_modules/@capacitor-firebase/authentication`) was resolved to 6.2.0, which depends on
        FirebaseAuth (~> 11.0) was resolved to 11.4.0, which depends on
        GoogleUtilities/Environment (~> 8.0)

        CapacitorMlkitBarcodeScanning (from `../../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to 7.0.0-next.0, which depends on
        GoogleMLKit/BarcodeScanning (= 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
        MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleDataTransport (< 10.0, >= 9.4.1) was resolved to 9.4.1, which depends on
        GoogleUtilities/Environment (~> 7.7)

        CapacitorMlkitBarcodeScanning (from `../../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to 7.0.0-next.0, which depends on
        GoogleMLKit/BarcodeScanning (= 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
        MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0) was resolved to 7.13.3, which depends on
        GoogleUtilities/Logger (= 7.13.3) was resolved to 7.13.3, which depends on
        GoogleUtilities/Environment (= 7.13.3)

        CocoaPods could not find compatible versions for pod "GoogleUtilities/Logger":
        In Podfile:
        CapacitorMlkitBarcodeScanning (from `../../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to 7.0.0-next.0, which depends on
        GoogleMLKit/BarcodeScanning (= 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
        MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0) was resolved to 7.13.3, which depends on
        GoogleUtilities/Logger (= 7.13.3)

        CapacitorMlkitBarcodeScanning (from `../../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to 7.0.0-next.0, which depends on
        GoogleMLKit/BarcodeScanning (= 6.0.0) was resolved to 6.0.0, which depends on
        GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
        MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleUtilitiesComponents (~> 1.0) was resolved to 1.1.0, which depends on
        GoogleUtilities/Logger

Thanks in advance for your help

Expected behavior

I am able to pod install my project

Reproduction

https://github.com/vlafranca/capacitor-repro

Steps to reproduce

  1. npm i
  2. npm run build
  3. npx cap sync

Other information

No response

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.1.2 @capacitor/core: 6.1.2 @capacitor/android: 6.1.2 @capacitor/ios: 6.1.2

Installed Dependencies:

@capacitor/android: not installed @capacitor/cli: 6.1.2 @capacitor/core: 6.1.2 @capacitor/ios: 6.1.2

[success] iOS looking great! 👌

Before submitting

robingenz commented 3 weeks ago

I've just published a new version for the MLKit Barcode Scanning plugin:

npm i @capacitor-mlkit/barcode-scanning@7.0.0-next.1

This should fix your issue.

vlafranca commented 3 weeks ago

It fixed it! Thank you you're awesome !