Sample Kotlin Multiplatform application. The application shows just shows the return of Rest Countries API in a list.
This project uses an architecture defined by layers, where two layers has Kotlin code, shared between iOS and Android applications. The shared modules are:
- shareddata: where the representation models used by Android and iOS are. And also, in this module there is the Repository implementation, where applications can call for data, and this class can choose by which source of data should be used. The repository uses kotlinx.coroutines to make async calls.
- sharednetwork: where API calls are made, this module uses ktor http-client to access API service calls.