proguard-rules.pro 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in C:\Android\sdk/tools/proguard/proguard-android.txt
  4. # You can edit the include path and order by changing the proguardFiles
  5. # directive in build.gradle.
  6. #
  7. # For more details, see
  8. # http://developer.android.com/guide/developing/tools/proguard.html
  9. # Add any project specific keep options here:
  10. # If your project uses WebView with JS, uncomment the following
  11. # and specify the fully qualified class name to the JavaScript interface
  12. # class:
  13. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  14. # public *;
  15. #}
  16. -keep class com.android.**{ *; }
  17. -keep interface com.android.**{ *; }
  18. -dontwarn com.android.**
  19. -keep class com.google.**{ *; }
  20. -keep interface com.google.**{ *; }
  21. -dontwarn com.google.**
  22. -keep class org.apache.**{ *; }
  23. -keep interface org.apache.**{ *; }
  24. -dontwarn org.apache.**
  25. -keep class com.github.**{ *; }
  26. -keep interface com.github.**{ *; }
  27. -dontwarn com.github.**
  28. -keep class com.org.jetbrains.**{ *; }
  29. -keep interface com.org.jetbrains.**{ *; }
  30. -dontwarn com.org.jetbrains.**
  31. -keep class com.squareup.**{ *; }
  32. -keep interface com.squareup.**{ *; }
  33. -dontwarn com.squareup.**
  34. -keep class android.arch.**{ *; }
  35. -keep interface android.arch.**{ *; }
  36. -dontwarn android.arch.**
  37. -dontwarn android.test.**
  38. -dontwarn javax.annotation.**
  39. -dontwarn org.conscrypt.**
  40. -dontwarn java.lang.**
  41. -keep class com.crashlytics.** { *; }
  42. -dontwarn com.crashlytics.**
  43. -keepattributes *Annotation*
  44. -keepattributes SourceFile,LineNumberTable
  45. -keep public class * extends java.lang.Exception
  46. -printmapping mapping.txt
  47. -dontwarn kotlin.**
  48. -dontwarn kotlin.reflect.jvm.internal.**
  49. -keep class kotlin.reflect.jvm.internal.** { *; }
  50. -keep class kotlin.Metadata { *; }
  51. -keepclassmembers public class com.mypackage.** {
  52. public synthetic <methods>;
  53. }
  54. -keepclassmembers class kotlin.Metadata {
  55. public <methods>;
  56. }
  57. -keepclassmembers class **$WhenMappings {
  58. <fields>;
  59. }
  60. -keep class kotlin.** { *; }
  61. -keep class kotlin.Metadata { *; }
  62. -dontwarn kotlin.**
  63. -keepclassmembers class **$WhenMappings {
  64. <fields>;
  65. }
  66. -keepclassmembers class kotlin.Metadata {
  67. public <methods>;
  68. }
  69. -assumenosideeffects class kotlin.jvm.internal.Intrinsics {
  70. static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
  71. }
  72. -keep class kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoaderImpl
  73. -keep class com.lemonhc.mplus.classes.** { *; }
  74. ##---------------Begin: proguard configuration for Gson ----------
  75. # Gson uses generic type information stored in a class file when working with fields. Proguard
  76. # removes such information by default, so configure it to keep all of it.
  77. -keepattributes Signature
  78. # For using GSON @Expose annotation
  79. -keepattributes *Annotation*
  80. # Gson specific classes
  81. -dontwarn sun.misc.**
  82. -keep class com.google.gson.** { *; }
  83. # Prevent proguard from stripping interface information from TypeAdapterFactory,
  84. # JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
  85. -keep class * implements com.google.gson.TypeAdapterFactory
  86. -keep class * implements com.google.gson.JsonSerializer
  87. -keep class * implements com.google.gson.JsonDeserializer
  88. ##---------------End: proguard configuration for Gson ----------
  89. -keep class com.lemonhc.mplus.mcare_plus.activity.webView.** { *; }
  90. -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
  91. -keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
  92. -keepclassmembernames class kotlinx.** {
  93. volatile <fields>;
  94. }