I had been a bit frustrated with the lack of prope...
# kotlin-native
v
I had been a bit frustrated with the lack of proper date/time support in Kotlin/Native, especially for my chosen platform,
linuxArm32Hfp
for the Raspberry Pi. So I checked out the kotlinx-datetime code, and took a look - perhaps I could make it work? After all, what's the different between
linuxX64
and
linuxArm32Hfp
- both are POSIX, both are likely to include the same core libraries. It turns out, there isn't a difference - I took kotlinx-datetime, added a single line to
build.gradle.kts
- I added
target("linuxArm32Hfp")
, compiled, deployed to maven local, and it worked. I was able to use kotlinx-datetime in my Raspberry Pi code just fine. I haven't fully tested it, but for my simple use case, it seems to be working just fine. So I'm beginning to wonder, what other Kotlin/Native libraries will 'just work' on "unsupported" platforms with just a small change to the build configuration?
🤔 2
a
You can even run tests for that target. Just run
linkDebugTestLinuxArm32Hfp
locally, and then run the produced kexe on your Rospberry.
👍 1