-
Notifications
You must be signed in to change notification settings - Fork 1
/
proguard.conf
53 lines (43 loc) · 1.74 KB
/
proguard.conf
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
#https://www.guardsquare.com/en/proguard/manual/introduction
# Java runtime
-libraryjars <java.home>/lib/rt.jar
-verbose
-dontnote
-dontusemixedcaseclassnames
-optimizations !code/allocation/variable
-keepparameternames
-renamesourcefileattribute SourceFile
-allowaccessmodification
# Annotations and signatures
-keepattributes *Annotation*,Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod
# Preserva todas as classes publicas, seus métodos public e protected
-keep public class com.github.nidorx.** {
public protected *;
}
# Preserva os nomes de métods de todas as .class
-keepclassmembernames class * {
java.lang.Class class$(java.lang.String);
java.lang.Class class$(java.lang.String, boolean);
}
# Preserva todos os nomes de métodos nativos e o nome de suas classes
-keepclasseswithmembernames class * {
native <methods>;
}
# Preserve the special static methods that are required in all enumeration classes.
-keepclassmembers class * extends java.lang.Enum {
public static **[] values();
public static ** valueOf(java.lang.String);
}
# Explicitly preserve all serialization members. The Serializable interface
# is only a marker interface, so it wouldn't save them.
# You can comment this out if your library doesn't use serialization.
# If your code contains serializable classes that have to be backward
# compatible, please refer to the manual.
-keepclassmembers class * implements java.io.Serializable {
java.lang.Object readResolve();
java.lang.Object writeReplace();
static final long serialVersionUID;
private void readObject(java.io.ObjectInputStream);
private void writeObject(java.io.ObjectOutputStream);
static final java.io.ObjectStreamField[] serialPersistentFields;
}