修复报错

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) jvmTarget.set(JvmTarget.JVM_11)
} }
} }
listOf( listOf(
iosArm64(), iosArm64(),
iosSimulatorArm64() iosSimulatorArm64()
@@ -25,33 +25,29 @@ kotlin {
isStatic = true isStatic = true
} }
} }
js { js {
browser() browser()
binaries.executable() binaries.executable()
} }
@OptIn(ExperimentalWasmDsl::class) @OptIn(ExperimentalWasmDsl::class)
wasmJs { wasmJs {
browser() browser()
binaries.executable() binaries.executable()
} }
sourceSets { sourceSets {
androidMain.dependencies { androidMain.dependencies {
implementation(libs.compose.uiToolingPreview) implementation(libs.compose.uiToolingPreview)
implementation(libs.androidx.activity.compose) implementation(libs.androidx.activity.compose)
implementation(libs.ktor.client.okhttp) implementation(libs.ktor.client.okhttp)
} }
val iosMain by getting { iosMain.dependencies {
dependencies { implementation(libs.ktor.client.darwin)
implementation(libs.ktor.client.darwin)
}
} }
val jsMain by getting { jsMain.dependencies {
dependencies { implementation(libs.ktor.client.js)
implementation(libs.ktor.client.js)
}
} }
commonMain.dependencies { commonMain.dependencies {
implementation(libs.compose.runtime) 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.RowScope
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.weight
import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.lazy.rememberLazyListState 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.Row
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.weight
import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Button import androidx.compose.material3.Button