mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 01:52:56 +01:00
Add proguard rule
This commit is contained in:
parent
f9c137009e
commit
3352088d00
@ -37,7 +37,7 @@ buildscript {
|
|||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Main-Class' : 'brut.apktool.Main'
|
attributes 'Main-Class': 'brut.apktool.Main'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,6 +73,8 @@ task proguard(type: ProGuardTask, dependsOn: shadowJar) {
|
|||||||
dontwarn 'com.google.common.util.**'
|
dontwarn 'com.google.common.util.**'
|
||||||
dontwarn 'javax.xml.xpath.**'
|
dontwarn 'javax.xml.xpath.**'
|
||||||
dontnote '**'
|
dontnote '**'
|
||||||
|
// between Java 1.8 and 1.9, the signature of `flip()` changed, which trips up proguard.
|
||||||
|
dontwarn 'org.yaml.snakeyaml.scanner.ScannerImpl'
|
||||||
|
|
||||||
def outPath = jar.getDestinationDirectory().getAsFile().get().toString()
|
def outPath = jar.getDestinationDirectory().getAsFile().get().toString()
|
||||||
def extension = jar.archiveExtension.get().toString()
|
def extension = jar.archiveExtension.get().toString()
|
||||||
@ -81,4 +83,4 @@ task proguard(type: ProGuardTask, dependsOn: shadowJar) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proguard.dependsOn cleanOutputDirectory
|
proguard.dependsOn cleanOutputDirectory
|
||||||
tasks.getByPath(':release').dependsOn(proguard)
|
tasks.getByPath(':release').dependsOn(proguard)
|
||||||
|
Loading…
Reference in New Issue
Block a user