完成多平台拍照软件

This commit is contained in:
BBIT-Kai
2025-08-13 09:17:51 +08:00
parent 02262e3a96
commit 1aa67280fe
24 changed files with 845 additions and 265 deletions
+7 -3
View File
@@ -14,7 +14,7 @@ kotlin {
androidTarget {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
jvmTarget.set(JvmTarget.JVM_21)
}
}
@@ -36,6 +36,8 @@ kotlin {
implementation(compose.components.uiToolingPreview)
implementation(libs.androidx.lifecycle.viewmodel)
implementation(libs.androidx.lifecycle.runtimeCompose)
// 通用ViewModel
implementation("org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose:2.9.1")
}
commonTest.dependencies {
implementation(libs.kotlin.test)
@@ -43,6 +45,8 @@ kotlin {
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
implementation(libs.kotlinx.coroutinesSwing)
// 摄像头
implementation("org.bytedeco:javacv-platform:1.5.9")
}
}
}
@@ -69,8 +73,8 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
}