Can Compose Resources be used in a non-KMP module?...
# compose
m
Can Compose Resources be used in a non-KMP module? I.e. have a
composeResources
directory in a plain old Android module, and have it generate a
Res
class. All the docs point to putting
composeResources
under the common source set, but that doesn't apply here.
🚫 1
k
compose resources require the compose multiplatform gradle plugin
m
Thank you, so if I have one CMP Gradle module with a Compose component taking a
DrawableResource
, and I'm using it from an Android-only module and want to pass an image resource in, the intended way is to convert the Android module to be a "KMP module" with a single Android source set, so that I can use Compose Resources generation for that image?
k
Yes
👍 1