-
Notifications
You must be signed in to change notification settings - Fork 564
Resource sharing #2248
Comments
Hmm, not sure how Kotlin/Native prevents resource sharing, or how it could help with it. Could you please elaborate? |
Maybe something like #1819 Embedding resourses, like in jar on jvm |
You could copy resources to framework by executing copy command from gradle: |
@olonho, For example, it can generate Static variables from string resources. |
@petrukhnov The problem not only to copy but also an ability to use it for other platforms |
This is what I do at the moment in my build.gradle to copy over resources for iOS: exec {
commandLine "cp"
args = ["-r", "$projectDir/src/commonMain/resources", "$buildDir/bin/ios/debugFramework/test_shared_library.framework"]
} |
for mobile platforms you can use https://github.com/icerockdev/moko-resources too |
This is ok for specific assets (images, font, translation), but does not let you share generic file types like a HTML or .mp4 file. |
yes, for now it is, but support of generic files will be added soon |
According to migrating issue tracking to YouTrack, closing this issue in favour of https://youtrack.jetbrains.com/issue/KT-39194 |
I think it will be great to add support to share resources between platforms, for example, strings, colours, images and so on․
The text was updated successfully, but these errors were encountered: