The main pain point of Kotlin multiplatform now for me is build libraries, like a data structure library that doesn't depend on any platform specific implementation. The current problem is publish the library because you need to compile for all platforms native platforms.
I was checking the Jetbrains Kotlinx library and they use a gradle plugin called infra that does this work, but I think is an internal plugin, anyone has an idea if this infra plugin will be shared to the community or any other current alternative to do it?
2 years ago
If I've read the
blog post correctly, you'll soon be able to publish platform independent libraries. Compile to IR and let consumer do the rest.(Also, last time I checked, infra was deprecated. Not sure)You can follow https://youtrack.jetbrains.com/issue/KT-30088