Join Slack
Powered by
I am starting to convert an application from Kotli...
# multiplatform
g
George Russell
07/27/2024, 2:12 PM
I am starting to convert an application from Kotlin to Kotlin MultiPlatform. Where in the new directory structure should the old res directory (drawables, layouts, values etc) be placed that are not converted to compose yet?
d
Daniel Weidensdörfer
07/27/2024, 2:42 PM
Lets Google "kotlin multiplatform resources" ;).
https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html
😅 1
☝️ 1
a
Angelos
07/27/2024, 3:13 PM
Until you move them to Multiplatform Resources as mentioned above, you can use them as Android resources by placing them inside
src/androidMain/
but keep in mind that will be accessible only from code in androidMain, won’t be for all platforms.
c
cd1
07/27/2024, 11:44 PM
Isn't this only for Compose Multiplatform? Is there an alternative of that for KMP? How does iOS access the strings?
2
Views
Open in Slack
Previous
Next