:kotlin-intensifies-purple: Hey Library Authors! :...
# library-development
m
K Hey Library Authors! 🎅🏻 🎁 Starting with Kotlin 2.1.0 you can publish Kotlin libraries from any host*! What this means in practice is that you don't need a Mac machine to publish a KMP library targeting all platforms (including iOS, MacOS, and WatchOS). For example if you are using GitHub CI/CD you can use the cheaper non-Mac hosts and still target Mac platforms (or add support for Mac platforms if you didn't before). The feature is still experimental and you need to opt-in:
Copy code
# gradle.properties
kotlin.native.enableKlibsCrossCompilation=true
We are looking for any unknown limitations and problems we need to address. We would appreciate your feedback if you encounter any in this YouTrack issue! *Cross-compilation has some limitations. You still need to use a Mac machine if: • Your library has a cinterop dependency. • You have CocoaPods integration set up in your project. • You need to build or test final binaries for Apple targets. For cinterop dependencies we are tracking this in this YouTrack issue and would love to hear what's your use case there!
very nice 8
🆒 1
🚀 9
👍 1
K 20
K 2
❤️ 3
m
Holy S... Noticing this for the first time when dipping into a darwin source set file from Linux after updating to
2.1.10
. Being able to work with darwin source sets from Linux is a huge win, let alone cross-compilation. Will cut down on needing to VNC/SSH into my Mac Mini to virtually never.