I have separated the resources into a module which...
# multiplatform
l
I have separated the resources into a module which runs entirely on moko-resources. How do I include the generated resources xml files when using
publishToMaven
? Create a separate task to copy the generated xml into android folder? Any help will be appreciated 🙇
plus1 1
b
You can't. Moko resources is only able to handle native resources at app level. It's only possible to include resources at library level for jvm/android artefacts at the moment
a
all generated native resources is bundle into library. so your published library contains all resources generated by moko-resources. to use this resources on consumer side: • for android nothing required - just add dependency to your library from your app and all will works • for other targets you should apply moko-resources gradle plugin in your app gradle module - plugin will check libraries and extract resources where found
b
Oh, neat! Apologies for spreading misinformation then!