Advertisement
Guest User

ProGuard

a guest
Mar 23rd, 2015
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. ####################################################################################################
  2. ####################################################################################################
  3. ####################################################################################################
  4. ######################################### PROGUARD #################################################
  5. ####################################################################################################
  6. ####################################################################################################
  7. ####################################################################################################
  8.  
  9. # This is a configuration file for ProGuard.
  10. # http://proguard.sourceforge.net/index.html#manual/usage.html
  11. -dontusemixedcaseclassnames
  12. -dontskipnonpubliclibraryclasses
  13. -verbose
  14.  
  15. # Optimization is turned off by default. Dex does not like code run
  16. # through the ProGuard optimize and preverify steps (and performs some
  17. # of these optimizations on its own).
  18. -dontshrink
  19. -dontoptimize
  20. -dontpreverify
  21.  
  22. # If you want to enable optimization, you should include the
  23. # following:
  24. #-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
  25. #-optimizationpasses 5
  26. #-allowaccessmodification
  27. #
  28. # Note that you cannot just include these flags in your own
  29. # configuration file; if you are including this file, optimization
  30. # will be turned off. You'll need to either edit this file, or
  31. # duplicate the contents of this file and remove the include of this
  32. # file from your project's proguard.config path property.
  33.  
  34. -keep public class * extends android.app.Activity
  35. -keep public class * extends android.app.Application
  36. -keep public class * extends android.app.Service
  37. -keep public class * extends android.content.BroadcastReceiver
  38. -keep public class * extends android.content.ContentProvider
  39. -keep public class * extends android.app.backup.BackupAgent
  40. -keep public class * extends android.preference.Preference
  41. -keep public class * extends android.support.v4.app.Fragment
  42. -keep public class * extends android.support.v4.app.DialogFragment
  43. -keep public class * extends com.actionbarsherlock.app.SherlockListFragment
  44. -keep public class * extends com.actionbarsherlock.app.SherlockFragment
  45. -keep public class * extends com.actionbarsherlock.app.SherlockFragmentActivity
  46. -keep public class * extends android.app.Fragment
  47. -keep public class com.android.vending.licensing.ILicensingService
  48.  
  49. # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
  50. -keepclasseswithmembernames class * {
  51. native <methods>;
  52. }
  53.  
  54. -keep public class * extends android.view.View {
  55. public <init>(android.content.Context);
  56. public <init>(android.content.Context, android.util.AttributeSet);
  57. public <init>(android.content.Context, android.util.AttributeSet, int);
  58. public void set*(...);
  59. }
  60.  
  61. -keepclasseswithmembers class * {
  62. public <init>(android.content.Context, android.util.AttributeSet);
  63. }
  64.  
  65. -keepclasseswithmembers class * {
  66. public <init>(android.content.Context, android.util.AttributeSet, int);
  67. }
  68.  
  69. -keepclassmembers class * extends android.app.Activity {
  70. public void *(android.view.View);
  71. }
  72.  
  73. # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
  74. -keepclassmembers enum * {
  75. public static **[] values();
  76. public static ** valueOf(java.lang.String);
  77. }
  78.  
  79. -keep class * implements android.os.Parcelable {
  80. public static final android.os.Parcelable$Creator *;
  81. }
  82.  
  83. -keepclassmembers class **.R$* {
  84. public static <fields>;
  85. }
  86.  
  87. -keep class com.facebook.** { *; }
  88. -keep class com.spotify.** { *; }
  89. -keepattributes Signature
  90.  
  91. #-assumenosideeffects class android.util.Log {
  92. # public static *** e(...);
  93. # public static *** w(...);
  94. # public static *** wtf(...);
  95. # public static *** d(...);
  96. # public static *** v(...);
  97. # public static *** i(...);
  98. #}
  99.  
  100. -keep class android.support.v4.app.** { *; }
  101. -keep interface android.support.v7.app.** { *; }
  102. -keep class com.actionbarsherlock.** { *; }
  103. -keep interface com.actionbarsherlock.** { *; }
  104. # The support library contains references to newer platform versions.
  105. # Don't warn about those in case this app is linking against an older
  106. # platform version. We know about them, and they are safe.
  107. -dontwarn sun.net.**
  108. -dontwarn org.apache.http.impl.**
  109. -dontwarn java.awt.**
  110. -dontwarn javax.**
  111. -dontwarn org.eclipse.jetty.**
  112. -dontwarn com.sun.net.httpserver.**
  113. -dontwarn org.hibernate.**
  114. -dontwarn sun.misc.**
  115. -dontwarn org.dbunit.**
  116. -dontwarn java.lang.**
  117. -dontwarn org.joda.convert.**
  118. -dontwarn org.fourthline.cling.transport.impl.FixedSunURLStreamHandler$UpnpURLConnection
  119. -dontwarn org.fourthline.cling.transport.impl.apache.StreamClientImpl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement