proguard-rules.pro 1.17 KB
Newer Older
Daniel Wolf's avatar
Daniel Wolf committed
1
-optimizationpasses 5
2
-keepattributes SourceFile,LineNumberTable
Daniel Wolf's avatar
Daniel Wolf committed
3
-renamesourcefileattribute SourceFile
Daniel Wolf's avatar
Daniel Wolf committed
4

Daniel Wolf's avatar
Daniel Wolf committed
5
-dontwarn org.slf4j.impl.*
Daniel Wolf's avatar
Daniel Wolf committed
6
7
8
-dontwarn javax.naming.*
-dontwarn javax.servlet.http.*
-dontwarn javax.servlet.*
Daniel Wolf's avatar
Daniel Wolf committed
9
10
11
12
13
-dontwarn java.awt.*
-dontwarn org.slf4j.impl.StaticMDCBinder
-dontwarn org.slf4j.impl.StaticMarkerBinder
-dontwarn org.slf4j.impl.StaticLoggerBinder

Daniel Wolf's avatar
Daniel Wolf committed
14
15
16
17
18
19
# Removes debug prints of packet4j
-assumenosideeffects class org.slf4j.Logger {
    public void debug(...);
    public void trace(...);
}

20
21
22
23
24
-assumenosideeffects class java.io.PrintStream {
     public void println(%);
     public void println(**);
 }

25
26
27
28
29
-assumenosideeffects class android.util.Log {
     public static *** d(...);
     public static *** v(...);
}

30
-assumenosideeffects class com.frostnerd.vpntunnelproxy.Logger {
Daniel Wolf's avatar
Daniel Wolf committed
31
32
        public final void finer(...);
        public final void finest(...);
33
34
}

35
36
-keepclassmembernames class kotlinx.** {
    volatile <fields>;
37
38
39
40
41
42
}
# Ensure the custom, fast service loader implementation is removed.
-assumevalues class kotlinx.coroutines.internal.MainDispatcherLoader {
  boolean FAST_SERVICE_LOADER_ENABLED return false;
}
-checkdiscard class kotlinx.coroutines.internal.FastServiceLoader