I want to execute some code depending on the build type (release, debug). specifically, i want to change the APK name depending on the build type ... something like this,
if (buildType.name == 'release') {
project.archiveBaseName = 'blah';
} else if (buildType.name == ...) {
...
}
I don't know where to put this code however. I can iterate over the build types,
android.buildTypes.each{ type ->
print type.name
}
but this of course gives me all the build types, not the current build type.