@florent That’s a valid option but a completely different approach. It circumvents the whole resource loading logic that you would normally use and replaces it with some externally generated source code. That’s an approach I have used in the past but do not want to follow again.
Generally speaking, these are very Android specific (and are provided by the Android OS), I'd personally expect them to not be supported in multiplatform resources.
But maybe the Compose team has other ideas, and would support that to streamline the DX instead of focusing on "purity"