Skip to content

Commit

Permalink
Use new Kotlin hierarchy template
Browse files Browse the repository at this point in the history
  • Loading branch information
jdamcd committed Dec 10, 2023
1 parent e64fb95 commit a6b685a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 12 additions & 21 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,20 @@ kotlin {
sourceSets {
val ktorVersion = "2.2.1"

val commonMain by getting {
dependencies {
implementation("io.ktor:ktor-client-core:${ktorVersion}")
implementation("io.ktor:ktor-client-content-negotiation:${ktorVersion}")
implementation("io.ktor:ktor-serialization-kotlinx-json:${ktorVersion}")
implementation("io.ktor:ktor-client-logging:${ktorVersion}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4-native-mt")
}
commonMain.dependencies {
implementation("io.ktor:ktor-client-core:${ktorVersion}")
implementation("io.ktor:ktor-client-content-negotiation:${ktorVersion}")
implementation("io.ktor:ktor-serialization-kotlinx-json:${ktorVersion}")
implementation("io.ktor:ktor-client-logging:${ktorVersion}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4-native-mt")
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}

commonTest.dependencies {
implementation(kotlin("test"))
}
val macosArm64Main by getting
val macosX64Main by getting
val macOSMain by creating {
dependsOn(commonMain)
macosArm64Main.dependsOn(this)
macosX64Main.dependsOn(this)
dependencies {
implementation("io.ktor:ktor-client-darwin:${ktorVersion}")
}

macosMain.dependencies {
implementation("io.ktor:ktor-client-darwin:${ktorVersion}")
}
}
}
Expand Down

0 comments on commit a6b685a

Please sign in to comment.