jacobras / Human-Readable

A small set of data formatting utilities for Kotlin Multiplatform (KMP).
MIT License
161 stars 11 forks source link

WatchOS target #60

Open cvb941 opened 5 months ago

cvb941 commented 5 months ago

Hi, Could you please add support for the WatchOS targets? Support for tvOS would be nice as well.

jacobras commented 3 months ago

One issue is that the localisaton library used, Libres, doesn't support WatchOS. It does support tvOS: https://github.com/Skeptick/libres/blob/master/libres-core/build.gradle.kts#L11

And the library doesn't seem to be maintained anymore, not getting any updates since December 2023. I'm considering looking into using the Compose Compiler, as it has resources support.. but I'd first have to measure the binary impact as Libres is very small.

jacobras commented 2 months ago

I'm considering looking into using the Compose Compiler, as it has resources support.. but I'd first have to measure the binary impact as Libres is very small.

Compose Resources is nice in that it allows for better regional support, but there isn't a way to manually set the locale yet: https://github.com/JetBrains/compose-multiplatform/issues/4197