Advertisement
solodroid

proguard-rules.pro

Oct 29th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.14 KB | None | 0 0
  1. -ignorewarnings
  2.  
  3. # JSR 305 annotations are for embedding nullability information.
  4. -dontwarn javax.annotation.**
  5.  
  6. # A resource is loaded with a relative path so the package of this class must be preserved.
  7. -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
  8.  
  9. # Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
  10. -dontwarn org.codehaus.mojo.animal_sniffer.*
  11.  
  12. # OkHttp platform used only on JVM and when Conscrypt dependency is available.
  13. -dontwarn okhttp3.internal.platform.ConscryptPlatform
  14.  
  15. # Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
  16. # EnclosingMethod is required to use InnerClasses.
  17. -keepattributes Signature, InnerClasses, EnclosingMethod
  18.  
  19. # Retain service method parameters when optimizing.
  20. -keepclassmembers,allowshrinking,allowobfuscation interface * {
  21.     @retrofit2.http.* <methods>;
  22. }
  23.  
  24. # Ignore annotation used for build tooling.
  25. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  26.  
  27. # Ignore JSR 305 annotations for embedding nullability information.
  28. -dontwarn javax.annotation.**
  29.  
  30. # Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
  31. -dontwarn kotlin.Unit
  32.  
  33. # Top-level functions that can only be used by Kotlin.
  34. -dontwarn retrofit2.-KotlinExtensions
  35.  
  36. # Preference objects are inflated via reflection
  37. -keep public class android.support.v7.preference.Preference {
  38.   public <init>(android.content.Context, android.util.AttributeSet);
  39. }
  40. -keep public class * extends android.support.v7.preference.Preference {
  41.   public <init>(android.content.Context, android.util.AttributeSet);
  42. }
  43.  
  44. -dontwarn com.google.android.gms.**
  45. -keep class com.google.android.gms.** { *; }
  46. -keep class com.google.firebase.** { *; }
  47.  
  48. -keep public class android.support.v7.widget.** { *; }
  49. -keep public class android.support.v7.internal.widget.** { *; }
  50. -keep public class android.support.v7.internal.view.menu.** { *; }
  51.  
  52. -keep public class * extends android.support.v4.view.ActionProvider {
  53.     public <init>(android.content.Context);
  54. }
  55.  
  56. -keep class com.balysv.** { *; }
  57. -keep class org.ocpsoft.** { *; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement