Class Dex2Pro

java.lang.Object
proguard.dexfile.converter.Dex2Pro

public class Dex2Pro extends Object
This utility class converts Dex2jar dex files to ProGuard class files.
  • Constructor Details

    • Dex2Pro

      public Dex2Pro()
      Create a new (single-threaded) Dex2Pro object.
    • Dex2Pro

      public Dex2Pro(int maximumThreads)
      Create a new Dex2Pro object that will use up to maximumThreads threads for conversion. If more than one thread is set, one must call shutdown() after adding all work, to allow time for the workers to shut down in an orderly fashion.
  • Method Details

    • usePrimitiveArrayConstants

      public Dex2Pro usePrimitiveArrayConstants(boolean usePrimitiveArrayConstants)
    • convertDex

      public void convertDex(DexFileNode fileNode, ClassVisitor classVisitor)
      Converts the given Dex to classes and applies the given class visitor to them.
    • shutdown

      public void shutdown(int timeoutSeconds)
      Shuts down and waits for any remaining conversion workers, up to timeoutSeconds.