Is it possible to ship non-code resources in a Kot...
# multiplatform
s
Is it possible to ship non-code resources in a Kotlin multiplatform library? I assume not (yet?) because it’s tricky and unclear where they should end up depending on platform? Has anyone explored that?
m
There is no multiplatform solution for that. Platforms are way too different for that 😕
b
Hmm, but I've been shipping that for wasm + js combo lib already
Just put stuff in your resources folder and it gets packaged in platform specific way. Not sure if it works via commonResources
s
Oh? It does get packaged? I’ll have to try that. Even if it doesn’t work via commonResources, maybe you can get it to accept the same resource folder? 😄
k
Hey @Sebastian Kaspari! There is a community library (and gradle plugin) for sharing resources between mobile targets - https://github.com/icerockdev/moko-resources. youtrack Here is the related ticket
👍 2
s
@Kathrin Petrova Awesome, thank you, I’ll take a look at that. 🙂