Skip to content

Commit 79403f3

Browse files
committed
Update dex2jar
This provides a better solution to #348
1 parent e6b2576 commit 79403f3

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
<dependency>
238238
<groupId>com.github.ThexXTURBOXx</groupId>
239239
<artifactId>dex2jar</artifactId>
240-
<version>v23</version>
240+
<version>v24</version>
241241
</dependency>
242242
<dependency>
243243
<groupId>com.github.weisj</groupId>

src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/SmaliAssembler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public byte[] compile(String contents, String fullyQualifiedName)
6262
}
6363

6464
try {
65-
com.googlecode.d2j.smali.SmaliCmd.main(new String[]{tempSmaliFolder.getAbsolutePath(),
66-
"-o", tempDex.getAbsolutePath()});
65+
com.googlecode.d2j.smali.SmaliCmd.main(tempSmaliFolder.getAbsolutePath(),
66+
"-o", tempDex.getAbsolutePath());
6767
} catch (Exception e) {
6868
e.printStackTrace();
6969
//BytecodeViewer.handleException(e);

src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/SmaliDisassembler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public String decompileClassNode(ClassNode cn, byte[] b)
7373
Dex2Jar.saveAsDex(tempClass, tempDex, true);
7474

7575
try {
76-
com.googlecode.d2j.smali.BaksmaliCmd.main(new String[]{tempDex.getAbsolutePath(),
77-
"-o", tempDexOut.getAbsolutePath()});
76+
com.googlecode.d2j.smali.BaksmaliCmd.main(tempDex.getAbsolutePath(),
77+
"-o", tempDexOut.getAbsolutePath());
7878
} catch (Exception e) {
7979
StringWriter sw = new StringWriter();
8080
e.printStackTrace(new PrintWriter(sw));

0 commit comments

Comments
 (0)