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
The simplest solution for users when they run app in Debug mode or in Release mode:
AndroidManifest.xml:
build.gradle(Module:app)
buildTypes {
debug {
manifestPlaceholders = [analytics_deactivated: "false"]
}
release {
manifestPlaceholders = [analytics_deactivated: "true"]
}
}
Hence, when the app is in release mode, the crashlatics will be turned on and app runs in debug mode, it would be turned off.