-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.pro
77 lines (58 loc) · 2.38 KB
/
config.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
71
72
73
74
75
76
#===============================================================================
# PROGUARD
# Configuration for code shrinking, obfuscation and optimization.
#===============================================================================
#===============================================================================
# GENERAL
#===============================================================================
-injars target/bot-1.0-jar-with-dependencies.jar
-outjars target/bot-1.0-optimized.jar
-libraryjars <java.home>/lib/rt.jar
-target 1.8
-dontwarn
-ignorewarnings
-forceprocessing
-printmapping data/proguard/botnet.map
-optimizationpasses 3
#===============================================================================
# APPLICATION
#===============================================================================
-keeppackagenames com.acmutv.botnet
-keep class com.acmutv.botnet.BotMain {
public static void main(java.lang.String[]);
}
#===============================================================================
# JAVA
#===============================================================================
-adaptresourcefilenames **.properties,**.xml,**.yaml,**.yml,**json
-adaptresourcefilecontents **.properties,**.xml,**.yaml,**.yml,**json,META-INF/MANIFEST.MF
-renamesourcefileattribute SourceFile
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,
SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
-keepclasseswithmembernames,includedescriptorclasses class * {
native <methods>;
}
-keepclassmembers,allowoptimization enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
#===============================================================================
# LIBRARIES
#===============================================================================
-keep,includedescriptorclasses class org.apache.logging.log4j.core.** {
*;
}
-keep,includedescriptorclasses class com.fasterxml.** {
*;
}
-keep,includedescriptorclasses class org.** {
*;
}