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
Boy Hoody
03/04/2025, 3:47 AM
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
Karan Sharma
03/04/2025, 10:15 AM
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
Karan Sharma
03/04/2025, 10:19 AM
You need to create two top level packages one called
debug
and another called `release.`and put the respective json file there.
b
Brill
03/04/2025, 4:54 PM
the firebase config should go in the composeApp module root.
Also, I recommend you use the Kotlin firebase libs from