-
Notifications
You must be signed in to change notification settings - Fork 6
/
proguard-rules.pro
70 lines (53 loc) · 1.79 KB
/
proguard-rules.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
-optimizations !code/simplification/cast,!field/*,!class/merging/*
-optimizationpasses 2
-dontusemixedcaseclassnames
-ignorewarnings
-verbose
-keepattributes *Annotation*, EnclosingMethod, InnerClasses, Exceptions, Signature, SourceFile, LineNumberTable
-renamesourcefileattribute SourceFile
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
################################################
-dontnote android.**
-dontwarn android.**
-dontnote com.sun.**
-dontwarn com.sun.**
-dontnote sun.**
-dontwarn sun.**
-dontnote java.**
-dontwarn java.**
-dontnote javax.**
-dontwarn javax.**
-dontnote org.slf4j.**
-dontwarn org.slf4j.**
-assumenosideeffects interface org.slf4j.Logger {
public void trace(...);
public void debug(...);
public void info(...);
public void warn(...);
public void error(...);
public boolean isTraceEnabled(...);
public boolean isDebugEnabled(...);
public boolean isWarnEnabled(...);
}
-assumenosideeffects class org.slf4j.LoggerFactory {
public static ** getLogger(...);
}
# keep all public classes in main package
-keep public class at.favre.tools.dice.RndTool { public *; }
-keep class at.favre.tools.dice.service.randomorg.model.** { *; }
-keep class at.favre.tools.dice.service.randomorg.model.**$* { *; }
-keep class at.favre.tools.dice.service.** { *; }
-dontwarn okio.**
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-dontnote retrofit2.Platform
# Platform used when running on Java 8 VMs. Will not be used at runtime.
-dontwarn retrofit2.Platform$Java8
-keep class sun.misc.Unsafe { *; }