Thread
#compose
    FunkyMuse

    FunkyMuse

    1 year ago
    Hey guys, anyone running into a weird issue where using compose with pro-guard enabled, minify and shrink resources gets this exception when using Retrofit with Moshi code-gen ? Everything works fine in debug mode without proguard, same network code is used on non-compose project, there isn't any crash like this.
    java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
    e

    ephemient

    1 year ago
    sounds like proguard is stripping signatures, see if
    -keepattributes Signature
    or something like that helps
    although there might just be unresolved issues around it, https://issuetracker.google.com/issues/188842731
    FunkyMuse

    FunkyMuse

    1 year ago
    yeah, it seems that everything is fine if i disable fullMode 😕
    android.enableR8.fullMode=false
    thanks!
    e

    eygraber

    1 year ago
    If you want more in depth discussion about what is going on, and how you can fix it, check out https://issuetracker.google.com/issues/188703877
    We were able to keep fullMode on
    FunkyMuse

    FunkyMuse

    1 year ago
    Thank you!