MovieHunt blog part2. productFlavors
object Config { | |
const val API_ROOT = "\"https://api.themoviedb.org/3/\"" | |
const val STAGING_API_ROOT = "\"https://staging-api.themoviedb.org/3/\"" | |
} | |
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