Kotlin Multiplatform Libraries Now In Preview
Written by Kay Ewbank   
Friday, 14 October 2022

JetBrains has released a preview version of Kotlin Multiplatform mobile libraries, an SDK for cross-platform mobile development for iOS and Android. Kotlin Multiplatform can be used to build apps for iOS and Android with native UI from a single shared codebase for networking, data storage, and analytics, as well as the other logic of your Android and iOS apps.

Kotlin support was added for Android in 2017 with Jetpack libraries, and expanded with Jetpack Compose. Android Jetpack is a suite of libraries for use in Android app development.

 kotlinmulti

 

Multiplatform Mobile makes use of the multiplatform capabilities of Kotlin and provides tooling for cross-platform mobile development in Android Studio.The developers say that while Multiplatform Mobile was at the experimental stage, the Kotlin team tried various approaches to memory management, libraries, and project configuration, and they are now happy with the configuration so have released the beta.

 

The preview of Kotlin Multiplatform Mobile's main aim is code sharing across platforms, and the preview release is limited to two libraries - Collections and DataStore. The developers say these were chosen because they illustrate several important aspects of converting an existing library to multiplatform.

Collections is a library written in Java that has no Android-specific dependencies, but implements Java collection APIs, while DataStore is written entirely in Kotlin, and uses coroutines in both its implementation and APIs.

The libraries are available from Google’s Maven repository, and come with a number of sample projects to make it easier to get started. The sample projects includes samples created using SwiftUI and Jetpack Compose; samples with shared code for view models and navigation; and apps that have made it to the Google and Apple app stores.

Kotlin Multiplatform is available in preview now.

kotlinmulti

More Information

Kotlin Multiplatform Mobile Website 

Related Articles

Android Jetpack Wear OS Libraries Now Stable

Android Jetpack Confusion As V1 Approaches

Google Jetpack Compose UI Toolkit Now In Beta

Android Jetpack Compose Is Welcome, But What About The Churn?

 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


JetBrains AI Assistant - A Welcome Time Saver
28/02/2024

JetBrains AI Assistant saves developers up to eight hours per week and they appreciate its help.  77% of users feel more productive, 75% express that they are happier with their IDE experien [ ... ]



Run Webassembly Components Inside Node.js With Jco
28/03/2024

Jco 1.0 has been just announced by the Bytecode alliance.It's a native Javascript WebAssembly toolchain and runtime that runs Wasm Components inside the Node.js. Why is that useful?


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 02 November 2023 )