Skip to content

Commit

Permalink
nonJs module
Browse files Browse the repository at this point in the history
  • Loading branch information
itboy87 committed Dec 6, 2023
1 parent 482c58b commit 33d0627
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions ksoup-network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ kotlin {
}
}

applyDefaultHierarchyTemplate()

sourceSets {
commonMain.dependencies {
compileOnly(projects.ksoup)
Expand All @@ -52,25 +54,42 @@ kotlin {
implementation(projects.ksoup)
}

jvmMain.dependencies {
implementation(libs.ktor.client.okhttp)
val nonJsMain by creating {
dependsOn(commonMain.get())
}

jvmMain {
dependsOn(nonJsMain)
dependencies {
implementation(libs.ktor.client.okhttp)
}
}

androidMain.dependencies {
implementation(libs.ktor.client.okhttp)
androidMain {
dependsOn(nonJsMain)
dependencies {
implementation(libs.ktor.client.okhttp)
}
}

iosMain.dependencies {
implementation(libs.ktor.client.darwin)
iosMain {
dependsOn(nonJsMain)
dependencies {
implementation(libs.ktor.client.darwin)
}
}

linuxMain.dependencies {
implementation(libs.ktor.client.cio)
linuxMain {
dependsOn(nonJsMain)
dependencies {
implementation(libs.ktor.client.cio)
}
}

jsMain.dependencies {
implementation(libs.ktor.client.js)
}

}
}

Expand Down

0 comments on commit 33d0627

Please sign in to comment.