I've created a CMP app using the online wizard. Th...
# multiplatform
j
I've created a CMP app using the online wizard. The Android and iOS versions run just fine in emulators. I'd like to add Firebase to the project, starting with adding Crashlytics to the Android app. Gemini is telling me to put the
google-services.json
file in the
androidApp
folder and to add dependencies to
androidApp/build.gradle.kts
but I don't see a folder named
androidApp
. Please advise, I'm having a hard time finding the answer.
b
Your androidApp folder in CMP structure is androidMain inside composeApp but I'm not sure if google json can be placed there. Test it out
k
Here are the firebase related google-services.json file for debug / release for a compose multiplatform project. Hope this helps Github - https://github.com/ksharma-xyz/KRAIL
You need to create two top level packages one called
debug
and another called `release.`and put the respective json file there.
b
the firebase config should go in the composeApp module root. Also, I recommend you use the Kotlin firebase libs from
Copy code
<https://github.com/gitliveapp/firebase-kotlin-sdk>
c