proguard-rules.pro 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Enable aggressive shrinking and optimization
  2. -verbose
  3. -optimizationpasses 14
  4. -overloadaggressively
  5. # Obfuscate everything, including class names, method names, and fields
  6. -repackageclasses 'okhttp3.internal.conn.compat'
  7. -flattenpackagehierarchy
  8. -allowaccessmodification
  9. # Do not keep any debugging information
  10. # Remove the SourceFile and LineNumberTable attributes
  11. -renamesourcefileattribute ""
  12. -keepattributes !SourceFile,!LineNumberTable,!Signature
  13. -keeppackagenames doNotKeepAThing
  14. -obfuscationdictionary dictionary.txt
  15. -classobfuscationdictionary classdictionary.txt
  16. -packageobfuscationdictionary dictionary.txt
  17. # Aggresively removed unused classes, methods, and fields
  18. -dontwarn
  19. -dontnote
  20. -include proguard-LoggingRemoval.pro
  21. # **********************************************************************************************************
  22. -keep class * { native <methods>; }
  23. -keep class androidx.core.app.** { public *; }
  24. -keep class com.google.android.** { *; }
  25. -keep class com.google.mlkit.** { *; }
  26. -keep interface com.google.android.** { *; }
  27. -keep class com.google.android.gms.** { *; }
  28. -keep class com.google.firebase.** { *; }
  29. # **********************************************************************************************************
  30. -keep class net.sqlcipher.** { *; }
  31. -keep public class * implements com.bumptech.esglide.module.GlideModule
  32. -keep public class * extends com.bumptech.esglide.module.AppGlideModule
  33. -keep public enum com.bumptech.glide.load.ImageHeaderParser$** { **[] $VALUES; public *; }
  34. -keep public class io.nexilis.service.** { *; }
  35. # **********************************************************************************************************
  36. -keep class net.zetetic.database.sqlcipher.** { *; }
  37. -keep public class javax.mail.** { *; }
  38. -keep public class com.sun.mail.** { *; }
  39. -keep public class org.apache.harmony.** { *; }