Skip to content

Problems with R8 fullmode #69

@BraisGabin

Description

@BraisGabin

I'm getting this error message when enable full mode of R8:

kotlinx.serialization.json.internal.JsonDecodingException: Class discriminator was missing and no default serializers were registered in the polymorphic scope of 'NetworkResponse'.

I found this other issue opened to R8: https://issuetracker.google.com/issues/340494391

My case is exactly like the one described there.

As a workaround I added this rule to my proguard:

-keep class com.haroldadmin.cnradapter.** { *; }

I know that it's not perfect, I'm keeping way more than needed but because this library is small I don't care that much.

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