Search in sources :

Example 1 with DxContext

use of com.android.dx.command.dexer.DxContext in project buck by facebook.

the class DexMerger method main.

public static void main(String[] args) throws IOException {
    if (args.length < 2) {
        printUsage();
        return;
    }
    Dex[] dexes = new Dex[args.length - 1];
    for (int i = 1; i < args.length; i++) {
        dexes[i - 1] = new Dex(new File(args[i]));
    }
    Dex merged = new DexMerger(dexes, CollisionPolicy.KEEP_FIRST, new DxContext()).merge();
    merged.writeTo(new File(args[0]));
}
Also used : DxContext(com.android.dx.command.dexer.DxContext) Dex(com.android.dex.Dex) File(java.io.File)

Aggregations

Dex (com.android.dex.Dex)1 DxContext (com.android.dx.command.dexer.DxContext)1 File (java.io.File)1