moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Image resources from iosMain is not available in iOS framework

Open romanandreyvich opened this issue 4 years ago • 3 comments

I have some image resources that should be presented in my iOS app and shouldn't in android app.

The issue is:

I add a resource to iosMain/resources/MR/images/ but it is not available in my iOS project.

Expected behaviour: MR.images.getImageByFileName("my_resource") - returns my image resource from iosMain

Actual behaviour: MR.images.getImageByFileName("my_resource") - returns null

Environment: Moko-resources 0.13.0 Kotlin 1.4.31 Android studio 4.2

romanandreyvich avatar Jun 03 '21 10:06 romanandreyvich

hi! we have not thought about such use-case, but thanks for the idea - we will implement it in the future

Alex009 avatar Jun 03 '21 12:06 Alex009

@Alex009 I have also faced this kind of use case. As a workaround I can put a file into my ios project, but it is less convenient

krottv avatar Jul 12 '21 13:07 krottv

in #575 implemented logic with support of resources in each sourceset

Alex009 avatar Jan 14 '24 14:01 Alex009

will be fixed in 0.24.0, please check in 0.24.0-alpha-6

ExNDY avatar Apr 17 '24 05:04 ExNDY

fixed in 0.24.0-beta-1

Alex009 avatar Apr 19 '24 15:04 Alex009