Hi! When trying to build an android release app with minification enabled, I am receiving the following error:
Missing class org.jetbrains.compose.resources.Resource_androidKt (referenced from: java.lang.Object com.multiplatform.webview.web.IWebView$DefaultImpls.loadRawHtmlFile(com.multiplatform.webview.web.IWebView, java.lang.String, kotlin.coroutines.Continuation))
It looks like it is being caused by the resource call at
@OptIn(ExperimentalResourceApi::class)
suspend fun loadRawHtmlFile(fileName: String) {
val res = resource(fileName)
val html = res.readBytes().decodeToString().trimIndent()
loadHtml(html, encoding = "utf-8")
}
Adding -keep class org.jetbrains.compose.resources.** { *; } does not make a difference.
is there any known workaround to handle this? Am I missing something?
Hi! When trying to build an android release app with minification enabled, I am receiving the following error:
It looks like it is being caused by the resource call at
Adding
-keep class org.jetbrains.compose.resources.** { *; }does not make a difference.is there any known workaround to handle this? Am I missing something?