Human-Readable icon indicating copy to clipboard operation
Human-Readable copied to clipboard

Migrate to Compose Resources or MoKo Resources

Open jacobras opened this issue 11 months ago • 1 comments

Issues with Libres:

  • cannot set package visibility (#92)
  • cannot change generated package (#92)
  • doesn't support watchOS (#60)
  • doesn't support setting region (#142)

Compose Resources should be a closer-to-the-ecosystem replacement. However, it's lacking:

  • manually setting locale (https://youtrack.jetbrains.com/issue/CMP-4197)

MoKo Resources:

  • can set package visibility
  • can change generated package
  • supports watchOS
  • supports setting a region

jacobras avatar Feb 05 '25 09:02 jacobras

Hey, it seems that the use of resources limits the usage of this library to use-cases related to Compose. I am building a CLI application using Kotlin/Native so I cannot use the library nor its source files directly. Currently, I have vibe-coded a simple solution that translates the xml file for english timing resources to pure-Kotlin structures. Would that be an approch viable for all of the other resources? Language detection would happen using expect/actual functions for each supported platform. If that's an option you favour I'd file a PR for a working example for further evaluation.

Julius-Babies avatar Nov 19 '25 15:11 Julius-Babies