-
Notifications
You must be signed in to change notification settings - Fork 50
/
proguard.txt
58 lines (42 loc) · 1.77 KB
/
proguard.txt
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
#-libraryjars <java.home>/lib/rt.jar
-libraryjars <java.home>/jmods/java.base.jmod(!**.jar;!module-info.class)
#-keep class !org.anti_ad.embedded.** { *; }
#-keep class org.anti_ad.mc.ipnext.InventoryProfilesKt { *; }
#-keep class org.anti_ad.mc.ipnext.compat.** { *; }
#-keep class org.anti_ad.mc.ipnext.mixin.** { *; }
#-keep class org.anti_ad.mc.common.mixin.** { *; }
#-keepnames class org.anti_ad.mc.ipnext.config.**
#-ignorewarnings
-optimizationpasses 15 # (828K -> 811K)
-dontwarn org.jetbrains.annotations.**
-dontwarn javax.annotation.**
-dontwarn java.awt.**
#-dontusemixedcaseclassnames
-keepattributes *Annotation*
-verbose
#-dontoptimize
#-dontobfuscate
# https://stackoverflow.com/questions/33189249/how-to-tell-proguard-to-keep-enum-constants-and-fields
#-keepclassmembers class * extends java.lang.Enum {
# <fields>;
# public static **[] values();
# public static ** valueOf(java.lang.String);
#}
#normal build
#-keep class kotlin.Metadata
-keepclassmembers class org.anti_ad.mc.** { *; }
-keep class org.anti_ad.mc.** { *; }
# min build
#-keepnames class !org.anti_ad.embedded.** { *; }
#-keep class org.anti_ad.mc.common.mixin.** { *; }
#-keep class org.anti_ad.mc.ipnext.mixin.** { *; }
#-keep class org.anti_ad.mc.ipnext.InventoryProfilesKt { *; }
#-keep class org.anti_ad.mc.ipnext.compat.** { *; }
#-keep class org.anti_ad.mc.ipnext.config.** { *; }
#-keep class org.anti_ad.mc.ipnext.event.LockSlotsHandler { *; }
#-keep class org.anti_ad.mc.ipnext.ForgeModEntry { *; }
#-keep class org.anti_ad.mc.ipnext.ModInfo { *; }
#-keep class org.anti_ad.mc.ipnext.forge.** { *; }
#-keep class org.anti_ad.mc.ipn.** { *; }
# https://proandroiddev.com/is-your-kotlin-code-really-obfuscated-a36abf033dde
#-assumenosideeffects class kotlin.jvm.internal.Intrinsics { *; }