Smoovie is an Android app Querying TMDb API to provide information on popular, trending, upcoming movies with an option of saving ones favourite movies in a wishlist.
- Obtain Key
Create an account with TMDB to obtain an API key.
- Configure gradle.properties
Once you have your TMDB key,you will need to add it to a global gradle.properties
file so as not to add it to
version control and expose your key and configure the projects app module build.gradle to reflect the name you gave your
API Key.
To Access the global gradle.properties
,Locate the .gradle
file in the following directory
Windows: C:\Users<Your Username>.gradle
Mac: /Users//.gradle
Linux: /home//.gradle
If it doesn't exist create one and add in your API key like so
PROJECT_API_KEY = 'API_KEY_VALUE'
- Configure build.gradle
Then In the app
module build.gradle add the following function under defaultconfig/release/debug closures depending on your preference
to have access to the API key.
buildConfigField("String", "API_KEY", "\"${project.hasProperty("SMOOVIE_API_KEY") ? SMOOVIE_API_KEY : System.getenv("SMOOVIE_API_KEY")}\"")
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
- Leak Canary - Capture Memory Leaks
- Retrofit - Http Client for Api Calls
- Gson - Serialization/Deserialization Library
- Okhttp - An HTTP+HTTP/2 client for Android
- Picasso - Image Loading Library
- Butterknife - View Binding Library
- Styleable Toast - Custom Android Toast Library
- Architecture Components - Room ORM
- Parceler
- Palette
MIT License
Copyright (c) 2018 David Odari
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.