-
Notifications
You must be signed in to change notification settings - Fork 3
/
proguard.pro
56 lines (47 loc) · 1.88 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
46
47
48
49
50
51
52
53
54
55
56
-ignorewarnings
-dontnote
-optimizationpasses 10
-optimizations !class/merging/*,!method/marking/private,!method/marking/static,!*/specialization/*,!method/removal/parameter
-allowaccessmodification
#noinspection ShrinkerInvalidFlags
-optimizeaggressively
-repackageclasses nolijium
-keepattributes Runtime*Annotations,AnnotationDefault
-keepclassmembers class dev.nolij.nolijium.impl.config.NolijiumConfigImpl { # dont rename config fields
@dev.nolij.nolijium.zson.ZsonField <fields>;
}
-keepclassmembers,allowoptimization class dev.nolij.nolijium.NolijiumMixinPlugin {
public *;
}
-keep @org.spongepowered.asm.mixin.Mixin class * {
@org.spongepowered.asm.mixin.Overwrite *;
@org.spongepowered.asm.mixin.Shadow *;
}
-keepclassmembers,allowobfuscation @org.spongepowered.asm.mixin.Mixin class * { *; }
# Forge entrypoints
-keep,allowobfuscation @*.*.fml.common.Mod class dev.nolij.nolijium.** {
public <init>(...);
}
-adaptclassstrings
-adaptresourcefilecontents fabric.mod.json
# screens
-keepclassmembers class dev.nolij.nolijium.** extends net.minecraft.class_437,
net.minecraft.client.gui.screens.Screen {
public *;
}
# Fabric entrypoints
-keep,allowoptimization,allowobfuscation class dev.nolij.nolijium.fabric.NolijiumFabric
-keep,allowoptimization,allowobfuscation class dev.nolij.nolijium.fabric.integration.modmenu.NolijiumModMenuIntegration
# Shaded MixinExtras
-keep class nolijium.mixinextras.** {
*;
}
# ZumeGradle
-keep @dev.nolij.zumegradle.proguard.ProGuardKeep class * { *; }
-keepclassmembers class * { @dev.nolij.zumegradle.proguard.ProGuardKeep *; }
-keep,allowobfuscation @dev.nolij.zumegradle.proguard.ProGuardKeep$WithObfuscation class * { *; }
-keepclassmembers,allowobfuscation class * { @dev.nolij.zumegradle.proguard.ProGuardKeep$WithObfuscation *; }
-keepclassmembers @dev.nolij.zumegradle.proguard.ProGuardKeep$Enum enum * {
**[] values();
** valueOf(...);
}