mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
Throw warnings instead of exceptions on unknown files inside smali dir.
This commit is contained in:
parent
10a674dc9e
commit
2064de6a19
@ -22,6 +22,7 @@ import brut.directory.DirectoryException;
|
||||
import java.io.*;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.logging.Logger;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
|
||||
/**
|
||||
@ -64,7 +65,8 @@ public class SmaliBuilder {
|
||||
return;
|
||||
}
|
||||
if (! fileName.endsWith(".java")) {
|
||||
throw new AndrolibException("Unknown file type: " + inFile);
|
||||
LOGGER.warning("Unknown file type, ignoring: " + inFile);
|
||||
return;
|
||||
}
|
||||
|
||||
StringBuilder out = new StringBuilder();
|
||||
@ -105,4 +107,8 @@ public class SmaliBuilder {
|
||||
private final boolean mDebug;
|
||||
|
||||
private DexFileBuilder mDexBuilder;
|
||||
|
||||
|
||||
private final static Logger LOGGER =
|
||||
Logger.getLogger(SmaliBuilder.class.getName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user