Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
flavor at android 3 with gradle 3.3
flavorDimensions "dimension"
productFlavors{
pro{
dimension "dimension"
applicationIdSuffix ".demo"
versionNameSuffix "-demo"
}
dev{
dimension "dimension"
applicationIdSuffix ".full"
versionNameSuffix "-full"
}
}
android.variantFilter { variant ->
if ((variant.buildType.name.equals('release')
&& variant.getFlavors().get(0).name.equals('dev'))
|| (variant.buildType.name.equals('debug')
&& variant.getFlavors().get(0).name.equals('pro')))
variant.setIgnore(true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.