Skip to content

Proguard missing class Resource_androidKt #397

Description

@hrodrick

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions