I want to set my appName per flavor in Android Studio. I use com.android.tools.build:gradle-experimental:0.4.0 plugin so I can`t use standard gradle/groovy syntax.
I have found a solution here: how to change android app name in the build gradle file
However with all my experimentations I just can`t figure out the right syntax for resValue field.
I have tried something like this:
buildConfigFields.resValue = {
create() {
type = "String"
name = "appName"
value = "Game_Name"
}
}
But no luck.