Created
June 25, 2022 14:25
-
-
Save alibahaaa/ed813ce73b30947794faeb3b133e3c48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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