public int runDx(Arguments arguments) throws IOException { // Reset the error count to start fresh. errors.set(0); args = arguments; args.makeOptionsObjects(); OutputStream humanOutRaw = null; if (args.humanOutName != null) { humanOutRaw = openOutput(args.humanOutName); humanOutWriter = new OutputStreamWriter(humanOutRaw); } try { return runMonoDex(); } finally { closeOutput(humanOutRaw); } }
/** * Run and return a result code. * @param arguments the data + parameters for the conversion * @return 0 if success > 0 otherwise. */ public static int run(Arguments arguments) throws IOException { // Reset the error count to start fresh. errors.set(0); // empty the list, so that tools that load dx and keep it around // for multiple runs don't reuse older buffers. libraryDexBuffers.clear(); args = arguments; args.makeOptionsObjects(); OutputStream humanOutRaw = null; if (args.humanOutName != null) { humanOutRaw = openOutput(args.humanOutName); humanOutWriter = new OutputStreamWriter(humanOutRaw); } try { if (args.multiDex) { return runMultiDex(); } else { return runMonoDex(); } } finally { closeOutput(humanOutRaw); } }
OutputStream out = openOutput(fileName); JarOutputStream jarOut = new JarOutputStream(out, manifest);
OutputStream out = openOutput(fileName); JarOutputStream jarOut = new JarOutputStream(out, manifest);
OutputStream out = openOutput(fileName); JarOutputStream jarOut = new JarOutputStream(out, manifest);
public int runDx(Arguments arguments) throws IOException { // Reset the error count to start fresh. errors.set(0); // empty the list, so that tools that load dx and keep it around // for multiple runs don't reuse older buffers. libraryDexBuffers.clear(); args = arguments; args.makeOptionsObjects(); OutputStream humanOutRaw = null; if (args.humanOutName != null) { humanOutRaw = openOutput(args.humanOutName); humanOutWriter = new OutputStreamWriter(humanOutRaw); } try { if (args.multiDex) { return runMultiDex(); } else { return runMonoDex(); } } finally { closeOutput(humanOutRaw); } }
OutputStream out = openOutput(fileName); JarOutputStream jarOut = new JarOutputStream(out, manifest);
OutputStream out = openOutput(fileName); JarOutputStream jarOut = new JarOutputStream(out, manifest);
OutputStream out = openOutput(fileName); JarOutputStream jarOut = new JarOutputStream(out, manifest);
/** * Run and return a result code. * @param arguments the data + parameters for the conversion * @return 0 if success > 0 otherwise. */ public int run(Arguments arguments) throws IOException { // Reset the error count to start fresh. errors.set(0); // empty the list, so that tools that load dx and keep it around // for multiple runs don't reuse older buffers. libraryDexBuffers.clear(); args = arguments; args.makeOptionsObjects(context); OutputStream humanOutRaw = null; if (args.humanOutName != null) { humanOutRaw = openOutput(args.humanOutName); humanOutWriter = new OutputStreamWriter(humanOutRaw); } try { if (args.multiDex) { return runMultiDex(); } else { return runMonoDex(); } } finally { closeOutput(humanOutRaw); } }
try { if (args.humanOutName != null) { humanOutRaw = openOutput(args.humanOutName); humanOut = new OutputStreamWriter(humanOutRaw); out = openOutput(args.outName); out.write(outArray);
private int runMonoDex() throws IOException { if (!processAllFiles()) { return 1; } // this array is null if no classes were defined byte[] outArray = null; if (!outputDex.isEmpty() || (args.humanOutName != null)) { outArray = writeDex(outputDex); if (outArray == null) { return 2; } } if (args.jarOutput) { // Effectively free up the (often massive) DexFile memory. outputDex = null; if (outArray != null) { outputResources.put(DexFormat.DEX_IN_JAR_NAME, outArray); } if (!createJar(args.outName)) { return 3; } } else if (outArray != null && args.outName != null) { OutputStream out = openOutput(args.outName); out.write(outArray); closeOutput(out); } return 0; }
try { if (args.humanOutName != null) { humanOutRaw = openOutput(args.humanOutName); humanOut = new OutputStreamWriter(humanOutRaw);
OutputStream out = openOutput(args.outName); out.write(outArray); closeOutput(out);
OutputStream out = openOutput(args.outName); out.write(outArray); closeOutput(out);
OutputStream out = openOutput(args.outName); out.write(outArray); closeOutput(out);
OutputStream out = openOutput(args.outName); out.write(outArray); closeOutput(out);