We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/auth0/Auth0.Android/blob/main/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt#L305
bridgeCredentials fails to properly parse json when shipping a minified build. Adding proguard rules found here works around this issue: https://medium.com/@harryaung/mysterious-null-crash-with-gson-serializedname-fields-when-r8-proguard-is-on-f8a4bd036e34
This issue is new in 2.0
minifyEnabled to work without adding extra rules.
Auth0.Android 2.0.0
The text was updated successfully, but these errors were encountered:
Thanks. I'll add these rules to the consumer proguard rules so that it gets shipped with the next release.
In the meantime, and for anyone looking for a solution in 2.0.0, add the following rules to the proguard rules file in your project.
-keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName <fields>; } -keep,allowobfuscation @interface com.google.gson.annotations.SerializedName
I'll tag this as needs-investigation to signal that the follow-up is on my side.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the problem
https://github.com/auth0/Auth0.Android/blob/main/auth0/src/main/java/com/auth0/android/authentication/storage/SecureCredentialsManager.kt#L305
bridgeCredentials fails to properly parse json when shipping a minified build. Adding proguard rules found here works around this issue: https://medium.com/@harryaung/mysterious-null-crash-with-gson-serializedname-fields-when-r8-proguard-is-on-f8a4bd036e34
This issue is new in 2.0
What was the expected behavior?
minifyEnabled to work without adding extra rules.
Environment
Auth0.Android 2.0.0
The text was updated successfully, but these errors were encountered: