Kotlin Multiplatform is an innovative approach to building apps that allows developers to share code across multiple platforms, including Android, iOS, desktop, and web. To showcase its capabilities, JetBrains has curated a list of projects that demonstrate the power of Kotlin Multiplatform. From robust applications to unique use cases, these samples will inspire you to create your own brand new Kotlin Multiplatform application.
JetBrains Official Samples
One of the most impressive features of Kotlin Multiplatform is its ability to share UI components across platforms. Take, for instance, the KotlinConf companion app. This app uses Compose Multiplatform to build a shared UI that can be used on Android, iOS, desktop, and web. The backend application is powered by Ktor server-side framework and Exposed database library. By leveraging Compose Multiplatform, developers can create seamless user experiences across multiple platforms.
Another notable sample is the picture-taking app, which includes support for maps and uses Compose Multiplatform for its UI. This app demonstrates how Kotlin Multiplatform can be used to build complex applications that share code across platforms.
Recommended Samples
But what about building apps from scratch? To get started with Kotlin Multiplatform, JetBrains recommends using the web wizard. With this tool, developers can create their own brand new Kotlin Multiplatform application quickly and easily.
One of the most impressive samples is the conference scheduler app, which uses GraphQL for client-server communications and includes support for Wear and Auto platforms. This app demonstrates how Kotlin Multiplatform can be used to build complex applications that share code across multiple platforms.
Other Community Samples
But Kotlin Multiplatform isn't just limited to JetBrains' official samples. The community has also created its own set of samples, including a Compose Multiplatform-based version of the New York Times application. This app allows users to browse and read articles, showcasing the power of Kotlin Multiplatform in building complex applications.
In conclusion, Kotlin Multiplatform is an innovative approach to building apps that allows developers to share code across multiple platforms. With its ability to share UI components, leverage Compose Multiplatform, and build complex applications from scratch, Kotlin Multiplatform is the perfect tool for any developer looking to create high-quality apps for Android, iOS, desktop, and web.