I would like to make something like (pseudo code):
if (BuildType == "release"){
apply plugin: 'testfairy'
} else if (BuildType == "debug"){
apply plugin: 'io.fabric'
}
The idea is that based on the build type, apply (or not) a plugin. How to do it ?