How to create a no-op version to monitor firebase performance

I want to use firebase performance monitoring in a large multi-user android application that uses modules. Therefore, I add apply plugin

and dependencies

file gradle. But my build time has increased too much. So tell me how to create a no-op version in debug builds. My problem is that I don't want apply plugin

in the gradle file (because it's still BETA) in the debug and release build, only in the alpha build.

+3


source to share


2 answers


The solution is now proven:



buildTypes
{
    debug
    {
        manifestPlaceholders = [firebaseDisableMonitoring: true]
    }
    release
    {
        manifestPlaceholders = [firebaseDisableMonitoring: false]
    }
}

      

+1


source


You can disable the extra effort of the Performance Monitoring plugin using the instructions in the documentation .



0


source







All Articles