thieumao

ProGuard

Mar 4th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. http://stackoverflow.com/questions/4732656/enabling-proguard-in-eclipse-for-android
  2.  
  3. Đang lỗi:
  4.  
  5. -dontwarn android.support.**
  6. -optimizationpasses 5
  7. -dontusemixedcaseclassnames
  8. -dontskipnonpubliclibraryclasses
  9. -dontpreverify
  10. -verbose
  11. -dontskipnonpubliclibraryclassmembers
  12. -dontwarn **CompatHoneycomb
  13. -keep class android.support.v13.** { *; }
  14. -ignorewarnings
  15.  
  16.  
  17. -libraryjars /libs/android-async-http-1.4.3.jar
  18. -libraryjars /libs/android-support-v4.jar
  19. -libraryjars /libs/aniqroid-2.1.jar
  20. -libraryjars /libs/commons-codec.jar
  21. -libraryjars /libs/gcm.jar
  22. -libraryjars /libs/guava-r09.jar
  23. -libraryjars /libs/jsoup-1.7.3.jar
  24. -libraryjars /libs/sqlcipher.jar
  25. -libraryjars /libs/universal-image-loader-1.9.2.jar
  26.  
  27.  
  28.  
  29. -dontwarn com.slidingmenu.*
  30.  
  31. -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  32.  
  33. #class like a, b, c...
  34. -repackageclasses ''
  35.  
  36. # The support library contains references to newer platform versions.
  37. # Don't warn about those in case this app is linking against an older
  38. # platform version. We know about them, and they are safe.
  39. -dontwarn android.support.**
  40.  
  41. -keep public class * extends android.app.Activity
  42. -keep public class * extends android.app.Application
  43. -keep public class * extends android.app.Service
  44. -keep public class * extends android.content.BroadcastReceiver
  45. -keep public class * extends android.content.ContentProvider
  46. -keep public class * extends android.app.backup.BackupAgentHelper
  47. -keep public class * extends android.preference.Preference
  48. -keep public class com.android.vending.licensing.ILicensingService
  49.  
  50. -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  51. -keep class com.apperhand.** {
  52. *;}
  53.  
  54. -keep class com.appvn.topfree.storeviet.allactivity.** { *;}
  55.  
  56. -keepattributes Exceptions, InnerClasses, Signature, Deprecated, SourceFile, LineNumberTable, *Annotation*, EnclosingMethod
  57. -dontwarn android.webkit.JavascriptInterface
  58.  
  59. -keep class com.google.ads.**
  60. -dontwarn com.google.ads.**
  61.  
  62.  
  63. -keepclasseswithmembernames class * {
  64. native <methods>;
  65. }
  66.  
  67. -keepclasseswithmembers class * {
  68. public <init>(android.content.Context, android.util.AttributeSet);
  69. }
  70.  
  71. -keepclasseswithmembers class * {
  72. public <init>(android.content.Context, android.util.AttributeSet, int);
  73. }
  74.  
  75. -keepclassmembers class * extends android.app.Activity {
  76. public void *(android.view.View);
  77. }
  78.  
  79. -keepclassmembers enum * {
  80. public static **[] values();
  81. public static ** valueOf(java.lang.String);
  82. }
  83.  
  84. -keep class * implements android.os.Parcelable {
  85. public static final android.os.Parcelable$Creator *;
  86. }
  87.  
  88. -keepclassmembers class **.R$* {
  89. public static <fields>;
  90. }
  91.  
  92. -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
Advertisement
Add Comment
Please, Sign In to add comment