You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
3.5 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  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. # If your project uses WebView withCountdownTimer JS, uncomment the following
  8. # and specify the fully qualified class name to the JavaScript interface
  9. # class:
  10. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  11. # public *;
  12. #}
  13. # Uncomment this to preserve the line number information for
  14. # debugging stack traces.
  15. #-keepattributes SourceFile,LineNumberTable
  16. # If you keep the line number information, uncomment this to
  17. # hide the original source file name.
  18. #-renamesourcefileattribute SourceFile
  19. # Platform calls Class.forName on types which do not exist on Android to determine platform.
  20. # Retrofit
  21. -keep class com.google.gson.** { *; }
  22. -keep public class com.google.gson.** {public private protected *;}
  23. -keep class com.google.inject.** { *; }
  24. -keep class org.apache.http.** { *; }
  25. -keep class org.apache.james.mime4j.** { *; }
  26. -keep class javax.inject.** { *; }
  27. -keep class javax.xml.stream.** { *; }
  28. -keep class retrofit.** { *; }
  29. -keep class com.google.appengine.** { *; }
  30. -keepattributes *Annotation*
  31. -keepattributes Signature
  32. -dontwarn com.squareup.okhttp.*
  33. -dontwarn rx.**
  34. -dontwarn javax.xml.stream.**
  35. -dontwarn com.google.appengine.**
  36. -dontwarn java.nio.file.**
  37. -dontwarn org.codehaus.**
  38. -dontwarn okio.**
  39. -dontwarn javax.annotation.**
  40. -dontwarn retrofit2.Platform$Java8
  41. # proguard configuration for iText
  42. -keep class org.spongycastle.** { *; }
  43. -dontwarn org.spongycastle.**
  44. -keep class com.itextpdf.** { *; }
  45. -keep class javax.xml.crypto.dsig.** { *; }
  46. -dontwarn javax.xml.crypto.dsig.**
  47. -keep class org.apache.jcp.xml.dsig.internal.dom.** { *; }
  48. -dontwarn org.apache.jcp.xml.dsig.internal.dom.**
  49. -keep class javax.xml.crypto.dom.** { *; }
  50. -dontwarn javax.xml.crypto.dom.**
  51. -keep class org.apache.xml.security.utils.** { *; }
  52. -dontwarn org.apache.xml.security.utils.**
  53. -keep class javax.xml.crypto.XMLStructure.** { *; }
  54. -dontwarn javax.xml.crypto.XMLStructure
  55. #joda time
  56. -dontwarn org.joda.convert.**
  57. -dontwarn org.joda.time.**
  58. -keep class org.joda.time.** { *; }
  59. -keep interface org.joda.time.** { *;}
  60. -keepattributes Signature
  61. -keepattributes *Annotation*
  62. -keep class okhttp3.** { *; }
  63. -keep interface okhttp3.** { *; }
  64. -dontwarn okhttp3.**
  65. -dontnote okhttp3.**
  66. # Okio
  67. -keep class sun.misc.Unsafe.** { *; }
  68. -dontwarn java.nio.file.*
  69. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  70. -keepattributes *Annotation*
  71. -keepclassmembers class ** {
  72. *;
  73. }
  74. -keep enum org.greenrobot.eventbus.ThreadMode.** { *; }
  75. # Only required if you use AsyncExecutor
  76. #noinspection ShrinkerUnresolvedReference
  77. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  78. <init>(java.lang.Throwable);
  79. }
  80. # Don't warn for missing support classes
  81. -dontwarn de.greenrobot.event.util.*$Support
  82. -dontwarn de.greenrobot.event.util.*$SupportManagerFragment
  83. -keepattributes *Annotation*
  84. -keepattributes SourceFile,LineNumberTable
  85. -keep public class * extends java.lang.Exception
  86. -keep class com.crashlytics.** { *; }
  87. -dontwarn com.crashlytics.**
  88. -keep class com.squareup.** { *; }
  89. -keep interface com.squareup.** { *; }
  90. -dontwarn com.squareup.okhttp.**
  91. -keep class retrofit.** { *; }
  92. -keepclasseswithmembers class * {
  93. @retrofit.http.* <methods>;
  94. }
  95. -keep interface retrofit.** { *;}
  96. -keep interface com.squareup.** { *; }
  97. -dontwarn rx.**
  98. -dontwarn retrofit.**
  99. -keep class android.support.v7.widget.** { *; }