Like This

Saturday, March 7, 2020

Disable Firebase Analytics for android developing

Hi friends, in this little publication i’ll explain how to disable the firebase analytics in android when you’re developing.
Of course, you don’t want to confuse the production metrics with developing metrics.


Accord to this article: https://firebase.google.com/docs/analytics/configure-data-collection?platform=android
The easier mode to disable the firebase analytics in developing mode, is with manifest file.
so, add this to your manifest:

"""

"""
Now , you’ve to set the build variable, that you will do in the app/build.gradle file

buildTypes {
    debug {
        resValue("bool", "FIREBASE_ANALYTICS_DEACTIVATED", "true")
    }
    release {
        resValue("bool", "FIREBASE_ANALYTICS_DEACTIVATED", "false")
    }
}

 
Design by ThemeShift | Bloggerized by Lasantha - Free Blogger Templates