Hi,
I have a structure like this :
+ src
+ main // this is my common code
+ java
+ res
+ flavor1
+ java
+ res
+ flavor2
+ java
+ res
+ flavor3
+ java
+ res
+ flavor4
+ java
+ res
+ flavor5
+ java
+ res
And there are 7 buildTypes for each flavor !
For instance, if there is buildType1 in each flavor, how can I do to avoid editing resources files in 5 locations (one per flavor) ? In other word, can I factorize the usage of buildTypes to affect every flavors ?
My build.gradle looks like :
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
productFlavors {
flavour1 {
}
flavour2 {
}
flavour3 {
}
flavour4 {
}
flavour5 {
}
}
buildTypes {
dev {
}
prod {
}
lmoe {
}
lmo4 {
}
gdc1 {
}
gdc2 {
}
gdc3 {
}
}
}