Clean architecture/Kotlin/MAD
Movies KT is an attempt to build a simple movie discovery app using the TMDB GraphQL API. User can search/bookmark movies and have a clutter free read experience on the plot.
And to go MAD...
Overall, the app is built using three modules. Each addresses different business requirement.
- Android : Platform helpers / extensions to access the system resources placed here.
- Data-Core: Data classes, service / repo abstractions and respective DI placed here. ViewModel is used as a port to expose APIs to UI layer.
- UI / App layer: Screens, nav graphs are placed here. App layer consumes the above two modules drives the user front. This layer can choose to use different UI frameworks as long as viewmodel pub-sub pattern is supported in screen component.
All the above modules are bind using Hilt and resources are scoped to Singleton, ViewModel level.
- Now playing list
- Search
- Details / Similar movies
- Light/Night mode UI
- Gallery
- Cast info
- Scrapping plot from wikipedia
- Bookmark
- Jetpack navigation
- Apollo GraphQL / OkHttp
- Hilt
- ViewModel/Flow
- Coil
- Coroutines
- Kotlin script
Remarks | Video |
---|---|
V1 - Single paged | https://user-images.githubusercontent.com/6584143/134550521-890da7e3-20fb-4b3e-88e3-6d71ea44ace4.mp4 |
V2 - Multi tab + sections | https://user-images.githubusercontent.com/6584143/205542639-11d762ec-48ad-427a-8822-ac0dfbd5cdd8.mp4 |
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
MIT License
Copyright (c) 2023 Mahendran
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.