Skip to content

Instantly share code, notes, and snippets.

@alibahaaa
Created June 25, 2022 14:25
Show Gist options
  • Save alibahaaa/ed813ce73b30947794faeb3b133e3c48 to your computer and use it in GitHub Desktop.
Save alibahaaa/ed813ce73b30947794faeb3b133e3c48 to your computer and use it in GitHub Desktop.
val ktorVersion = "2.0.2"
val koinVersion = "3.2.0"
val serializationVersion = "1.3.2"
val commonMain by getting {
dependencies {
// Ktor
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-serialization:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
// Serialization
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:$serializationVersion")
// koin
implementation("io.insert-koin:koin-core:$koinVersion")
}
}
val androidMain by getting {
dependencies {
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
}
}
val iosMain by creating {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
dependencies {
implementation("io.ktor:ktor-client-darwin:$ktorVersion")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment