SHARE
TWEET

Untitled

a guest May 25th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Add project specific ProGuard rules here.
  2. # You can control the set of applied configuration files using the
  3. # proguardFiles setting in build.gradle.
  4. #
  5. # For more details, see
  6. #   http://developer.android.com/guide/developing/tools/proguard.html
  7.  
  8. # If your project uses WebView with JS, uncomment the following
  9. # and specify the fully qualified class name to the JavaScript interface
  10. # class:
  11. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  12. #   public *;
  13. #}
  14.  
  15. # Uncomment this to preserve the line number information for
  16. # debugging stack traces.
  17. #-keepattributes SourceFile,LineNumberTable
  18.  
  19. # If you keep the line number information, uncomment this to
  20. # hide the original source file name.
  21. #-renamesourcefileattribute SourceFile
  22.  
  23. ##---------------Begin: proguard configuration common for all Android apps ----------
  24. -optimizationpasses 5
  25. -verbose
  26. -dump class_files.txt
  27. -printseeds seeds.txt
  28. -printusage unused.txt
  29. -printmapping mapping.txt
  30. -optimizations !code/simplification/arithmetic,!code/simplification/cast,!code/simplification/advanced,!class/merging/*,!code/allocation/variable,!field/*,!method/removal/parameter,!method/propagation/parameter,!method/inlining/*
  31. -repackageclasses ''
  32. -keeppackagenames doNotKeepAThing
  33. -dontnote
  34. -allowaccessmodification
  35. -dontwarn **
  36. -target 1.8
  37. -useuniqueclassmembernames
  38. -dontusemixedcaseclassnames
  39. -dontskipnonpubliclibraryclasses
  40. -dontpreverify
  41.  
  42. -keepattributes *Annotation*
  43. -keepattributes SourceFile,LineNumberTable
  44.  
  45. -keepnames class * implements java.io.Serializable
  46.  
  47. -keepclassmembers class * implements java.io.Serializable {
  48.     static final long serialVersionUID;
  49.     private static final java.io.ObjectStreamField[] serialPersistentFields;
  50.     !static !transient <fields>;
  51.     !private <fields>;
  52.     !private <methods>;
  53.     private void writeObject(java.io.ObjectOutputStream);
  54.     private void readObject(java.io.ObjectInputStream);
  55.     java.lang.Object writeReplace();
  56.     java.lang.Object readResolve();
  57. }
  58.  
  59. -keepclassmembers class * implements android.os.Parcelable {
  60.       public static final android.os.Parcelable$Creator *;
  61. }
  62.  
  63. -keep interface org.parceler.Parcel
  64. -keep @org.parceler.Parcel class * { *; }
  65. -keep class **$$Parcelable { *; }
  66.  
  67. -keepclasseswithmembernames class * {
  68.  native <methods>;
  69. }
  70.  
  71. -keepclasseswithmembers class * {
  72.  public <init>(android.content.Context, android.util.AttributeSet);
  73.  public <init>(android.content.Context, android.util.AttributeSet, int);
  74. }
  75.  
  76. -keepclassmembers class **.R$* {
  77.  public static <fields>;
  78. }
  79.  
  80. #disable logs, comment if debuggable = true (gradle) for logging in release mode
  81. -assumenosideeffects class android.util.Log {
  82.     public static boolean isLoggable(java.lang.String, int);
  83.     public static int v(...);
  84.     public static int i(...);
  85.     public static int w(...);
  86.     public static int d(...);
  87.     public static int e(...);
  88. }
  89. -assumenosideeffects class java.io.PrintStream {
  90.     public void println(...);
  91. }
  92.  
  93. #---------------End---------------#
  94.  
  95. -keep class butterknife.** { *; }
  96. -dontwarn butterknife.internal.**
  97. -keep class **$$ViewBinder { *; }
  98.  
  99. -keepclasseswithmembernames class * {
  100.     @butterknife.* <fields>;
  101. }
  102.  
  103. -keepclasseswithmembernames class * {
  104.     @butterknife.* <methods>;
  105. }
  106.  
  107. -keep class sun.misc.Unsafe { *; }
  108. -keep class com.google.gson.stream.** { *; }
  109.  
  110. -keep class com.google.**
  111. -dontwarn com.google.**
  112.  
  113. -dontwarn org.joda.convert.**
  114. -dontwarn org.joda.time.**
  115. -keep class org.joda.time.** { *; }
  116. -keep interface org.joda.time.** { *; }
  117.  
  118. -dontwarn com.squareup.okhttp.**
  119.  
  120. -keepattributes *Annotation* # Needed by google-api-client
  121. -keepattributes Signature # Needed by google-api-client
  122.  
  123. # Needed by google-api-client to keep generic types and @Key annotations accessed via reflection
  124. -keepclassmembers class * {
  125.   @com.google.api.client.util.Key <fields>;
  126. }
  127.  
  128. # Needed by Retrofit2
  129. -dontwarn retrofit2.**
  130. -keep class retrofit2.** { *; }
  131. -keepattributes Signature
  132. -keepattributes Exceptions
  133.  
  134. -keepclasseswithmembers class * {
  135.     @retrofit2.http.* <methods>;
  136. }
  137.  
  138. # Okio
  139. -keep class sun.misc.Unsafe { *; }
  140. -dontwarn java.nio.file.*
  141. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  142. -dontwarn okio.**
  143.  
  144. # Bottom Navigation Helper
  145. -keep class android.support.design.internal.BottomNavigationItemView{ *; }
  146. -keep class android.support.design.internal.BottomNavigationMenuView{ *; }
  147.  
  148. # http://greenrobot.org/eventbus/documentation/proguard/
  149.  
  150. -keepattributes *Annotation*
  151. -keepclassmembers class ** {
  152.     @org.greenrobot.eventbus.Subscribe <methods>;
  153. }
  154. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  155.  
  156. # Only required if you use AsyncExecutor
  157. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  158.     <init>(java.lang.Throwable);
  159. }
  160.  
  161. -keep class model.entity.Dashboard.** { *; }
  162.  
  163. -keep class dev.hdcstudio.tubecomment.eventbus.**
  164.  
  165. -dontwarn okhttp3.**
  166. -dontwarn okio.**
  167. -dontwarn javax.annotation.**
  168. -dontwarn org.conscrypt.**
  169. # A resource is loaded with a relative path so the package of this class must be preserved.
  170. -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
  171.  
  172. #-keep class dev.hdcstudio.tubecomment.utils.AppUtils
  173. #-keep class dev.hdcstudio.tubecomment.loginyoutube.**
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top