In this episode, we are going to create a real crossplatform mobile application with #KMM. It will load data from the network with the #Ktor and display the result on the device screen, and the business logic will be written only once in the shared Kotlin #Multiplatform Mobile module.
We will start by making a simple HTTP request and learned about the Ktor engine concept and how to configure them. After we will find out how to log HTTP calls to simplify the development process, and finally we will creat a few entities and learn how to use kotlinx.serialization to deserialize the Ktor responses into Kotlin data classes.
Demo project: https://github.com/KaterinaPetrova/kmm-ktor-sample
Ekaterina Petrova → https://twitter.com/KathrinPetrova
Documentation → https://kotlinlang.org/docs/mobile/create-first-app.html
KMM portal → https://kotlinlang.org/lp/mobile/
#KMM #Ktor #Multiplatform
source by Kotlin by JetBrains