Is there way to use string resources for example f...
# compose
j
Is there way to use string resources for example from shared KMP/CMP module code in an Android module that's using Jetpack Compose? That code is using
androidx.compose.ui.res.stringResource
(and consuming
R.string.*
resources from the Android module). I have following and can access shared strings from say Compose for Desktop client (where
org.jetbrains.compose.resources.stringResource
is used)
Copy code
compose.resources {
    publicResClass = true
}
🫶 1
k
Yes, you are supposed to use the compose multiplatform resource library for that
j
So that will work in an Android module alongside Jetpack Compose dependencies?
I'm using that library in shared code and in the Compose for Desktop modules
k
Why not? I don't see reasons
💙 1
j
Cool, will try that, thanks
just to confirm that that worked