- JDK 1.8
- Android SDK
- Android (API 23 to 30)
- Latest Android SDK Tools and build tools.
- Original README
In this application you can see layered architecture. Whe have several layers:
- Presentation in app module.
- Domain in domain module.
- Remote in remote module.
The presentation layer is responsible for displaying UI and managing its state. In this layer for UI we use Compose and for state management ViewModel with StateFlow from coroutines.
The domain layer is responsible for performing business logic of the application. It manages data source layers. The domain exposes so called DataSourceActions . The DataSourceAction is an interface that imposes communication from data source layers to the domain. Thanks to that we achieve dependency inversion and better decoupling.
The remote layer is a data source layer. It allows us to connect with external services. In this case we access REST API using Retrofit. In this layer we implement DataSourceActions.