增加多平台(Desktop、Android平台支持)

This commit is contained in:
BBIT-Kai
2025-06-18 10:22:15 +08:00
parent f02173c667
commit 02262e3a96
38 changed files with 1148 additions and 42 deletions
@@ -0,0 +1,7 @@
package com.bbitcn.bbit_ai
class JVMPlatform: Platform {
override val name: String = "Java ${System.getProperty("java.version")}"
}
actual fun getPlatform(): Platform = JVMPlatform()
@@ -0,0 +1,13 @@
package com.bbitcn.bbit_ai
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "BBIT_AI",
) {
App()
}
}