in a multi-module setup? In my project I have multiple multiplatform modules (usually split by feature) and then I’m using the umbrella framework approach to integrate them into iOS as a single framework. The problem is that when I use
moko-resources
on more than one module, of course I end up with multiple
MR_, MR__, etc
on the Swift side.
What’s the recommended approach with this setup?
Thanks
a
alex009
07/13/2021, 3:43 PM
hi! our way of usage in multimodule showed in https://github.com/icerockdev/moko-template - we generate resources in umbrella module and pass them into feature-modules by dependency injection.
On swift side (and on android side) we never use MR calls - all MR calls in shared kotlin module. from shared kotlin module we got
StringDesc
and convert it to String on android and ios side where we bind to UI.