Firebase-Crash has a new feature. You can upload your mapping.txt
using a Gradle command: ./gradlew :app:firebaseUploadReleaseProguardMapping
.
I want to automate this process. I want to upload that mapping.txt
file to Firebase as soon as I create a release apk.
How can I force Gradle to execute firebaseUploadReleaseProguardMapping
after a succesful assembleRelease
? Is there an easier way to do this?
In general you can define a dependencies for the task using the
dependsOn
method.For example:
You will obtain
In your case you can specify:
Also you can use the
finalizedBy
method.Note that :
B
even ifA
failed.