java - Proguard does not remove my logs -


I want to clear my project from logs when I release but I'm trying to use Progoo and Zero result received: My project settings:

  proguard.config = $ {sdk.dir} /tools/proguard/proguard-android.txt:proguard- Project.txt # Project goal target = Android-19 android.library.reference.1 = .. \\ google-play-services_lib   

and my proguard-attribute

  -optimizationpasses 5 - dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -keepattributesLineNumberTable -verbose -optimizations! Code / Simplification / Arithmetic ,! Field / *,! Category / Merge / * -RemanosourceFilelight Output SourceFile- Maintenance SourceFile, LineNumberTable #debug to remove log: -assumenosideeffects class android .atil.log {public static *** D (...); Public Static *** V (...); Public static *** w (...); Public Static *** I (...); } -keep class android.support.v4. ** {*; } -keep Public Class * Android Extends the app. Activity-PP public class * Android.app Expands - Public Sector * Android Ape Fregiment - CAP Expands Public Class * Android.APIlist Activity - PP Public Category * Android.AP Service-protected public class * extends android.content.broadcastReceiver -keep public class * Android content.contentproware -keep public class com.android.vending.licensing.LicensingService -keepclasses with member class * {native & lt; Methods & gt; } -keepclasseswithmembers class * {public & lt; Init & gt; (Android.content.Contxt, android.util.AttributeSet); } -keepclasseswithmembers class * {public & lt; Init & gt; (Android.content.Contxt, android.util.AttributeSet, int); } -keepclassmembers enum * {public static ** [] value (); Public stable ** valueOf (java.lang.String); } -keepclassmembers class net.hockeyapp.android.UpdateFragment {*; } -keepclassmembers class * {public void onClickUpdate (android.view.View); } -keep public class javax.net.ssl ** -keepclassmembers public class javax.net.ssl. ** {*; } -keep public class org.apache.http. ** -keepclassmembers public class org.apache.http. ** {*; }   

Why does not this work? I'm trying to turn on / off optimization..with results

Android-optimize.txt , if you want to work with assumenosideeffects settings:

change your proguard.config line to the following:

proguard.config = $ {sdk.dir} / tools / proguard / proguard-android- Customize .txt: proguard-project.txt

More detailed descriptions about Eric LaFontune can be found about A proguard-android-optimize.txt and proguard-android.txt Confirms

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -