A minimalistic movie listing app to browse IMDB's top 250 movies, built to demonstrate MVVM with Jetpack Compose.
TopCorn 1 is the XML version of this repository
- Download latest APK from here
- 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
│ └── repositories
│ └── movies
│ └── 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
│ └── theme
│ ├── Theme.kt
│ └── Typography.kt
└── utils
├── calladapter
│ └── flow
│ ├── FlowResourceCallAdapterFactory.kt
│ ├── FlowResourceCallAdapter.kt
│ └── Resource.kt
├── flow
│ └── EventFlow.kt
├── livedata
│ └── SingleLiveEvent.kt
└── NetworkBoundResource.kt
23 directories, 35 files
- 🤓 Icons are from flaticon.com
- 🖌️ Design inspired from AnimeXStream
- 💽 Data from top250 API
- 📄 Thanks Foodium
- Improve algorithms and code review
- Add test cases