Skip to content

Instantly share code, notes, and snippets.

@enginebai

enginebai/Config.kt

Created Aug 3, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.