forked from MinecraftForge/Installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproguard.pro
45 lines (36 loc) · 1.26 KB
/
proguard.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
-libraryjars <java.home>/lib/rt.jar
-printmapping build/proguard/mappings.maps
-dontwarn javax.annotation.**
-dontwarn javax.inject.**
# Keep - Applications. Keep all application classes, along with their 'main'
# methods.
-keepclasseswithmembers public class * {
public static void main(java.lang.String[]);
}
-keepclassmembers class cpw.mods.fml.installer.ModInfo {
<init>(**);
}
-keep,allowshrinking class io.github.thefishlive.bootstrap.Launcher {
void launch(...);
}
# 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 - Enumerations. Keep the special static methods that are required in
# enumeration classes.
-keep,allowshrinking enum cpw.mods.** {
<fields>;
<methods>;
}
# 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);
}
# Keep names - Native method names. Keep all native class/method names.
-keepclasseswithmembers,allowshrinking class * {
native <methods>;
}