Hi all, i have a problem with string resource gene...
# multiplatform
m
Hi all, i have a problem with string resource generation for Testflight. Everything works fine on device (and simulator) but as soon as i download the app from testflight i get errors that the String resource cannot be found. Anyone got similar issue?
Our semi-temporary solution became this
Copy code
interface Strings {
...
}

object EnglishStrings : Strings {
...
}
Then this in the theme.
Copy code
internal val LocalStrings = staticCompositionLocalOf<Strings> { EnglishStrings }
Copy code
val rememberedStrings = remember(currentLanguageCode) {
    when (currentLanguageCode) {
        "en" -> EnglishStrings
        else -> EnglishStrings
    }
}
Copy code
CompositionLocalProvider(
    LocalStrings provides rememberedStrings,
) {
    content()
}