{"id":13609489,"url":"https://github.com/enginebai/MovieHunt","last_synced_at":"2025-04-12T20:32:09.085Z","repository":{"id":29400548,"uuid":"32935880","full_name":"enginebai/MovieHunt","owner":"enginebai","description":"Movie Android App written in Kotlin, MVVM, RxJava, Jetpack Compose (implementing), Android Architecture Components and Coroutine (Upcoming).","archived":false,"fork":false,"pushed_at":"2022-07-29T06:45:17.000Z","size":53968,"stargazers_count":752,"open_issues_count":5,"forks_count":85,"subscribers_count":16,"default_branch":"v2","last_synced_at":"2025-04-04T15:08:03.649Z","etag":null,"topics":["android","android-app","android-application","android-architecture-components","coroutines","jetpack-compose","kotlin","kotlin-android","movie","mvvm","mvvm-android","mvvm-architecture","room","rxjava"],"latest_commit_sha":null,"homepage":"https://medium.com/@enginebai/moviehunt-part-1-b96288b1f3df","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enginebai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-26T15:33:13.000Z","updated_at":"2025-03-28T10:46:26.000Z","dependencies_parsed_at":"2022-08-08T16:15:15.940Z","dependency_job_id":null,"html_url":"https://github.com/enginebai/MovieHunt","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enginebai%2FMovieHunt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enginebai%2FMovieHunt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enginebai%2FMovieHunt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enginebai%2FMovieHunt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enginebai","download_url":"https://codeload.github.com/enginebai/MovieHunt/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248629804,"owners_count":21136320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-app","android-application","android-architecture-components","coroutines","jetpack-compose","kotlin","kotlin-android","movie","mvvm","mvvm-android","mvvm-architecture","room","rxjava"],"created_at":"2024-08-01T19:01:35.305Z","updated_at":"2025-04-12T20:32:04.076Z","avatar_url":"https://github.com/enginebai.png","language":"Kotlin","funding_links":[],"categories":["Kotlin",":shamrock:  **Categories**",":art: Pattern"],"sub_categories":[":movie_camera: Entertainment","MVVM"],"readme":"\u003ch1 align=\"center\"\u003eMovieHunt\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nMovieHunt is a sample Android project using \u003ca href=\"https://www.themoviedb.org/\"\u003eThe Movie DB\u003c/a\u003e API based on MVVM architecture. It showcases the latest Android tech stacks with well-designed architecture and best practices.\n\n\u003e The new v2 re-design is available. 🎉 Check it out now! \n\n\u003cimg src='art/home.png' width='25%'/\u003e\u003cimg src = 'art/home2.png' width='25%'/\u003e\u003cimg src='art/list.png' width='25%'/\u003e\u003cimg src ='art/movie_detail.png' width='25%'/\u003e\n\n\u003c/p\u003e\n\n## Features\n* 100% Kotlin\n* MVVM architecture\n* Reactive pattern\n* Android Architecture Components and Jetpack Compose.\n* Kotlin Coroutines + Flow (Upcoming)\n* Single activity pattern\n* Dependency injection\n* CI support (Upcoming)\n* Testing (Upcoming)\n\n\u003cimg src=\"./art/moviehunt-demo.gif\" align=\"right\" width=\"32%\"/\u003e\n\n## Tech Stacks\n* [Retrofit](http://square.github.io/retrofit/) + [OkHttp](http://square.github.io/okhttp/) - RESTful API and networking client.\n* [Koin](https://insert-koin.io/) - Dependency injection.\n* [Android Architecture Components](https://developer.android.com/topic/libraries/architecture) - A collections of libraries that help you design rebust, testable and maintainable apps.\n    * [Room](https://developer.android.com/training/data-storage/room) - Local persistence database.\n    * [Paging 3](https://developer.android.com/topic/libraries/architecture/paging/v3-overview) - Pagination loading for RecyclerView.\n    * [ViewModel](https://developer.android.com/reference/androidx/lifecycle/ViewModel) - UI related data holder, lifecycle aware.\n    * [LiveData](https://developer.android.com/topic/libraries/architecture/livedata) - Observable data holder that notify views when underlying data changes.\n    * [Data Binding](https://developer.android.com/topic/libraries/data-binding) - Declarative way to bind data to UI layout.\n    * [Navigation component](https://developer.android.com/guide/navigation) - Fragment routing handler. (Upcoming)\n    * [WorkManager](https://developer.android.com/topic/libraries/architecture/workmanager) - Tasks scheduler in background jobs. (Upcoming)\n* (Implementing) [Jetpack Compose](https://developer.android.com/jetpack/compose) - Declarative and simplified way for UI development.\n* ~[Epoxy](https://github.com/airbnb/epoxy) - Simplified way to build complex layout in RecyclerView.~ Replaced by Jetpack Compose.\n* (Implementing) [Coroutine](https://developer.android.com/kotlin/coroutines) Concurrency design pattern for asynchronous programming.\n* (Upcoming) [Flow](https://developer.android.com/kotlin/flow) Stream of value that returns from suspend function.\n* ~[RxJava](https://github.com/ReactiveX/RxJava) - Asynchronous programming with observable streams.~ (Upcoming) Replaced by Coroutine + Flow.\n* [Coil](https://github.com/coil-kt/coil) - Image loading.\n* [Timber](https://github.com/JakeWharton/timber) - Extensible API for logging.\n\n## Architectures\n\n![MVVM](./art/MovieHunt_Architecture.png)\n\nWe follow Google recommended [Guide to app architecture](https://developer.android.com/jetpack/guide) to structure our architecture based on MVVM, reactive UI using LiveData / RxJava observables and data binding.\n\n* **View**: Activity/Fragment with UI-specific logics only.\n* **ViewModel**: It keeps the logic away from View layer, provides data streams for UI and handle user interactions.\n* **Model**: Repository pattern, data layers that provide interface to manipulate data from both the local and remote data sources. The local data sources will serve as [single source of truth](https://en.wikipedia.org/wiki/Single_source_of_truth).\n\n## Package Structures\n\n```\ncom.enginebai.moviehunt # Root Package\n├── data                # For data modeling layer\n│   ├── local           # Local persistence database\n|   │   ├── dao         # Data Access Object for Room\n|   |   ├── model       # Model classes\n│   ├── remote          # Remote data source\n│   └── repo            # Repositories for single source of data\n|\n├── di                  # Dependency injection modules\n│\n├── ui                  # Fragment / View layer\n│   ├── list            # List screen Fragment and ViewModel\n│   ├── home            # Main screen Fragment and ViewModel\n|   │   ├── controller  # Epoxy controller for RecyclerView\n|   │   └── models      # Epoxy models for RecyclerView\n│   └── details         # Detail screen Fragment and ViewModel\n|\n├── utils               # Utility Classes / Kotlin extensions\n├── MainActivity        # Single activity\n├── AppContext          # Application\n└── NavigationRouter    # Navigation controller\n\n```\n\n\n## API Key 🔑\nYou will need to provide developer key to fetch the data from TMDB API.\n* Generate a new key (v3 auth) from [here](https://www.themoviedb.org/settings/api). Copy the key and go back to Android project.\n* Create a new kotlin file `ApiKey.kt` in path `./buildSrc/src/main/kotlin/`.\n* Define a constant `TMDB_API_KEY` with the double quotes, it looks like\n\n```kotlin\nconst val TMDB_API_KEY = \"\\\"90c05******************655\\\"\"\n```\n\n* Add the key to build config in `./buildSrc/src/main/kotlin/Config.kt`:\n\n```kotlin\ndefaultConfig {\n    ...\n    buildConfigField(\"String\", \"TMDB_API_KEY\", TMDB_API_KEY)\n    ...\n}\n```\n\n* Perform gradle sync.\n\n\u003e **NOTE**: It's important to keep the double quotes for this value, since it's used as String type build config fields, the field name in quotes, the field value in escaped quotes additionally. If you're missing the double quotes, it will build fail.\n\n## LICENSE\n\n```\nCopyright (c) 2020 Engine Bai\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenginebai%2FMovieHunt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenginebai%2FMovieHunt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenginebai%2FMovieHunt/lists"}