Our great sponsors
-
moko-mvvm
Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development
-
kmm-production-sample
This is an open-source, mobile, cross-platform application built with Kotlin Multiplatform Mobile. It's a simple RSS reader, and you can download it from the App Store and Google Play. It's been designed to demonstrate how KMM can be used in real production projects.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
With KMM we can share entire layers of code, for example, the entire use case layer with its logic can be in KMM, the entire data part with its respective repositories and data sources can also be in KMM. There are even some early-stage libraries that help us to share ViewModels to manage the state of the UI.
Kotlin Multiplatform Mobile, the cross-platform solution created by JetBrains for sharing Kotlin code across operating systems, has reached Beta after two years in Alpha stage.
For example, in a mobile application we could have the business logic and the data layer in the KMM module, while the visual part could be built with Jetpack Compose on Android and SwiftUI on iOS. This can be seen as an advantage or a disadvantage. On one hand, if you are used to work with Flutter or React Native, it may seem that creating an application with KMM is going to require more work, since unlike these two KMM does not provide you with a shared visual layer. However there are some advantages that this approach has:
Related posts
- Getting Started Guide for Kotlin Multiplatform Mobile (KMM) with Flexible Sync
- Can't pick a Mac for cross platform mobile development. Which one should I go with?
- what is the best way to use flutter to get an iOS app from my kotlin code ?
- React or flutter? What is good for future
- Flutter for an Electronic Health Record and medical equipment app