Shiftkey Android Coding Challenge

Languages, libraries and tools used

Requirements

Task

Architecture

In this application you can see layered architecture. Whe have several layers:

Presentation

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.

Domain

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.

Remote

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.