android - Difference between proguard-rules.pro and proguard.cfg -
i learning , implementing proguard first time. have seen examples , add following code in proguard-rules.pro
file, there 1 more file named proguard.cfg
.
i have tried google unable understand difference between proguard.cfg
, proguard-rules.pro
file.
i have added following in proguard-rules.pro
file should add in proguard.cfg
file
#---------------test -dontwarn javax.annotation.** -keep class com.google.** -dontwarn com.google.** -keep class com.conviva.** -dontwarn com.conviva.** -keep class com.loopj.android.http.** -keep class org.apache.http.** -keep class rx.internal.util.** -keep class com.algolia.search.** -dontwarn com.loopj.android.http.** -dontwarn org.apache.http.** -dontwarn rx.internal.util.** -dontwarn com.algolia.search.** -keep public class android.net.http.sslerror -keep public class android.webkit.webviewclient -dontwarn android.webkit.webview -dontwarn android.net.http.sslerror -dontwarn android.webkit.webviewclient -assumenosideeffects class android.util.log { public static boolean isloggable(java.lang.string, int); public static int v(...); public static int i(...); public static int w(...); public static int d(...); public static int e(...); } #---------------test
you have write proguard commands inside proguard-rules.pro. can find file inside project as
yourproject -> app -> src-> proguard-rules.pro
inside file proguard.cfg
have to-do nothing.
Comments
Post a Comment