Have you tried publishing a multiplatform librarie...
# library-development
c
Have you tried publishing a multiplatform libraries and you noticed that your users don't get your
src/xxxMain/resources
? The Kotlin Resources plugins bundle your multiplatform static files into the published artifacts so your users can access them. New documentation site! • #C078Z1QRHL3
k
It works out-of-the-box with Compose Multiplatform resources since Compose 1.6.10 (but resources should be in the
composeResources
directory 😉 ) https://kotlinlang.org/docs/multiplatform/compose-multiplatform-resources-setup.html#publication
c
But only if you're using Compose…
Though the Compose plugin also includes accessors for the resources, which mine doesn't.
k
you are right. for the compose-less multiplatform resources there is an issue: KT-49981 Multiplatform API to access library and application resources
c
Does Compose Resources support native? I can't find the answer, but since Compose doesn't, I guess not?
k
CMP supports ios and macos native targets
c
Ok. My plugin supports all platforms.