Enabling a Proguard Protected Application

My application works without proguard protection, but when I turn it on, the application will work immediately. I tried many combinations in the configuration to no avail.

Is there something that I must observe that I am missing?

proguard config: https://gist.github.com/hanleyhansen/99fc07807950bae8e4f5

Unobfuscated log: https://gist.github.com/hanleyhansen/6cba7fc941a79d85802f

onSuccess (): https://gist.github.com/hanleyhansen/e7a4916c42d3ca065c99

+7
source share
2 answers

I found a violation code. I modified my Proguard.cfg to fit the following:

https://github.com/google/gson/blob/9f8ace9ac4c56b82eba1bbd8b44f80e042bda7e0/examples/android-proguard-example/proguard.cfg

And now everything works!

+6
source

Usually proguard removes several classes if they are not explicitly set as

-keepclassmembers .... 

But such errors are displayed as classNotFound , NoSuchMethodException , etc.,

Anyways decodes the log code that you used this and check what actually caused NPE .

+3
source

All Articles