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. API key
object Config {
const val API_ROOT = "\"https://api.themoviedb.org/3/\""
const val IMAGE_API_ROOT = "\"https://image.tmdb.org/t/p/\""
}
defaultConfig {
...
buildConfigField("String", "API_ROOT", Config.API_ROOT)
buildConfigField("String", "TMDB_API_KEY", TMDB_API_KEY)
buildConfigField("String", "IMAGE_API_KEY", Config.IMAGE_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.