How create no-op version for firebase performance monitoring

Viewed 954

I want to use firebase performace monitoring in a big android multidex application, who's using modules. So I add apply plugin and dependencies to my gradle file. But my build time 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 gradle file (because it is still BETA) in debug and release build, only in alpha build.

2 Answers

Solution is now proven:

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