Hey guys, I wrote a guide how to setup firebase on...
# multiplatform
h
Hey guys, I wrote a guide how to setup firebase on iOS and Android using KMP as I've struggle to find a guide online that helped me do that https://funkymuse.dev/posts/kmp-firebase/ Hope it helps you too
👍 4
👍🏻 1
a
A really naive question, is it possible to setup firebase for the main 4 targets(Android/iOS/Desktop/Web)?
h
At least I'm not aware of a way to set-up all of the things firebase has on all platforms, for example as you can see the crashlytics on jvm is all pending to-do https://github.com/GitLiveApp/firebase-kotlin-sdk/blob/master/firebase-crashlytics/src/jvmMain/kotlin/dev/gitlive/firebase/crashlytics/crashlytics.jvm.kt But they have firebase auth for the JVM, so not all firebase sub products are there, some are some aren't. For those that aren't, you can wrap around git live's implementation and later upstream it so that they can have it too or just go expect/actual for everything.
gratitude thank you 1
e
Niceeee!!!
a
thanks for documenting! i just installed crashlytics in my compose multiplatform app and it was a pain. i also figured out how to support staging/production firebase projects (two firebase plist files). lmk if anyone is interested
a
Hey, after searching for the reason why my app crashes with firebase(app) not initialized correctly i found your article. You also import the gradle plugins for googleservices and crashlytics. Since i don’t use them explicitly and i completely moved over to gitlive-sdks i thought i can remove them. But this seems to be not the case, looks like they are hard required. Even if I call
Firebase.initialize(this)
manually (before i did not even need to do that) I still get the error. @Hristijan do you maybe have some more insight to this? Also i struggled to find any docs on how to setup gitlive stuff in general, like a sample project. (But i guess thats why you wrote the article in the first place)
i
@albrechtroehm Did you ever solve this?
a
No, sorry, still need to import gms.google-services and firebase.crashlytics to prevent the errors
h
You still need to add firebase on Android like you did before for the plugins, that's necessary https://firebase.google.com/docs/crashlytics/get-started?platform=android
736 Views