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
Big Chungus
10/20/2022, 7:45 PM
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
alex009
10/21/2022, 5:04 AM
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
Big Chungus
10/21/2022, 9:04 AM
Oh, neat! Apologies for spreading misinformation then!