If I have a shared ui library, with its own set of...
# compose-ios
a
If I have a shared ui library, with its own set of resources, and I want to include it into the shared module, how would I do that?
a
So in my case, I have a UI kit with a bunch of android icons being added in a different gradle module, that is then being included in the app module, those resources aren't merged like how all resources get merged in android
I can screenshot that in a little bit for you 🙂
so say I have these resources in the target here
And my project structure is set up like this. RAUL is our ui lib, which the ui iconset then references the ui mobile target, which then references the app mobile target, where the shared framework is made
How would I then ensure that resources get merged into the iOS app bundle at build time?
For larger projects where maybe there is a corporate design system in place, this might need support
a
you can use moko-resources for this case
a
Ah, I'll have to try this today 🙂
Attempted to use Moko Resources today, I’m not sure it’s compatible with gradle version 7.6, getting build configuration cache issues when it’s added into the mix.
Looks like there are issues in YouTrack dating at least 2 years ago 😮
Or even almost 3
a
moko-resources not support configuration cache yet
a
Ah, unfortunately, the benefits of using configuration cache for me makes me want to keep it 😆