1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-29 19:34:59 +00:00
NetGuard/app/proguard-rules.pro

49 lines
1.5 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
-keep class eu.faircode.netguard.Packet { *; }
2016-01-09 18:53:28 +00:00
-keep class eu.faircode.netguard.SinkholeService {
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
#Picasso
-dontwarn com.squareup.okhttp.**