ylliX - Online Advertising Network

Migration Guide from Retrofit and KAPT to Ktor and KSP

Integration To integrate ktor into the project add the following lines under the dependencies node in the app module and other modules where you might have to make the network calls. // Ktorimplementation(“org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2”)implementation(“io.ktor:ktor-client-core:2.3.12”)// CIO – for JVM and Androidimplementation(“io.ktor:ktor-client-cio:2.3.12”)implementation(“io.ktor:ktor-client-content-negotiation:2.3.12”)implementation(“io.ktor:ktor-serialization-kotlinx-json:2.3.12”) Then add the following line under the plugins section in the project-level gradle file. id ‘org.jetbrains.kotlin.plugin.serialization’ […]