capacitor-firebase icon indicating copy to clipboard operation
capacitor-firebase copied to clipboard

feat: Make it compatible to be used with BoM

Open mlostekk opened this issue 11 months ago • 0 comments

Plugin(s)

  • [X] Analytics
  • [X] App
  • [X] App Check
  • [X] Authentication
  • [X] Crashlytics
  • [X] Cloud Messaging
  • [X] Performance
  • [X] Remote Config

Current problem

Right now, the plugin uses explicit versions for separate Firebase products. But the preferred solution to include Firebase to android is using the BoM method as specified in

https://firebase.google.com/docs/crashlytics/get-started?platform=android

aka

dependencies {
    // Import the BoM for the Firebase platform
    implementation(platform("com.google.firebase:firebase-bom:32.2.0"))

    // Add the dependencies for the Crashlytics and Analytics libraries
    // When using the BoM, you don't specify versions in Firebase library dependencies
    implementation("com.google.firebase:firebase-crashlytics")
    implementation("com.google.firebase:firebase-analytics")
}

Preferred solution

Offer a variable like $firebaseBomVersion in variables.gradle, if that variable is existing use the BOM approach.

Alternative options

No response

Additional context

No response

mlostekk avatar Jul 21 '23 07:07 mlostekk