I have two flavors "demo" and "full", with each their own sourceSet in src/demo and src/full. This works fine.
I want now to make a third flavor that uses one of those sourceSets. How would I do that?
I tried something like:
productFlavors {
full {
applicationId "com.example.full"
signingConfig signingConfigs.full
resValue "string", "app_name", "Full"
}
demo {
applicationId "com.example.demo"
signingConfig signingConfigs.demo
resValue "string", "app_name", "Demo"
}
third {
applicationId "com.example.third"
resValue "string", "app_name", "third"
signingConfig signingConfigs.full
sourceSet = "full"
}
}