Skip to content

angelica-oliv/countries-learn

Repository files navigation

[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

About

Sample Kotlin Multiplatform application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published