feat: Compose 改用 Dispatchers.Main 渲染

This commit is contained in:
WCPE
2025-01-14 17:54:27 +08:00
parent 4b515e4903
commit 4a4e2aa296
4 changed files with 108 additions and 96 deletions

View File

@@ -1,7 +1,7 @@
plugins {
kotlin("jvm")
id("maven-publish")
id("fabric-loom") version "1.9-SNAPSHOT"
id("fabric-loom") version "1.9.2"
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
@@ -36,6 +36,7 @@ loom {
}
repositories {
mavenLocal()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google()
@@ -47,9 +48,9 @@ dependencies {
mappings("net.fabricmc:yarn:${project.property("yarn_mappings")}:v2")
modImplementation("net.fabricmc:fabric-loader:${project.property("loader_version")}")
modImplementation("net.fabricmc:fabric-language-kotlin:${project.property("kotlin_loader_version")}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${project.property("fabric_version")}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.9.0")
implementation(compose.desktop.currentOs)
includeInternal(compose.desktop.currentOs) {
exclude(module = "kotlin-stdlib")