mirzemehdi / KMPAuth

Kotlin Multiplatform Authentication Library targetting android and iOS
https://mirzemehdi.com/KMPAuth/
Apache License 2.0
231 stars 19 forks source link

Firebase failed to Solve [Auth and Common KTX] #58

Closed santyas closed 1 month ago

santyas commented 1 month ago

Hello! Could that errors be related to this library?

firebase-error

Could I have missed something with kmpauth setup?

Thank you!

santyas commented 1 month ago

Task :composeApp:generateDebugAndroidTestLintModel FAILED

FAILURE: Build failed with an exception.

mirzemehdi commented 1 month ago

@santyas which targets your project support? Only android and ios?

Also you can try to add this library to see if it is solved:

implementation("dev.gitlive:firebase-auth:2.1.0")
mirzemehdi commented 1 month ago

I also get those but only as warning, it doesn't cause any error

mirzemehdi commented 1 month ago

Looks like problem comes from Firebae Gitlive lib.

Related issue: https://github.com/GitLiveApp/firebase-kotlin-sdk/issues/356

Okay so solution is to add these dependencies in your androidMain sourceSet

implementation("com.google.firebase:firebase-common-ktx:21.0.0")
implementation("com.google.firebase:firebase-auth-ktx:21.0.0")
santyas commented 1 month ago

Ok so should I add gitlive lib too?

mirzemehdi commented 1 month ago

you will not need to add that probably only above two implementation should solve the issue

santyas commented 1 month ago

Good catch! No errors! I have kept all 3 and it works. Yes Im working on in a android & ios project only.

Im sharing my gradle configuration with you if you want to test kmpauth with those recent dependency versions: https://gist.github.com/santyas/5a79f1d997a571c3ebfb8d0354c8ffee

Thank you!