Thursday, 13 February 2014

How to enable the proguard to protect our andoid source code?

1) Open the file in our andoid app.

 there is a option to enable the proguard.



just delete the " # "  symbol from the above line.

result will be like this:


2) Suppose,if we are using any external jar files then we will be facing some problems,To avoid such problems we

 have to use the keep,dontwarn option.

-keep class javax.** { *; }
-keep class org.** { *; }
-keep class twitter4j.** { *; }

-dontwarn org.apache.log4j.**
-dontwarn org.apache.commons.logging.**
-dontwarn org.slf4j.**
-dontwarn org.json.**

For more Details, Visit the below link: