Created
August 3, 2020 13:56
-
-
Save enginebai/5d850ec895d5226f43d2c17eabbad3cc to your computer and use it in GitHub Desktop.
MovieHunt blog part2. API key
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 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