Discover the most popular and top rated movies playing. Movies data fetched using themoviedb.org API.
Main Screen | Demo | Favorites |
---|---|---|
Movie Details | Trailers | Reviews |
- Discover the most popular and the most rated movies
- User can view and play trailers on youtube
- Shows a list of reviews for each movie
- Users can mark a movie as favorite in the details view by tapping a heart icon
- Users can share movie trailers with their network
- Offline support: app makes use of
NetworkBoundResource
, which uses database as the single source of truth - Advanced uses of Room
- MVVM with Android Architecture Components(Room, LiveData, ViewModel)
- Pagination and endless scrolling using Android paging library.
- Handle network status and network failures
- ConstraintLayout(guidelines, barriers... etc)
- Material design.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Android Studio 3.2+
- Java JDK
Follow these steps if you want to get a local copy of the project on your machine.
git https://github.com/YassinAJDI/PopularMovies.git
- In Android Studio, go to File -> New -> Import project
- Follew the dialog wizard to choose the folder where you cloned the project and click on open.
- Android Studio imports the projects and builds it for you.
- Add TheMovieDb API Key inside
gradle.properties
file.
TMDB_API_KEY="Your API Key here"
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
- AndroidX - Previously known as 'Android support Library'
- Glide - for loading and caching images
- Retrofit 2 - Type-safe HTTP client for Android and Java by Square, Inc.
- Gson - for serialization/deserialization Java Objects into JSON and back
- LiveData
- ViewModel
- Paging
- DataBinding
- OkHttp
- Timber
- CircleImageView
- TextDrawable
This project is released under the MIT license. See LICENSE for details.
MIT License
Copyright (c) 2018 Yassin Ajdi
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.