docs(lesson6): complete copyable dependencies with ios and languageSettings optIn
This commit is contained in:
1 parent
fb828b8796
commit
7e649cc26c
1 file changed
+9
@@ -60,6 +60,11 @@ kmp-mini-shopping/
|
|||||||
```kotlin
|
```kotlin
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
all {
|
||||||
|
languageSettings.optIn("kotlinx.cinterop.ExperimentalForeignApi")
|
||||||
|
languageSettings.optIn("kotlin.experimental.ExperimentalObjCName")
|
||||||
|
}
|
||||||
|
|
||||||
commonMain.dependencies {
|
commonMain.dependencies {
|
||||||
implementation("io.ktor:ktor-client-core:3.1.3")
|
implementation("io.ktor:ktor-client-core:3.1.3")
|
||||||
implementation("io.ktor:ktor-client-content-negotiation:3.1.3")
|
implementation("io.ktor:ktor-client-content-negotiation:3.1.3")
|
||||||
@@ -71,6 +76,10 @@ kotlin {
|
|||||||
androidMain.dependencies {
|
androidMain.dependencies {
|
||||||
implementation("io.ktor:ktor-client-okhttp:3.1.3")
|
implementation("io.ktor:ktor-client-okhttp:3.1.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iosMain.dependencies {
|
||||||
|
implementation("io.ktor:ktor-client-darwin:3.1.3")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user