Search code examples
androidfirebaseandroid-gradle-pluginfirebase-crash-reporting

Firebase Crash Reporting automatically upload mapping from Android Studios Generate Signed Apk


I just implemented Firebase Crash Reporting but I don't feel like uploading the mapping file manually every time. So I want to do this automatically. I followed the documentation, but this results in a script I would have to call. I don't have any fancy release script with passwords etc, so currently I make a release with Android Studios build option: "Generate Signed Apk...". Is there a way the upload the mapping after I used this option?


Solution

  • The documentation suggests that you can use a plugin and upload your release APK mappings with a Gradle task:

    ./gradlew :app:firebaseUploadReleaseProguardMapping
    

    Please be sure to read the documentation carefully, as there is some setup with service accounts that you need to perform before uploading anything this way.