dsrees/JavaPhoenixClient

Issue with AGP v8.0.0 R8 minification

Opened this issue · 1 comments

I am facing an issue after updating to the latest AGP v8 that after obfuscation (release build) I keep receiving phx_error even though the proxy confirms that I got okay from the server.

Any comments or thoughts about this issue?

I tried both 1.0.0 and 1.0.1 versions.

Update

After adding the logger to the Socket class I learned that it was caused by java.lang.RuntimeException: Missing type parameter so I managed to fix it by adding this snippet to the proguard-rules.pro

-keep class com.google.gson.reflect.TypeToken
-keep class * extends com.google.gson.reflect.TypeToken
-keep public class * implements java.lang.reflect.Type

Maybe something to add to the Library as consumer-rules to avoid this.