we use several product flavors that edit buildConfig fields. I’m wondering if it is possible to differentiate them and append parameter to field for debug builds only.
to give an example :
productFlavors {
apple {
buildConfigField "String", FRUIT_DIR, "\"Lorem\""
}
banana {
buildConfigField "String", FRUIT_DIR, "\"Ipsum\""
}
peach {
buildConfigField "String", FRUIT_DIR, "\"Dolor\""
}
mango {
buildConfigField "String", FRUIT_DIR, "\"Amet\""
}
}
what id like to do (writtent in pseudocode)
productFlavors.all { flavor ->
if (flavor.buildType == debug) {
flavor.FRUIT_DIR.append("_debug")
}
}
Is anything like this possible?