feat(shared): add expect/actual Ktor engine and Wikipedia client; fix Ktor import
This commit is contained in:
@@ -2,6 +2,7 @@ plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.kotlin.multiplatform.library)
|
||||
alias(libs.plugins.android.lint)
|
||||
alias(libs.plugins.kotlin.serialization)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
@@ -60,7 +61,14 @@ kotlin {
|
||||
commonMain {
|
||||
dependencies {
|
||||
implementation(libs.kotlin.stdlib)
|
||||
implementation(libs.ktor.client.core)
|
||||
// Add KMP dependencies here
|
||||
|
||||
implementation(libs.ktor.client.content.negotiation)
|
||||
implementation(libs.ktor.serialization.kotlinx.json)
|
||||
// JSON-runtime explicit (bra för versionssäkring)
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
implementation(libs.ktor.client.logging)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +83,8 @@ kotlin {
|
||||
// Add Android-specific dependencies here. Note that this source set depends on
|
||||
// commonMain by default and will correctly pull the Android artifacts of any KMP
|
||||
// dependencies declared in commonMain.
|
||||
implementation(libs.ktor.client.okhttp)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,6 +103,7 @@ kotlin {
|
||||
// part of KMP’s default source set hierarchy. Note that this source set depends
|
||||
// on common by default and will correctly pull the iOS artifacts of any
|
||||
// KMP dependencies declared in commonMain.
|
||||
implementation(libs.ktor.client.darwin)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user