mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2026-01-01 17:28:47 +01:00
build(connector): add Compose and split desktop app and server
This commit is contained in:
1
connector/shared/src/commonMain/kotlin/Constants.kt
Normal file
1
connector/shared/src/commonMain/kotlin/Constants.kt
Normal file
@@ -0,0 +1 @@
|
||||
const val SERVER_PORT = 8080
|
||||
7
connector/shared/src/commonMain/kotlin/Greeting.kt
Normal file
7
connector/shared/src/commonMain/kotlin/Greeting.kt
Normal file
@@ -0,0 +1,7 @@
|
||||
class Greeting {
|
||||
private val platform = getPlatform()
|
||||
|
||||
fun greet(): String {
|
||||
return "Hello, ${platform.name}!"
|
||||
}
|
||||
}
|
||||
5
connector/shared/src/commonMain/kotlin/Platform.kt
Normal file
5
connector/shared/src/commonMain/kotlin/Platform.kt
Normal file
@@ -0,0 +1,5 @@
|
||||
interface Platform {
|
||||
val name: String
|
||||
}
|
||||
|
||||
expect fun getPlatform(): Platform
|
||||
Reference in New Issue
Block a user