-
Notifications
You must be signed in to change notification settings - Fork 129
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
Enabling minifi on android causes classCast Exeption #731
Comments
Hi @PeterHasse, Thank you for reporting this issue. It appears that the problem may be related to the obfuscation settings for the Applying these rules correctly is crucial for Retrofit to function properly after the obfuscation process. If you continue to experience issues or if the rules are correctly in place, please let us know. Best regards |
Hey @bednar I can confirm that the rules from the retrofit pro guard file are merged into I did not manged to produce a log output of r8/gradle for further confirmation. I did copy all the rules from retrofit to our proguard file and it did not solve the issue. |
@bednar do you need futher information from our side? We now have a working github action flow to build the APK which might help to analyze the problem. |
Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
I not sure how to reproduce this in a general way. In our android application https://github.com/omnt/OpenMobileNetworkToolkit the issues occures when minifiing is anabled.
As a workarround i added
to the proguard rules. Im not entierly sure if the problem is no caused by our code but at least disabling the minifing for the influx lib solves the isse.
-keep class com.influxdb.**
(if already included in the code version)altetnativ the 0.2 release APK from the github page results in the same issue but is probably not helpfull for debugging
Expected behavior:
Same behavior of normal and minified build
Actual behavior:
minfied build causes an exeption
Specifications:
The text was updated successfully, but these errors were encountered: