keep baritone provider properly

This commit is contained in:
Leijurv 2018-10-11 11:10:59 -07:00
parent db7d3184c9
commit a1c0f4dbb4
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ echo "-injars 'baritone-$VERSION.jar'" >> api.pro # insert current version
cat ../../scripts/proguard.pro | grep -v "this is the rt jar" | grep -v "\-injars" >> api.pro # remove default rt jar and injar lines
echo "-libraryjars '$(java -verbose 2>/dev/null | sed -ne '1 s/\[Opened \(.*\)\]/\1/p')'" >> api.pro # insert correct rt.jar location
tail api.pro # debug, print out what the previous two commands generated
cat api.pro | grep -v "\-keep class baritone.api" > standalone.pro # standalone doesn't keep baritone api
cat api.pro | grep -v "this is the keep api" > standalone.pro # standalone doesn't keep baritone api
#instead of downloading these jars from my dropbox in a zip, just assume gradle's already got them for us
mkdir -p tempLibraries

View File

@ -16,8 +16,9 @@
-flattenpackagehierarchy
-repackageclasses 'baritone'
-keep class baritone.api.** { *; }
-keep class baritone.api.** { *; } # this is the keep api
-keep class baritone.BaritoneProvider
-keep class baritone.api.IBaritoneProvider
# setting names are reflected from field names, so keep field names
-keepclassmembers class baritone.api.Settings {