Example Android project using MVVM, DaggerAndroid, Jetpack Compose, Retrofit, Coroutines and Multi module architecture ✌🏽
2022 Hit Refresh! Praxis now loves ❤️ Jetpack Compose
This is a sample app written in Kotlin following clean architecture principles which uses slack app features as an example.
The purpose of this app to showcase:
Tools | Link |
---|---|
🤖 Kotlin | Kotlin |
🏛 Architecture Components | Android Architecture Components |
⛓ Data Binding | Android Data Binding |
💉 Dagger Hilt | Dagger Hilt |
🌐 Retrofit | Retrofit |
🚦 OkHttp | OkHttp |
📄 Gson Parsing | Gson |
🌊 Coroutines | Kotlin Coroutines |
🏄🏼♀️ Flows | Flows |
Presentation Layer contains UI (Activities & Fragments) that are coordinated by ViewModels which execute 1 or multiple UseCases. Presentation Layer depends on Domain Layer.
Domain Layer is the most INNER part of the circle (no dependencies with other layers) and it contains Entities, Use cases & Repository Interfaces. Use cases combine data from 1 or multiple Repository Interfaces.
Data Layer contains Repository Implementations and 1 or multiple Data Sources. Repositories are responsible to coordinate data from the different Data Sources. Data Layer depends on Domain Layer.
Notes: Mapping between response models and transformed models will happen via extension functions defined in transformed model file
Files are suffixed with be defined Class types.
LoginVM
LoginUseCase
LoginRemoteSource
, LoginLocalSource
LoginRepo
This project can be used as a template for new apps. This project is continually evolving to integrate other libraries and techniques to keep it up to date.