1
- # Save the obfuscation mapping to a file, so we can de-obfuscate any stack
2
- # traces later on. Keep a fixed source file attribute and all line number
3
- # tables to get line numbers in the stack traces.
4
- # You can comment this out if you're not interested in stack traces.
5
-
6
- -printmapping out.map
7
- -keepparameternames
8
- -renamesourcefileattribute SourceFile
9
- -keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod
10
-
11
- # Preserve all annotations.
12
-
13
- -keepattributes *Annotation*
14
-
15
- # Preserve all public classes, and their public and protected fields and
16
- # methods.
17
-
18
- -keep public class * {
19
- public protected *;
20
- }
21
-
22
- # Preserve all .class method names.
23
-
24
- -keepclassmembernames class * {
25
- java.lang.Class class$(java.lang.String);
26
- java.lang.Class class$(java.lang.String, boolean);
27
- }
28
-
29
- # Preserve all native method names and the names of their classes.
30
-
31
- -keepclasseswithmembernames class * {
32
- native <methods>;
33
- }
34
-
35
- # Preserve the special static methods that are required in all enumeration
36
- # classes.
37
-
38
- -keepclassmembers class * extends java.lang.Enum {
39
- public static **[] values();
40
- public static ** valueOf(java.lang.String);
41
- }
42
-
43
- # Explicitly preserve all serialization members. The Serializable interface
44
- # is only a marker interface, so it wouldn't save them.
45
- # You can comment this out if your library doesn't use serialization.
46
- # If your code contains serializable classes that have to be backward
47
- # compatible, please refer to the manual.
48
-
49
- -keepclassmembers class * implements java.io.Serializable {
50
- static final long serialVersionUID;
51
- static final java.io.ObjectStreamField[] serialPersistentFields;
52
- private void writeObject(java.io.ObjectOutputStream);
53
- private void readObject(java.io.ObjectInputStream);
54
- java.lang.Object writeReplace();
55
- java.lang.Object readResolve();
56
- }
57
-
58
- # Your library may contain more items that need to be preserved;
59
- # typically classes that are dynamically created using Class.forName:
60
-
61
- # -keep public class mypackage.MyClass
62
- # -keep public interface mypackage.MyInterface
63
- # -keep public class * implements mypackage.MyInterface
64
-
65
1
# Aut task lib
66
2
-keep class hu.axolotl.tasklib.** { *; }
67
3
-dontwarn hu.axolotl.tasklib.**
74
10
75
11
-keepclassmembers class ** {
76
12
*** onTaskProgress*(...);
77
- }
13
+ }
0 commit comments