Making magic with the network stack
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.

62 lines
2.1 KiB

  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in /home/marcel/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. #Line numbers
  17. -renamesourcefileattribute SourceFile
  18. -keepattributes SourceFile,LineNumberTable
  19. #NetGuard
  20. -keepnames class eu.faircode.netguard.** { *; }
  21. #JNI
  22. -keepclasseswithmembernames class * {
  23. native <methods>;
  24. }
  25. #JNI callbacks
  26. -keep class eu.faircode.netguard.Allowed { *; }
  27. -keep class eu.faircode.netguard.Packet { *; }
  28. -keep class eu.faircode.netguard.ResourceRecord { *; }
  29. -keep class eu.faircode.netguard.Usage { *; }
  30. -keep class eu.faircode.netguard.ServiceSinkhole {
  31. void nativeExit(java.lang.String);
  32. void nativeError(int, java.lang.String);
  33. void logPacket(eu.faircode.netguard.Packet);
  34. void dnsResolved(eu.faircode.netguard.ResourceRecord);
  35. boolean isDomainBlocked(java.lang.String);
  36. int getUidQ(int, int, java.lang.String, int, java.lang.String, int);
  37. eu.faircode.netguard.Allowed isAddressAllowed(eu.faircode.netguard.Packet);
  38. void accountUsage(eu.faircode.netguard.Usage);
  39. }
  40. #AndroidX
  41. -keep class androidx.appcompat.widget.** { *; }
  42. -keep class androidx.appcompat.app.AppCompatViewInflater { <init>(...); }
  43. -keepclassmembers class * implements android.os.Parcelable { static ** CREATOR; }
  44. #Glide
  45. -keep public class * implements com.bumptech.glide.module.GlideModule
  46. -keep public class * extends com.bumptech.glide.module.AppGlideModule
  47. -keep enum com.bumptech.glide.** {*;}
  48. #-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  49. # **[] $VALUES;
  50. # public *;
  51. #}
  52. #AdMob
  53. -dontwarn com.google.android.gms.internal.**