Hi, google recently announced that they have added...
# multiplatform
p
Hi, google recently announced that they have added DataStore and Collections libraries into kotlin multiplatform. They have added them to Jetpack Multiplatform. Those libraries depends on java: • Collections is an example of a library written in the Java programming language that has no Android-specific dependencies, but implements Java collection APIs. • DataStore is written entirely in Kotlin, and it uses coroutines in both its implementation and APIs. It also depends on Java IO and Android platform APIs. Now that these libraries can be used in kotlin multiplatform, does that means that they have been ported to kotlin native removing java dependency and that they can be used to develop a IOS or Windows native project without a JVM installed?
b
I assume it has to be yes but maybe @zsmb can have a better answer 😊 Tried to find the source to have a look but got lost.
z
Yes, these have been ported to remove the Java dependency from them as much as it was possible. You can find some more details in this earlier thread, and you can also check the reference documentation to see what exactly is available. The multiplatform preview builds of these libraries can be used both on the JVM and on native platforms like iOS. Please note that Windows native is not supported.
p
Thank you. Why focusing on IOS? I hope it will be possible to do complex and big applications for windows with kotlin native, without depending on JVM. Seems to be far from now, specially in terms of UI development.
z
JetBrains is also primarily focused on Kotlin Multiplatform Mobile, which just entered beta: https://blog.jetbrains.com/kotlin/2022/10/kmm-beta/
p
😞