1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-28 10:51:14 +00:00
NetGuard/app/proguard-rules.pro

61 lines
1.9 KiB
Prolog
Raw Normal View History

2015-10-24 18:01:55 +00:00
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/marcel/Android/Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
2015-10-30 09:10:05 +00:00
#Line numbers
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
#NetGuard
-keepnames class eu.faircode.netguard.** { *; }
2015-11-07 12:42:58 +00:00
2016-01-30 08:51:41 +00:00
#JNI
-keepclasseswithmembernames class * {
native <methods>;
}
2016-01-28 10:58:39 +00:00
#JNI callbacks
2016-03-13 16:09:12 +00:00
-keep class eu.faircode.netguard.Allowed { *; }
-keep class eu.faircode.netguard.Packet { *; }
2016-03-10 15:18:45 +00:00
-keep class eu.faircode.netguard.ResourceRecord { *; }
-keep class eu.faircode.netguard.Usage { *; }
2016-03-13 16:09:12 +00:00
-keep class eu.faircode.netguard.ServiceSinkhole {
2016-01-24 11:50:40 +00:00
void nativeExit(java.lang.String);
void nativeError(int, java.lang.String);
void logPacket(eu.faircode.netguard.Packet);
2016-01-30 08:51:41 +00:00
void dnsResolved(eu.faircode.netguard.ResourceRecord);
2016-01-28 10:58:39 +00:00
boolean isDomainBlocked(java.lang.String);
eu.faircode.netguard.Allowed isAddressAllowed(eu.faircode.netguard.Packet);
2016-02-15 16:48:53 +00:00
void accountUsage(eu.faircode.netguard.Usage);
2016-01-09 18:53:28 +00:00
}
2015-11-07 12:42:58 +00:00
#Support library
2015-10-30 10:59:49 +00:00
-keep class android.support.v7.widget.** { *; }
2015-10-30 09:10:05 +00:00
-dontwarn android.support.v4.**
2015-11-07 12:42:58 +00:00
#Glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.module.AppGlideModule
-keep enum com.bumptech.glide.** {*;}
#-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
# **[] $VALUES;
# public *;
#}
2016-07-24 16:02:56 +00:00
#AdMob
-dontwarn com.google.android.gms.internal.**