Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How create no-op version for firebase performance monitoring

Tags:

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.

like image 548
Heroes84 Avatar asked Aug 02 '17 11:08

Heroes84


1 Answers

Solution is now proven:

buildTypes
{
    debug
    {
        manifestPlaceholders = [firebaseDisableMonitoring: true]
    }
    release
    {
        manifestPlaceholders = [firebaseDisableMonitoring: false]
    }
}
like image 110
Heroes84 Avatar answered Oct 11 '22 14:10

Heroes84