mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-06 10:05:54 +01:00
update to use FileDataStore
This commit is contained in:
parent
79c68ed6d9
commit
0e33e2d477
@ -29,6 +29,7 @@ import java.util.logging.Logger;
|
||||
import org.antlr.runtime.RecognitionException;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.jf.dexlib2.writer.builder.DexBuilder;
|
||||
import org.jf.dexlib2.writer.io.FileDataStore;
|
||||
|
||||
/**
|
||||
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||
@ -54,7 +55,7 @@ public class SmaliBuilder {
|
||||
for (String fileName : mSmaliDir.getDirectory().getFiles(true)) {
|
||||
buildFile(fileName, dexBuilder);
|
||||
}
|
||||
dexBuilder.writeTo(mDexFile.getAbsolutePath());
|
||||
dexBuilder.writeTo(new FileDataStore( new File(mDexFile.getAbsolutePath())));
|
||||
} catch (IOException | DirectoryException ex) {
|
||||
throw new AndrolibException(ex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user