私はデバッグのための文字列値を切り替えて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}"
...
}