touchlab / Kermit

Kermit by Touchlab is a Kotlin Multiplatform centralized logging utility.
https://kermit.touchlab.co
Apache License 2.0
699 stars 40 forks source link

Crashlytics update fails with Different versions of Gsm/Firebase libraries #397

Closed mustafaozhan closed 3 months ago

mustafaozhan commented 3 months ago

Latest version of Crashlytics update in my library project fails with following error

  /Users/runner/work/LogMob/LogMob/logmob/build.gradle: Error: All gms/firebase libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 21.0.0, 2.0.0, 19.0.0, 18.3.0, 18.1.0, 18.0.2, 18.0.1, 18.0.0, 17.2.0, 17.1.1, 17.0.0, 16.2.0, 16.0.0. Examples include com.google.firebase:firebase-common-ktx:21.0.0 and com.google.firebase:firebase-sessions:2.0.0 [GradleCompatible]

Here is the PR: https://github.com/SubMob/LogMob/pull/148/files

There is no other library than Crashlytics and Kermit in this repo, so I am assuming that the issue happens because of the Gsm/Firebase library located in Kermit/KermitCrashlytics.

I think simply keeping Gsm/Firebase dependencies updated in Kermit/KermitCrashlytics will resolves this issue for in Kermit/KermitCrashlytics consumers.

mustafaozhan commented 3 months ago

Looks like fixed with 19.0.1