2015-10-24 20:01:55 +02: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 10:10:05 +01:00
|
|
|
|
|
|
|
#Line numbers
|
|
|
|
-renamesourcefileattribute SourceFile
|
|
|
|
-keepattributes SourceFile,LineNumberTable
|
|
|
|
|
|
|
|
#NetGuard
|
|
|
|
-keepnames class eu.faircode.netguard.** { *; }
|
2015-11-07 13:42:58 +01:00
|
|
|
|
2016-01-30 09:51:41 +01:00
|
|
|
#JNI
|
|
|
|
-keepclasseswithmembernames class * {
|
|
|
|
native <methods>;
|
|
|
|
}
|
|
|
|
|
2016-01-28 11:58:39 +01:00
|
|
|
#JNI callbacks
|
2016-03-13 17:09:12 +01:00
|
|
|
-keep class eu.faircode.netguard.Allowed { *; }
|
2016-01-22 10:37:57 +01:00
|
|
|
-keep class eu.faircode.netguard.Packet { *; }
|
2016-03-10 16:18:45 +01:00
|
|
|
-keep class eu.faircode.netguard.ResourceRecord { *; }
|
|
|
|
-keep class eu.faircode.netguard.Usage { *; }
|
2016-03-13 17:09:12 +01:00
|
|
|
-keep class eu.faircode.netguard.ServiceSinkhole {
|
2016-01-24 12:50:40 +01:00
|
|
|
void nativeExit(java.lang.String);
|
2016-02-14 14:40:45 +01:00
|
|
|
void nativeError(int, java.lang.String);
|
2016-01-22 10:37:57 +01:00
|
|
|
void logPacket(eu.faircode.netguard.Packet);
|
2016-01-30 09:51:41 +01:00
|
|
|
void dnsResolved(eu.faircode.netguard.ResourceRecord);
|
2016-01-28 11:58:39 +01:00
|
|
|
boolean isDomainBlocked(java.lang.String);
|
2016-02-07 17:44:23 +01:00
|
|
|
eu.faircode.netguard.Allowed isAddressAllowed(eu.faircode.netguard.Packet);
|
2016-02-15 17:48:53 +01:00
|
|
|
void accountUsage(eu.faircode.netguard.Usage);
|
2016-01-09 19:53:28 +01:00
|
|
|
}
|
|
|
|
|
2015-11-07 13:42:58 +01:00
|
|
|
#Support library
|
2015-10-30 11:59:49 +01:00
|
|
|
-keep class android.support.v7.widget.** { *; }
|
2015-10-30 10:10:05 +01:00
|
|
|
-dontwarn android.support.v4.**
|
2015-11-07 13:42:58 +01:00
|
|
|
|
|
|
|
#Picasso
|
|
|
|
-dontwarn com.squareup.okhttp.**
|