Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1.25 KB

README.md

File metadata and controls

20 lines (12 loc) · 1.25 KB

[WIP] countries-learn

Sample Kotlin Multiplatform application. The application shows just shows the return of Rest Countries API in a list.

Architecture

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.

Useful links

Kotlin and the rise of Multiplatform

Codelab kotlinlang

Ktor http-client for apps Multiplatform