fix: move outjars to end of proguard file

This commit is contained in:
Connor Tumbleson 2019-06-01 10:57:19 -04:00
parent 2d84a8596a
commit 1b4f8ec68c
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -41,10 +41,7 @@ task cleanOutputDirectory(type: Delete) {
}
task proguard(type: proguard.gradle.ProGuardTask, dependsOn: shadowJar) {
def outFile = jar.destinationDir.getPath() + '/' + "apktool" + '-' + project.apktool_version + '-small' + '.' + jar.extension
injars shadowJar.archivePath
outjars outFile
libraryjars "${System.properties['java.home']}/lib/rt.jar"
@ -58,6 +55,9 @@ task proguard(type: proguard.gradle.ProGuardTask, dependsOn: shadowJar) {
dontwarn 'com.google.common.util.**'
dontwarn 'javax.xml.xpath.**'
dontnote '**'
def outFile = jar.destinationDir.getPath() + '/' + "apktool" + '-' + project.apktool_version + '-small' + '.' + jar.extension
outjars outFile
}
proguard.dependsOn cleanOutputDirectory