From 03d21f607f6d0113746e926bb331608de6a01118 Mon Sep 17 00:00:00 2001 From: chashaochang <1139396584@qq.com> Date: Sat, 7 Mar 2026 02:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composeApp/build.gradle.kts | 20 ++++++++----------- .../openclawapp/feature/chat/ChatScreen.kt | 1 - .../feature/sessions/SessionListScreen.kt | 1 - 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 0d91ae5..cab6b0e 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -15,7 +15,7 @@ kotlin { jvmTarget.set(JvmTarget.JVM_11) } } - + listOf( iosArm64(), iosSimulatorArm64() @@ -25,33 +25,29 @@ kotlin { isStatic = true } } - + js { browser() binaries.executable() } - + @OptIn(ExperimentalWasmDsl::class) wasmJs { browser() binaries.executable() } - + sourceSets { androidMain.dependencies { implementation(libs.compose.uiToolingPreview) implementation(libs.androidx.activity.compose) implementation(libs.ktor.client.okhttp) } - val iosMain by getting { - dependencies { - implementation(libs.ktor.client.darwin) - } + iosMain.dependencies { + implementation(libs.ktor.client.darwin) } - val jsMain by getting { - dependencies { - implementation(libs.ktor.client.js) - } + jsMain.dependencies { + implementation(libs.ktor.client.js) } commonMain.dependencies { implementation(libs.compose.runtime) diff --git a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/feature/chat/ChatScreen.kt b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/feature/chat/ChatScreen.kt index 9964102..d3d54e7 100644 --- a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/feature/chat/ChatScreen.kt +++ b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/feature/chat/ChatScreen.kt @@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.layout.weight import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.foundation.lazy.rememberLazyListState diff --git a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/feature/sessions/SessionListScreen.kt b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/feature/sessions/SessionListScreen.kt index cc95df4..bc50406 100644 --- a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/feature/sessions/SessionListScreen.kt +++ b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/feature/sessions/SessionListScreen.kt @@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.layout.weight import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.material3.Button