Initial commit: Kotlin Multiplatform project setup
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.example.mycrib
|
||||
|
||||
class JVMPlatform: Platform {
|
||||
override val name: String = "Java ${System.getProperty("java.version")}"
|
||||
}
|
||||
|
||||
actual fun getPlatform(): Platform = JVMPlatform()
|
||||
13
composeApp/src/jvmMain/kotlin/com/example/mycrib/main.kt
Normal file
13
composeApp/src/jvmMain/kotlin/com/example/mycrib/main.kt
Normal file
@@ -0,0 +1,13 @@
|
||||
package com.example.mycrib
|
||||
|
||||
import androidx.compose.ui.window.Window
|
||||
import androidx.compose.ui.window.application
|
||||
|
||||
fun main() = application {
|
||||
Window(
|
||||
onCloseRequest = ::exitApplication,
|
||||
title = "MyCrib",
|
||||
) {
|
||||
App()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.mycrib.shared.network
|
||||
|
||||
actual fun getLocalhostAddress(): String = "127.0.0.1"
|
||||
Reference in New Issue
Block a user