Skip to content

Commit

Permalink
fix: interrupt when smali build error
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Aug 2, 2023
1 parent d0e1cbc commit abde20e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified libs/smali.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ private InputSource build(String progress, File classesDir, File dexCacheFile) t
if(smaliOptions.jobs <= 0){
smaliOptions.jobs = 1;
}
Smali.assemble(smaliOptions, classesDir.getAbsolutePath());
boolean success = Smali.assemble(smaliOptions, classesDir.getAbsolutePath());
if(!success){
throw new IOException("Failed to build smali, check the logs");
}
return new FileInputSource(dexCacheFile, dexCacheFile.getName());
}
private boolean isModified(File classesDir, File dexCacheFile){
Expand Down

0 comments on commit abde20e

Please sign in to comment.