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
Dominaezzz
02/02/2020, 2:29 PM
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
Dominaezzz
02/02/2020, 2:30 PM
For a current workaround, you can use GitHub actions to build for each platform. And it also depends on where you are publishing too.