You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
productFlavors {
create("local") {} // the first three are dimension `environment`
create("staging") {}
create("production") {}
create("type1") {} // this and the following are dimension `app`
create("type2") {}
create("type3") {}
create("type4") {}
}
Then inside the porflavor block, we specify for only a few combinations some BuildConfigFields:
But for some of the combinations possible, some of the buildConfigField are missing, and when selecting one of the lacking BuildVariants from Android Studio, or when running the generic ./gradlew build (which I'm trying to setup on CI, the builds fail as there is no BuildConfig.CLIENT_ID specified.
Should I specify all the BuildConfigField for every possible combination?
The text was updated successfully, but these errors were encountered:
Yeah, you are right! defaultConfig exists exactly for that. And you can override default config in flavors. If you don't want to define default config, than you have to define this field for all flavors.
In our app we currently have 6
productFlavors
Then inside the
porflavor
block, we specify for only a few combinations some BuildConfigFields:But for some of the combinations possible, some of the
buildConfigField
are missing, and when selecting one of the lackingBuildVariants
from Android Studio, or when running the generic./gradlew build
(which I'm trying to setup on CI, the builds fail as there is noBuildConfig.CLIENT_ID
specified.Should I specify all the
BuildConfigField
for every possible combination?The text was updated successfully, but these errors were encountered: