mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
fixes #41 - fixes Ziggy problem w/ filtering JAR
This commit is contained in:
parent
5ab853a249
commit
f551710f51
28
build.gradle
28
build.gradle
@ -2,6 +2,7 @@ apply plugin: 'java'
|
|||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
apply plugin: 'license'
|
apply plugin: 'license'
|
||||||
ext.apktoolversion = '1.5.1-SNAPSHOT'
|
ext.apktoolversion = '1.5.1-SNAPSHOT'
|
||||||
|
import org.apache.tools.ant.filters.*
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@ -83,22 +84,25 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
project(':brut.apktool:apktool-lib') {
|
project(':brut.apktool:apktool-lib') {
|
||||||
gradle.taskGraph.whenReady {
|
|
||||||
task copy << {
|
processResources {
|
||||||
from 'src/main/resources'
|
from('src/main/resources/properties') {
|
||||||
into 'build/resources/main'
|
include '**/*.properties'
|
||||||
include '**/*.jar'
|
into 'properties'
|
||||||
}
|
ext.fullrev = ''
|
||||||
|
ant.loadfile(srcFile: "../../.git/refs/heads/master", property: ext.fullrev)
|
||||||
|
filter(ReplaceTokens, tokens: [version: apktoolversion, gitrev: ant.properties[ext.fullrev].substring(0,10)])
|
||||||
|
}
|
||||||
|
from('src/main/resources/') {
|
||||||
|
include '**/*.jar'
|
||||||
|
}
|
||||||
|
|
||||||
|
includeEmptyDirs = false
|
||||||
}
|
}
|
||||||
processResources {
|
|
||||||
ext.fullrev = ''
|
|
||||||
ant.loadfile(srcFile: "../../.git/refs/heads/master", property: ext.fullrev)
|
|
||||||
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [version: apktoolversion, gitrev: ant.properties[ext.fullrev].substring(0,10)])
|
|
||||||
}
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile ("junit:junit:4.10") {
|
compile ("junit:junit:4.10") {
|
||||||
exclude(module: 'hamcrest-core')
|
exclude(module: 'hamcrest-core')
|
||||||
}
|
}
|
||||||
compile project(':brut.j.dir'), project(':brut.j.util'), project(':brut.j.common'), project(':brut.apktool.smali:util'),
|
compile project(':brut.j.dir'), project(':brut.j.util'), project(':brut.j.common'), project(':brut.apktool.smali:util'),
|
||||||
project(':brut.apktool.smali:dexlib'), project(':brut.apktool.smali:baksmali'),project(':brut.apktool.smali:smali'),
|
project(':brut.apktool.smali:dexlib'), project(':brut.apktool.smali:baksmali'),project(':brut.apktool.smali:smali'),
|
||||||
"org.yaml:snakeyaml:1.7", "xpp3:xpp3:1.1.4c","xmlunit:xmlunit:1.3", "com.google.guava:guava:12.0",
|
"org.yaml:snakeyaml:1.7", "xpp3:xpp3:1.1.4c","xmlunit:xmlunit:1.3", "com.google.guava:guava:12.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user