Package proguard.dexfile.converter
Class Dex2Pro
java.lang.Object
proguard.dexfile.converter.Dex2Pro
This utility class converts Dex2jar dex files to ProGuard class files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertDex(DexFileNode fileNode, ClassVisitor classVisitor) Converts the given Dex to classes and applies the given class visitor to them.voidshutdown(int timeoutSeconds) Shuts down and waits for any remaining conversion workers, up to timeoutSeconds.usePrimitiveArrayConstants(boolean usePrimitiveArrayConstants)
-
Constructor Details
-
Dex2Pro
public Dex2Pro()Create a new (single-threaded)Dex2Proobject. -
Dex2Pro
public Dex2Pro(int maximumThreads) Create a newDex2Proobject 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
-
convertDex
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.
-