Comprehensive Android Development Guide: Clean architecture, MVVM, UI & Unit & Screenshot Test, Libraries (LiveData, StateFlow, Retrofit, Hilt, Coroutine, Compose, DataStore, Test Libraries and more)
I created different mini-apps for each item in the bottom navigation. Each mini-app shows a different way to use popular libraries, structures and best practices in Android development. This project is great for learning because it covers many important variable approaches that Android developers use.
We adhere to clean architecture guidelines, structuring our application into multiple layers (Data, Domain, Presentation) to ensure decoupling and testability. The presentation layer is powered by MVVM (Model-View-ViewModel), utilizing Jetpack Compose for dynamic UIs and animations.
- Jetpack Compose & Material3 & Compose Navigation: For building modern UIs with a focus on material design principles.
- Dagger-Hilt: Dependency injection framework for Android, simplifying the provision of dependencies across the application.
- Retrofit & Gson: Networking and JSON serialization/deserialization for API communication.
- Jetpack Navigation: For handling in-app navigation in a modular and scalable way.
- Coroutines & Flow: For asynchronous programming and reactive data streams.
- Jetpack Lifecycle, LiveData, ViewModel: Lifecycle-aware components for robust and maintainable MVVM architecture.
- ExoPlayer: Media playback.
- Mockito & JUnit & Mockk & Espresso & Paparazzi: Testing libraries for Unit, UI, Integration & Screenshot tests.
- TOML Version Catalog: Centralizes and manages library versions across the project, enhancing maintainability and consistency in dependency management.
- DataStore with Serialization: For efficient and robust data storage and management, providing a reactive and secure way to handle preferences and structured data.
- Coil: For image loading and caching in applications, offering seamless integration with Jetpack Compose.
Developed with Jetpack Compose, this is a custom animation created without the use of any external libraries. Designed using modern and flexible Compose APIs, it's perfect for adding a unique and fluid experience to your user interface.
weather-shot.mp4
- Clean Architecture: Demonstrated the use of Clean Architecture in the format of UI - Usecase(domain) - Data.
- Data Fetching: Provided examples of fetching data from an API and a local JSON file.
- Common usages
player-video.mp4
- Clean Architecture without Domain Module: Showed a different usage of Clean Architecture by directly connecting to the data module without a domain module.
- DataStore Usage: Demonstrated the use of DataStore for managing data.
- Common usages
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.