Default value for Gradle buildConfigField boolean used across flavors [duplicate]

You can use defaultConfig for this (inside android{})

defaultConfig {
  buildConfigField "boolean", "DISABLE_SOMETHING", "true"
}