Apps

What’s new in multiplatform Jetpack libraries


Posted by Márton Braun, Developer Relations Engineer

To assist builders who’re already utilizing Kotlin Multiplatform for sharing enterprise logic throughout cell platforms, we beforehand launched experimental multiplatform previews of the Collections and DataStore Jetpack libraries, and we have been receiving nice suggestions from the group.

The multiplatform Collections and DataStore libraries at the moment are transferring from experimental developer previews to alpha releases, and can observe the traditional launch cycle of Jetpack libraries. Annotations, a core Jetpack library, is now additionally out there for multiplatform.

Please be aware that Kotlin Multiplatform remains to be in beta, subsequently the non-Android targets of those libraries don’t have Jetpack’s usual stability guarantees.

The alpha releases can be found from Google’s Maven repository. You possibly can attempt them by including the next dependencies to your Kotlin Multiplatform undertaking:

val commonMain by getting {
dependencies {
implementation("androidx.annotation:annotation:1.7.0-alpha02")

implementation("androidx.assortment:assortment:1.3.0-alpha04")

implementation("androidx.datastore:datastore-core-okio:1.1.0-alpha03")

implementation("androidx.datastore:datastore-preferences-core:1.1.0-alpha03")
}
}

The multiplatform DiceRoller sample app has additionally been up to date to make use of the brand new alpha model of DataStore.

To offer suggestions on these multiplatform releases, create a bug on our issue tracker, or be part of the dialog in the Kotlinlang #multiplatform channel.




Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button