I'm looking at the multi-platform support for loading images and I see this note for iOS. Is there any way to make this work now? I can't get libres to work and I have to use a module so that sqldelight will work due to issues it has.
Copy code
Currently, the plugin doesn't support deployment of resources on iOS in multimodule projects. This limitation will be removed in future releases.
Trey
01/10/2024, 9:16 PM
I'm currently getting an error when I try to use it on iOS. The error is that the resource isn't found. I see that the resource is being copied out to compose-resources as expected.
t
tmphey
01/15/2024, 8:07 AM
Afaik there is no way to have resources located in other modules than the one you actually include in iOS project. They are just not copied in the final bundle.
What worked for me was having all the images in that “main” module and then, in other modules, I just access them via string.
Not that safe but at least works 😅
P.S. Using compose multi platform resources lib from JB for images and own localization implementation for strings (neither of existing libs work for me due to multi-module setup)