The main pain point of Kotlin multiplatform now fo...
# multiplatform
s
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?
d
If I've read the
1.4
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
🎉 1
For a current workaround, you can use GitHub actions to build for each platform. And it also depends on where you are publishing too.