I have successfully implemented Firebase Crash Reporting, but I need to disable the service when the app is running undo the \'debug\' Build Variant, in order to avoid non-r
I use versionCode
as filter for local/production builds.
gradle.properties
VERSION_CODE=1
app/build.gradle
android {
defaultConfig {
versionCode VERSION_CODE as int
}
}
When publishing new version of app, just set new value from command line:
./gradlew build -PVERSION_CODE=new_value
Otherwise, when you're building from Android Studio, you will always get the same versionCode
, so you can easily distinguish crash reports in Firebase console.