|
| 1 | +# Cineapp |
| 2 | + |
| 3 | +#### A Movie / TV-Show streaming app with elegant UI |
| 4 | + |
| 5 | +| | | | |
| 6 | +| --- | --- | --- | |
| 7 | +|  |  |  | |
| 8 | + |
| 9 | +| | | |
| 10 | +| --- | --- | |
| 11 | +|  |  | |
| 12 | + |
| 13 | +# Implementations |
| 14 | +<ul> |
| 15 | +<li>The Movie Database (TMDb)</li> |
| 16 | +<li>SQLite Database</li> |
| 17 | +<li>Retrofit - for networking</li> |
| 18 | +<li>Glide - for images</li> |
| 19 | +</ul> |
| 20 | + |
| 21 | +# API Keys |
| 22 | +Cineapp uses [The Movie DB](https://www.themoviedb.org/) API in order to fetch all the Movies and TV Shows Data and a Closed source API to stream movies and shows. |
| 23 | + |
| 24 | +Now, open file named `Constants.java` and put your API Key's in there. |
| 25 | +For example, |
| 26 | + |
| 27 | +```java |
| 28 | +public class Constants { |
| 29 | + public static final String API_KEY = "TMDB-API-KEY"; |
| 30 | + public static final String YOUTUBE_API_KEY = "YOUTUBE-API-KEY"; |
| 31 | + public static final String BASE_URL = "https://api.themoviedb.org/3/"; |
| 32 | + public static final String MOVIE_STREAM_URL = "CANNOT-BE-DISCLOSED"; |
| 33 | + public static final String SERIES_STREAM_URL = "CANNOT-BE-DISCLOSED"; |
| 34 | + public static final String IMAGE_LOADING_BASE_URL_1280 = "https://image.tmdb.org/t/p/w1280/"; |
| 35 | + public static final String IMAGE_LOADING_BASE_URL_342 = "https://image.tmdb.org/t/p/w342/"; |
| 36 | + public static final String IMAGE_LOADING_BASE_URL_780 = "https://image.tmdb.org/t/p/w780/"; |
| 37 | + public static final String YOUTUBE_THUMBNAIL_BASE_URL = "https://img.youtube.com/vi/"; |
| 38 | + public static final String YOUTUBE_THUMBNAIL_IMAGE_QUALITY = "/hqdefault.jpg"; |
| 39 | + |
| 40 | + public static final String MOVIE_ID = "movie_id"; |
| 41 | + public static final String SERIES_ID = "series_id"; |
| 42 | + public static final String PERSON_ID = "person_id"; |
| 43 | + |
| 44 | + public static final String VIEW_ALL_MOVIES_TYPE = "type_view_all_movies"; |
| 45 | + public static final int POPULAR_MOVIES_TYPE = 2; |
| 46 | + public static final int TOP_RATED_MOVIES_TYPE = 3; |
| 47 | + |
| 48 | + public static final String VIEW_ALL_TV_SHOWS_TYPE = "type_view_all_tv_shows"; |
| 49 | + public static final int ON_THE_AIR_TV_SHOWS_TYPE = 1; |
| 50 | + public static final int POPULAR_TV_SHOWS_TYPE = 2; |
| 51 | + public static final int TOP_RATED_TV_SHOWS_TYPE = 3; |
| 52 | + |
| 53 | + public static final int TAG_FAV = 0; |
| 54 | + public static final int TAG_NOT_FAV = 1; |
| 55 | +} |
| 56 | + |
| 57 | +``` |
0 commit comments