Skip to content

Kotlin Multiplatform Sample - Android, iOS, Web, Desktop

License

Notifications You must be signed in to change notification settings

hongbeomi/KMP-Sample

Repository files navigation

KMP-Sample

Kotlin Multiplatform Sample

  • Android
  • iOS
  • Web (Compose for web)
  • Desktop (Compose for desktop)

💎 Structure Diagram

structure


🛠 Build

  • At least android Arctic Fox version should be used and at least Java 11 should be used
  • To run a web client, you can enter ./gradlew :webApp:jsBrowserDevelopmentRun
  • To start a desktop client, enter ./gradlew :desktop:run

🚀 ScreenShot

image


✨ Stack


⚠️ Warning

// webApp/build.gradle.kts - webpack An issue arises.
// https://github.com/JetBrains/compose-jb/issues/1259
afterEvaluate {
    rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
        versions.webpackCli.version = "4.9.0"
        versions.webpackDevServer.version = "4.0.0"
    }
}

👀 Reference