Ktor for Networking in Kotlin Multiplatform Mobile projects

Published: 20 May 2021
on channel: Kotlin by JetBrains
27,815
483

In this episode, we are going to create a real crossplatform mobile application with Kotlin Multiplatform Mobile. 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 learn 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 create 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/km...

Ekaterina Petrova →   / kathrinpetrova  

Documentation → https://kotlinlang.org/docs/mobile/cr...

KMM portal → https://kotlinlang.org/lp/mobile/

#Kotlin #Ktor #Multiplatform


Watch video Ktor for Networking in Kotlin Multiplatform Mobile projects online, duration online in high quality that is uploaded to the channel Kotlin by JetBrains 20 May 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 27,815 times and liked it 483 visitors.