proguard-rules.pro 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 with 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. # Enable aggressive shrinking and optimization
  20. -verbose
  21. -optimizationpasses 14
  22. -overloadaggressively
  23. # Obfuscate everything, including class names, method names, and fields
  24. -repackageclasses ''
  25. -flattenpackagehierarchy
  26. -allowaccessmodification
  27. # Do not keep any debugging information
  28. # Remove the SourceFile and LineNumberTable attributes
  29. -renamesourcefileattribute ""
  30. -keepattributes !SourceFile,!LineNumberTable,!Signature
  31. -keeppackagenames doNotKeepAThing
  32. -obfuscationdictionary dictionary.txt
  33. -classobfuscationdictionary classdictionary.txt
  34. -packageobfuscationdictionary dictionary.txt
  35. # Aggresively removed unused classes, methods, and fields
  36. -dontwarn
  37. -dontnote
  38. -include proguard-LoggingRemoval.pro
  39. # **********************************************************************************************************
  40. -keep class * { native <methods>; }
  41. -keep class androidx.core.app.** { public *; }
  42. -keep class com.google.android.** { *; }
  43. -keep class com.google.mlkit.** { *; }
  44. -keep interface com.google.android.** { *; }
  45. -keep class com.google.android.gms.** { *; }
  46. -keep class com.google.firebase.** { *; }
  47. # **********************************************************************************************************
  48. -keep class net.sqlcipher.** { *; }
  49. -keep public class * implements com.bumptech.esglide.module.GlideModule
  50. -keep public class * extends com.bumptech.esglide.module.AppGlideModule
  51. -keep public enum com.bumptech.glide.load.ImageHeaderParser$** { **[] $VALUES; public *; }
  52. -keep public class io.nexilis.service.** { *; }
  53. # **********************************************************************************************************
  54. -keep class net.zetetic.database.sqlcipher.** { *; }
  55. -keep public class javax.mail.** { *; }
  56. -keep public class com.sun.mail.** { *; }
  57. -keep public class org.apache.harmony.** { *; }