Am I correct in understanding from the docs that compose resources (introduced in 1.6.0) cannot be used outside commonMain code? i.e. common resources can't be used in platform-specific code?
My scenario: I have a shared module using compose resources. The
Res
class is generated as internal, and therefore I can't use it from my platform-specific module.
h
Hristijan
04/05/2024, 9:43 PM
Unfortunately at this moment it's impossible to use them outside, except for creating a class that references them and exposes a public API of the internal Res class
But I'm hopeful that they'll change that soon
👀 1
r
rob42
04/06/2024, 7:52 AM
Thanks for clarifying. Unfortunately, this limitation makes resources kind of useless for cross-platform development.
rob42
04/06/2024, 7:52 AM
Do you know if this is being tracked as a task anywhere?