forked from All4ndenys/L2FandC_Source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProGuardLoginConfig.pro
42 lines (35 loc) · 1.38 KB
/
ProGuardLoginConfig.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
-injars 'builds/dist/libs/l2f-loginserver-original.jar'
-outjars 'builds/dist/libs/l2f-loginserver.jar'
-libraryjars 'builds/dist/libs/l2f-commons-original.jar'
-libraryjars <java.home>\lib\jce.jar
-libraryjars <java.home>\lib\rt.jar
# Use the obfuscation mapping of the related jars that were obfuscated aswell
-applymapping 'builds/proguard/common-mapping.map'
-target 1.8
-overloadaggressively
-keepattributes SourceFile,LineNumberTable
-renamesourcefileattribute SourceFile
-adaptclassstrings **
-adaptresourcefilenames **.properties
-adaptresourcefilecontents **.properties,META-INF/MANIFEST.MF
-dontshrink
-dontoptimize
-dontnote
# Keep - Applications. Keep all application classes, along with their 'main'
# methods.
-keepclasseswithmembers public class * {
public static void main(java.lang.String[]);
}
# Also keep - Enumerations. Keep the special static methods that are required in
# enumeration classes.
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
# Also keep - Database drivers. Keep all implementations of java.sql.Driver.
-keep class * extends java.sql.Driver
# Also keep - Swing UI L&F. Keep all extensions of javax.swing.plaf.ComponentUI,
# along with the special 'createUI' method.
-keep class * extends javax.swing.plaf.ComponentUI {
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent);
}