mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-06 16:54:26 +02:00
fixes issue #394, and changes building script to fatJar (instead of build)
This commit is contained in:
parent
bbee938b5c
commit
92eae964a9
2
CHANGES
2
CHANGES
@ -4,6 +4,8 @@ v1.5.2 (TBA)
|
|||||||
-Fixed (issue #392) - Don't crash out if .git folder isn't present. Use SNAPSHOT-DEV instead.
|
-Fixed (issue #392) - Don't crash out if .git folder isn't present. Use SNAPSHOT-DEV instead.
|
||||||
-Fixed (issue #67) - Only store compressed resources.arsc if original was compressed, otherwise STORE.
|
-Fixed (issue #67) - Only store compressed resources.arsc if original was compressed, otherwise STORE.
|
||||||
-Moved build.gradle files to each sub-project, more organization :)
|
-Moved build.gradle files to each sub-project, more organization :)
|
||||||
|
-Fixed (issue #394) - Prevented duplicated files in final jar which saved around 1.2mb.
|
||||||
|
-Added Proguard to drop final jar size from 6.2mb to 2.6mb.
|
||||||
|
|
||||||
v1.5.1 PR3 (Released December 23 - 2012) Codename: Pre Release 3
|
v1.5.1 PR3 (Released December 23 - 2012) Codename: Pre Release 3
|
||||||
-Reverted "Prevents removal of <uses-sdk> on decompile, but then throws warning on rebuild (issue #366)"
|
-Reverted "Prevents removal of <uses-sdk> on decompile, but then throws warning on rebuild (issue #366)"
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
version = apktoolversion
|
version = apktoolversion
|
||||||
|
apply plugin: 'fatjar'
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
proguard
|
proguard
|
||||||
@ -26,16 +27,14 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gradle.taskGraph.whenReady {
|
gradle.taskGraph.whenReady {
|
||||||
jar {
|
fatJar {
|
||||||
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes("Main-Class": "brut.apktool.Main")
|
attributes("Main-Class": "brut.apktool.Main")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task proguard(type: JavaExec, dependsOn: jar) {
|
task proguard(type: JavaExec, dependsOn: fatJar) {
|
||||||
def outFile = jar.destinationDir.getPath() + '/' + jar.baseName + '-' + jar.version + '-small' + '.' + jar.extension
|
def outFile = jar.destinationDir.getPath() + '/' + jar.baseName + '-' + jar.version + '-small' + '.' + jar.extension
|
||||||
inputs.file jar.archivePath
|
inputs.file jar.archivePath
|
||||||
outputs.file outFile
|
outputs.file outFile
|
||||||
|
@ -52,6 +52,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0'
|
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0'
|
||||||
|
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user