Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with AGP v8.0.0 R8 minification #92

Open
mohsenoid opened this issue May 4, 2023 · 1 comment
Open

Issue with AGP v8.0.0 R8 minification #92

mohsenoid opened this issue May 4, 2023 · 1 comment

Comments

@mohsenoid
Copy link

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.

@mohsenoid
Copy link
Author

mohsenoid commented May 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant