Tuesday, February 18, 2025

Api Get Request Using Ktor Koin And Jetpack Compose

 Api Get Request


Plugin :

kotlin("plugin.serialization") version "2.1.10"

Dependency :

// Ktor dependencies
val ktor_version = "3.1.0"
implementation ("io.ktor:ktor-client-content-negotiation:$ktor_version")
implementation ("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-okhttp:$ktor_version")
implementation("io.ktor:ktor-client-logging:$ktor_version")

// Koin for dependency injection
implementation ("io.insert-koin:koin-android:3.4.0")
implementation ("io.insert-koin:koin-androidx-compose:3.4.0")

// coil dependencies
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")






No comments:

Post a Comment

Power Of Compounding

 Power Of Compounding 1 = 1 2 = 2 3 = 4 4 = 8 5 = 16 6 = 32 7 = 64 8 = 128 9 = 256 10 = 512 11 = 1024 12 = 2048 13 = 4096 14 = 8192 15 = 163...