Skip to content

Commit

Permalink
fix: Fixed ktor-client-cio issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Maas committed Jul 23, 2024
1 parent 92d1cfa commit 7590c05
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions modules/openid-federation-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,18 @@ kotlin {
}
}

// iosX64()
// iosArm64()
// iosSimulatorArm64()
iosX64()
iosArm64()
iosSimulatorArm64()

jvm()

sourceSets {
val commonMain by getting {
dependencies {
implementation("com.sphereon.oid.fed:openapi:0.1.0-SNAPSHOT")
implementation("io.ktor:ktor-client-core:$ktorVersion")
runtimeOnly("io.ktor:ktor-client-core:$ktorVersion")
runtimeOnly("io.ktor:ktor-client-logging:$ktorVersion")
runtimeOnly("io.ktor:ktor-client-cio:$ktorVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.0")
implementation(libs.kermit.logging)
Expand Down Expand Up @@ -88,44 +87,45 @@ kotlin {
}
}

// val iosMain by creating {
// dependsOn(commonMain)
// dependencies {
//
// }
// }
// val iosX64Main by getting {
// //dependsOn(iosMain)
// dependencies {
// implementation("io.ktor:ktor-client-core-iosx64:$ktorVersion")
// implementation("io.ktor:ktor-client-cio-iosx64:$ktorVersion")
// }
// }
// val iosArm64Main by getting {
// dependsOn(iosX64Main)
// dependencies {
// implementation("io.ktor:ktor-client-core-iosarm64:$ktorVersion")
// implementation("io.ktor:ktor-client-cio-iosarm64:$ktorVersion")
// }
// }
// val iosSimulatorArm64Main by getting {
// dependsOn(iosX64Main)
// dependencies {
// implementation("io.ktor:ktor-client-core-iossimulatorarm64:$ktorVersion")
// implementation("io.ktor:ktor-client-cio-iossimulatorarm64:$ktorVersion")
// }
// }
//
// val iosTest by creating {
// dependsOn(commonTest)
// dependencies {
// implementation(kotlin("test"))
// }
// }
val iosMain by creating {
dependsOn(commonMain)
dependencies {

}
}
val iosX64Main by getting {
//dependsOn(iosMain)
dependencies {
implementation("io.ktor:ktor-client-core-iosx64:$ktorVersion")
implementation("io.ktor:ktor-client-cio-iosx64:$ktorVersion")
}
}
val iosArm64Main by getting {
dependsOn(iosX64Main)
dependencies {
implementation("io.ktor:ktor-client-core-iosarm64:$ktorVersion")
implementation("io.ktor:ktor-client-cio-iosarm64:$ktorVersion")
}
}
val iosSimulatorArm64Main by getting {
dependsOn(iosX64Main)
dependencies {
implementation("io.ktor:ktor-client-core-iossimulatorarm64:$ktorVersion")
implementation("io.ktor:ktor-client-cio-iossimulatorarm64:$ktorVersion")
}
}

val iosTest by creating {
dependsOn(commonTest)
dependencies {
implementation(kotlin("test"))
}
}

val jsMain by getting {
dependencies {
implementation("io.ktor:ktor-client-js:$ktorVersion")
runtimeOnly("io.ktor:ktor-client-core-js:$ktorVersion")
runtimeOnly("io.ktor:ktor-client-js:$ktorVersion")
}
}

Expand Down

0 comments on commit 7590c05

Please sign in to comment.