我想改用字符串值調試和發佈建立在BuildConfig文件:如何從gradle確定調試版本?
def api= "\"api\"";
if (...){// What to set here to determine is build debug or not ?
api= "\"api-debug\"";
}
defaultConfig {
...
buildConfigField "String", "API", "${api}"
...
}