Application crashing when minifyEnabled is set to true
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.
Same here. @haroldadmin any idea? It's because of Proguard.
@Klewerro Adding the following in proguard rules seems to fix the issue:
-keep,allowobfuscation,allowshrinking interface com.haroldadmin.cnradapter.NetworkResponse
I used -keep class com.haroldadmin.cnradapter.** { *; } just to keep everything
-keep class com.haroldadmin.cnradapter.** { *; }
Thanks @Klewerro. I tried adjusting proguard for Retrofit, and in the end, it was this adapter release can't find
Thanks all for the info.
This helped me, too.
If your app has multiple modules, try adding this to all the relevant modules and also the app module.
I would suggest adding this info to the README.md