https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

Sebastian Kaspari

02/03/2021, 4:25 PM
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

Marc Knaup

02/03/2021, 6:09 PM
There is no multiplatform solution for that. Platforms are way too different for that 😕
b

Big Chungus

02/04/2021, 7:39 AM
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

Sebastian Kaspari

02/04/2021, 9:53 AM
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

Kathrin Petrova

02/05/2021, 12:43 PM
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

Sebastian Kaspari

02/05/2021, 1:03 PM
@Kathrin Petrova Awesome, thank you, I’ll take a look at that. 🙂