keep baritone provider properly
This commit is contained in:
parent
db7d3184c9
commit
a1c0f4dbb4
@ -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
|
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
|
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
|
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
|
#instead of downloading these jars from my dropbox in a zip, just assume gradle's already got them for us
|
||||||
mkdir -p tempLibraries
|
mkdir -p tempLibraries
|
||||||
|
3
scripts/proguard.pro
vendored
3
scripts/proguard.pro
vendored
@ -16,8 +16,9 @@
|
|||||||
-flattenpackagehierarchy
|
-flattenpackagehierarchy
|
||||||
-repackageclasses 'baritone'
|
-repackageclasses 'baritone'
|
||||||
|
|
||||||
-keep class baritone.api.** { *; }
|
-keep class baritone.api.** { *; } # this is the keep api
|
||||||
-keep class baritone.BaritoneProvider
|
-keep class baritone.BaritoneProvider
|
||||||
|
-keep class baritone.api.IBaritoneProvider
|
||||||
|
|
||||||
# setting names are reflected from field names, so keep field names
|
# setting names are reflected from field names, so keep field names
|
||||||
-keepclassmembers class baritone.api.Settings {
|
-keepclassmembers class baritone.api.Settings {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user