build: update to smali/baksmali 2.3.4

This commit is contained in:
IgorEisberg 2019-10-18 04:03:53 +03:00
parent 197d468727
commit 232e801e4d
3 changed files with 4 additions and 3 deletions

View File

@ -45,6 +45,7 @@ task proguard(type: proguard.gradle.ProGuardTask, dependsOn: shadowJar) {
// Java 9 and prior uses merged package for runtime, later uses split jmod files.
if (JavaVersion.current() <= JavaVersion.VERSION_1_8) {
libraryjars "${System.properties['java.home']}/lib/jce.jar"
libraryjars "${System.properties['java.home']}/lib/rt.jar"
} else {
libraryjars "${System.properties['java.home']}/jmods/java.base.jmod", jarfilter: '!**.jar', filter: '!module-info.class'

View File

@ -59,7 +59,7 @@ public class SmaliMod {
InputStream is = new FileInputStream(smaliFile);
InputStreamReader reader = new InputStreamReader(is, "UTF-8");
lexer = new smaliFlexLexer(reader);
lexer = new smaliFlexLexer(reader, apiLevel);
((smaliFlexLexer)lexer).setSourceFile(smaliFile);
tokens = new CommonTokenStream((TokenSource) lexer);

View File

@ -109,7 +109,7 @@ subprojects {
ext {
depends = [
baksmali: 'org.smali:baksmali:2.3',
baksmali: 'org.smali:baksmali:2.3.4',
commons_cli: 'commons-cli:commons-cli:1.4',
commons_io: 'commons-io:commons-io:2.4',
commons_lang: 'org.apache.commons:commons-lang3:3.1',
@ -117,7 +117,7 @@ subprojects {
junit: 'junit:junit:4.12',
proguard_gradle: 'net.sf.proguard:proguard-gradle:6.1.1',
snakeyaml: 'org.yaml:snakeyaml:1.18:android',
smali: 'org.smali:smali:2.3',
smali: 'org.smali:smali:2.3.4',
xmlpull: 'xpp3:xpp3:1.1.4c',
xmlunit: 'xmlunit:xmlunit:1.6',
]