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

Application crashing when minifyEnabled is set to true #63

Open
Klewerro opened this issue Apr 6, 2023 · 3 comments
Open

Application crashing when minifyEnabled is set to true #63

Klewerro opened this issue Apr 6, 2023 · 3 comments

Comments

@Klewerro
Copy link

Klewerro commented Apr 6, 2023

Probably caused by obfuscation. Currently in my rules I have mostly retrofit and okHttpt related rules, and my app crashing only when I'm trying to make http request. When I tried to comment http call useCase, everything works well.
What should I put in proguard-rules.pro?
Probably the same as this issue.

@PavlosTze
Copy link

Same here. @haroldadmin any idea? It's because of Proguard.

@PavlosTze
Copy link

@Klewerro Adding the following in proguard rules seems to fix the issue:
-keep,allowobfuscation,allowshrinking interface com.haroldadmin.cnradapter.NetworkResponse

@Klewerro
Copy link
Author

I used -keep class com.haroldadmin.cnradapter.** { *; } just to keep everything

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

2 participants