fix proguard for service provider
This commit is contained in:
parent
24be1d0ff3
commit
6fd7b2a7f3
@ -11,10 +11,6 @@ echo "-libraryjars '$(java -verbose 2>/dev/null | sed -ne '1 s/\[Opened \(.*\)\]
|
|||||||
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 "\-keep class baritone.api" > standalone.pro # standalone doesn't keep baritone api
|
||||||
|
|
||||||
#wget -nv https://www.dropbox.com/s/zmc2l3jnwdvzvak/tempLibraries.zip?dl=1 # i'm sorry
|
|
||||||
#mv tempLibraries.zip?dl=1 tempLibraries.zip
|
|
||||||
#unzip tempLibraries.zip
|
|
||||||
|
|
||||||
#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
|
||||||
cat ../../scripts/proguard.pro | grep tempLibraries | grep .jar | cut -d "/" -f 2- | cut -d "'" -f -1 | xargs -n1 -I{} bash -c "find ~/.gradle -name {}" | tee /dev/stderr | xargs -n1 -I{} cp {} tempLibraries
|
cat ../../scripts/proguard.pro | grep tempLibraries | grep .jar | cut -d "/" -f 2- | cut -d "'" -f -1 | xargs -n1 -I{} bash -c "find ~/.gradle -name {}" | tee /dev/stderr | xargs -n1 -I{} cp {} tempLibraries
|
||||||
|
11
scripts/proguard.pro
vendored
11
scripts/proguard.pro
vendored
@ -16,10 +16,8 @@
|
|||||||
-flattenpackagehierarchy
|
-flattenpackagehierarchy
|
||||||
-repackageclasses 'baritone'
|
-repackageclasses 'baritone'
|
||||||
|
|
||||||
#-keep class baritone.behavior.** { *; }
|
|
||||||
-keep class baritone.api.** { *; }
|
-keep class baritone.api.** { *; }
|
||||||
#-keep class baritone.* { *; }
|
-keep class baritone.BaritoneProvider
|
||||||
#-keep class baritone.pathing.goals.** { *; }
|
|
||||||
|
|
||||||
# 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 {
|
||||||
@ -58,8 +56,15 @@
|
|||||||
-libraryjars 'tempLibraries/librarylwjglopenal-20100824.jar'
|
-libraryjars 'tempLibraries/librarylwjglopenal-20100824.jar'
|
||||||
-libraryjars 'tempLibraries/log4j-api-2.8.1.jar'
|
-libraryjars 'tempLibraries/log4j-api-2.8.1.jar'
|
||||||
-libraryjars 'tempLibraries/log4j-core-2.8.1.jar'
|
-libraryjars 'tempLibraries/log4j-core-2.8.1.jar'
|
||||||
|
|
||||||
|
# linux / travis
|
||||||
-libraryjars 'tempLibraries/lwjgl-2.9.4-nightly-20150209.jar'
|
-libraryjars 'tempLibraries/lwjgl-2.9.4-nightly-20150209.jar'
|
||||||
-libraryjars 'tempLibraries/lwjgl_util-2.9.4-nightly-20150209.jar'
|
-libraryjars 'tempLibraries/lwjgl_util-2.9.4-nightly-20150209.jar'
|
||||||
|
|
||||||
|
# mac
|
||||||
|
#-libraryjars 'tempLibraries/lwjgl_util-2.9.2-nightly-20140822.jar'
|
||||||
|
#-libraryjars 'tempLibraries/lwjgl-2.9.2-nightly-20140822.jar'
|
||||||
|
|
||||||
-libraryjars 'tempLibraries/netty-all-4.1.9.Final.jar'
|
-libraryjars 'tempLibraries/netty-all-4.1.9.Final.jar'
|
||||||
-libraryjars 'tempLibraries/oshi-core-1.1.jar'
|
-libraryjars 'tempLibraries/oshi-core-1.1.jar'
|
||||||
-libraryjars 'tempLibraries/patchy-1.1.jar'
|
-libraryjars 'tempLibraries/patchy-1.1.jar'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user