Workshop: Kotlin Multiplatform with Compose

March 3, 2025 (1y ago)

Workshop: Kotlin Multiplatform with Compose

My first workshop in the Master Class Mobile, in the 1st semester, was about Kotlin Multiplatform with Compose. The goal was a short introduction to the Kotlin language and an overview of the cross-platform technology Kotlin Multiplatform, including the declarative UI toolkit Compose. After the theory, we worked through an exercise together on the projector.

Kotlin

Kotlin is developed by JetBrains, has been officially supported on Android since 2017 and has been Google’s preferred language for Android since 2021. Since the participants already knew Java, I focused on the differences and advantages: less boilerplate, null safety, type inference, default parameters, extension functions, lambdas and higher-order functions. It’s also fully interoperable with Java.

Kotlin Multiplatform

A native cross-platform framework for Android, iOS, web and desktop. Business logic is shared, while the UI can stay platform-specific. The expect/actual mechanism lets you write platform-specific implementations where needed.

Compose

A modern, declarative UI toolkit that replaced the old XML view system on Android (Jetpack Compose) and runs across platforms as Compose Multiplatform. The workshop covered composables, state changes and recomposition.

Read the full post on the MFG Blog of USTP → (in German)