I have a relatively complicated project that requires two flavor dimensions for each app. I\'ve rewritten it much more simply in the example below:
flavorDim
def appId = "my.custom.package" if (appId == "some.package") { ..... Change conditions based on the flavors maybe defined more variables } defaultConfig { applicationId "${appId}" ............... }