update to use FileDataStore

This commit is contained in:
Connor Tumbleson 2013-09-15 10:35:00 -05:00
parent 79c68ed6d9
commit 0e33e2d477

View File

@ -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);
}