NetworkResponseAdapter icon indicating copy to clipboard operation
NetworkResponseAdapter copied to clipboard

Problems with R8 fullmode

Open BraisGabin opened this issue 6 months ago • 0 comments

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.

BraisGabin avatar Jun 26 '25 15:06 BraisGabin