Skip to content
0:00 / 0:00

#kotlinmultiplatformmobile#ktor#kotlinx.serialization

Ktor for Networking in Kotlin Multiplatform Mobile projects

Kotlin by JetBrains

100K subscribers • 61 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Ekaterina Petrova
  • Linked in the descriptionKaterinaPetrova/kmm-ktor-sample
  • Made by the vendor. The company whose product it covers made or sponsored it.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

28K views5 years ago1 recommendation

Mobile developmentProgramming languagesKotlinFlutter and React NativeNetworking and protocols

Ekaterina Petrova demonstrates how to use Ktor and kotlinx.serialization to make network requests in a Kotlin Multiplatform Mobile project.

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: github.com/KaterinaPetrova/kmm-ktor-sample Ekaterina Petrova → twitter.com/KathrinPetrova Documentation → kotlinlang.org/docs/mobile/create-first-app.html KMM portal → kotlinlang.org/lp/mobile/ #Kotlin #Ktor #Multiplatform

Why it's here

1 person recommends this

u/dayanrubenin r/Kotlin • Recommends

Ktor for Networking in Kotlin Multiplatform Mobile projects