Created
August 3, 2020 14:00
-
-
Save enginebai/043d2a2f04f3a06a6f7da3e31892724a to your computer and use it in GitHub Desktop.
MovieHunt blog part2. productFlavors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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