Annotation for proguard -keep

This commit is contained in:
Babbaj
2020-04-12 03:01:24 -04:00
parent 580ba60762
commit c32652394e
3 changed files with 31 additions and 0 deletions

View File

@@ -23,6 +23,13 @@
-keep class baritone.api.utils.MyChunkPos { *; } # even in standalone we need to keep this for gson reflect
# Keep any class or member annotated with @KeepName so we dont have to put everything in the script
-keep,allowobfuscation @interface baritone.KeepName
-keep @baritone.KeepName class *
-keepclassmembers class * {
@baritone.KeepName *;
}
# setting names are reflected from field names, so keep field names
-keepclassmembers class baritone.api.Settings {
public <fields>;