Mirzamehdi
06/02/2023, 5:31 PMsealed interface UiMessage {
data class Resource(val id: StringResource) : UiMessage
data class Message(val message: String?) : UiMessage
@Composable
fun getMessage(): String {
return when (this) {
is Message -> this.message ?: ""
is Resource -> stringResource(this.id)
}
}
}
Because in android side app works normally, but if I run this in ios side I get this error:
e: There are still 1 unbound symbols after generation of IR module <shared>:
Unbound public symbol IrSimpleFunctionPublicSymbolImpl: com.mmk.common.ui.util/UiMessage.getMessage|6304721183059763253[0]
When I remove @Composable annotation from function, this error goes awaySunil Kumar
06/03/2023, 3:48 AMMirzamehdi
06/03/2023, 5:00 PMDima Avdeev
06/04/2023, 10:40 AM