Home Ask Login Register

Developers Planet

Your answer is one click away!

IT Developers February 2016

what is the difference between -keep class and -dontwarn

Hey I'm new with proGuard , I use it to protect my code from reverse engineering , but when I built my signed apk I got a lot of errors when I enabled proGuard ,I have googled my problem I've found answers that says use -dontwarn for the classes that showing in the error message but after seeing the documentation from proGuard it says

If you don't feel like filtering out the problematic classes, you can try your luck with the -ignorewarnings option, or even the -dontwarn option. Only use these options if you really know what you're doing though.

and I don't know what I'm doing and here is my proguard-rules.pro file

-dontwarn okio.**
-dontwarn org.apache.**
-dontwarn com.appodeal.**
-dontwarn com.parse.**
-dontwarn com.squareup.**

and I've seen some answers says use -keep class

so can someone explain it


Prokky February 2016

-keep class Preserve the specified classes and class members.

-dontwarn Don't warn about unresolved references at all.

More info here http://proguard.sourceforge.net/manual/refcard.html

Post Status

Asked in February 2016
Viewed 2,735 times
Voted 12
Answered 1 times


Leave an answer

Quote of the day: live life