A minimalistic movie listing app to browse IMDB's top 250 movies, built to demonstrate MVVM with Jetpack Compose.
Try latest TopCorn2 app apk from below 👇
- Kotlin - First class and official programming language for Android development.
- Coroutines - For asynchronous and more..
- Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
- Compose - Android’s modern toolkit for building native UI.
- Navigation - A set of libraries, a plugin, and tooling that simplifies Android navigation.
- Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
- Hilt - Dependency Injection Framework
- Retrofit - A type-safe HTTP client for Android and Java.
- Moshi - A modern JSON library for Kotlin and Java.
- Moshi Converter - A Converter which uses Moshi for serialization to and from JSON.
- Coil - An image loading library for Android.
- Material Components for Android - Modular and customizable Material Design UI components for Android.
This project follows the famous MVVM architecture and best practices from Google's GithubBrowserSample
├── App.kt
├── data
│ ├── local
│ │ ├── AppDatabase.kt
│ │ ├── Converters.kt
│ │ └── daos
│ │ └── MoviesDao.kt
│ ├── remote
│ │ ├── ApiInterface.kt
│ │ └── Movie.kt
│ └── repo
│ └── MoviesRepo.kt
├── di
│ └── modules
│ ├── DatabaseModule.kt
│ ├── NetworkModule.kt
│ └── PreferenceModule.kt
├── model
│ └── Category.kt
├── ui
│ ├── common
│ │ ├── Fakes.kt
│ │ ├── Poster.kt
│ │ └── RetryMessage.kt
│ ├── main
│ │ ├── MainActivity.kt
│ │ └── MainViewModel.kt
│ ├── screen
│ │ ├── detail
│ │ │ ├── MovieDetailFragment.kt
│ │ │ ├── MovieDetailScreen.kt
│ │ │ └── MovieDetailViewModel.kt
│ │ ├── movies
│ │ │ ├── MoviesFragment.kt
│ │ │ ├── MoviesScreen.kt
│ │ │ └── MoviesViewModel.kt
│ │ └── splash
│ │ ├── SplashFragment.kt
│ │ ├── SplashScreen.kt
│ │ └── SplashViewModel.kt
│ ├── test
│ │ ├── TestActivity.kt
│ │ └── TestViewModel.kt
│ └── theme
│ ├── Theme.kt
│ └── Typography.kt
└── utils
├── calladapter
│ └── flow
│ ├── FlowResourceCallAdapterFactory.kt
│ ├── FlowResourceCallAdapter.kt
│ └── Resource.kt
├── flow
│ └── EventFlow.kt
└── NetworkBoundResource.kt
21 directories, 34 files
Well, we've XML version here, The TopCorn 1
- 🤓 Icons are from flaticon.com
- 🖌️ Design inspired from AnimeXStream
- 💽 Data from top250 API
- 📄 Thanks Foodium
- Improve algorithms and code review
- Add test cases