修复报错

This commit is contained in:
xiaobai committed 2026-03-07 02:04:35 +08:00
1 parent 905049691c
commit 03d21f607f
3 files changed
+8 -14

No files matched your search

+8 -12
View File
@@ -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)
@@ -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
@@ -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