From 7e649cc26c2b125ea91159bb7cf68aeb0746495f Mon Sep 17 00:00:00 2001 From: xiaobai Date: Wed, 4 Mar 2026 21:18:05 +0800 Subject: [PATCH] docs(lesson6): complete copyable dependencies with ios and languageSettings optIn --- docs/第6节_共享层网络与存储_最终版.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/第6节_共享层网络与存储_最终版.md b/docs/第6节_共享层网络与存储_最终版.md index d0fea5c..55d1e11 100644 --- a/docs/第6节_共享层网络与存储_最终版.md +++ b/docs/第6节_共享层网络与存储_最终版.md @@ -60,6 +60,11 @@ kmp-mini-shopping/ ```kotlin kotlin { sourceSets { + all { + languageSettings.optIn("kotlinx.cinterop.ExperimentalForeignApi") + languageSettings.optIn("kotlin.experimental.ExperimentalObjCName") + } + commonMain.dependencies { implementation("io.ktor:ktor-client-core:3.1.3") implementation("io.ktor:ktor-client-content-negotiation:3.1.3") @@ -71,6 +76,10 @@ kotlin { androidMain.dependencies { implementation("io.ktor:ktor-client-okhttp:3.1.3") } + + iosMain.dependencies { + implementation("io.ktor:ktor-client-darwin:3.1.3") + } } } ```