Skip to content

Instantly share code, notes, and snippets.



Created Aug 3, 2020
What would you like to do?
MovieHunt blog part2. productFlavors
object Config {
const val API_ROOT = "\"\""
const val STAGING_API_ROOT = "\"\""
productFlavors {
create("staging") {
buildConfigField("String", "API_ROOT", Config.STAGING_API_ROOT)
create("production") {
buildConfigField("String", "API_ROOT", Config.API_ROOT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment