Package com.android.dx.dex.file

Examples of com.android.dx.dex.file.DexFile.toDex()


        for (TypeDeclaration typeDeclaration : types.values()) {
            outputDex.add(typeDeclaration.toClassDefItem());
        }

        try {
            return outputDex.toDex(null, false);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here


    ClassDefItem item= CfTranslator.translate(relativePath, classFile.getDataAsBytes(), options);
    DexFile dexFile= new DexFile();
    dexFile.add(item);
    try
    {
      byte[] rawDex= dexFile.toDex(null, false);
      OutputFile result= new OutputFile(rawDex);
      result.setLocation(classFile.getLocation());
      result.setFileName(classFile.getFileName().replace(ClassFile.CLASS_ENDING, DEX_ENDING));
      return result;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.