public class DexDataEntryWriterFactory
extends java.lang.Object
Constructor and Description |
---|
DexDataEntryWriterFactory(ClassPool programClassPool,
ClassPath libraryJars,
boolean appBundle,
int multiDexCount,
int minSdkVersion,
boolean debuggable,
DataEntryReader extraDexDataEntryVisitor)
Creates a new DexDataEntryWriterFactory.
|
Modifier and Type | Method and Description |
---|---|
DataEntryWriter |
wrapInDexWriter(DataEntryWriter dexWriter)
Wraps the given data entry writer in dex data entry writers for
"classes.dex", etc, supporting feature dex files, multidex, and
split dex files.
|
public DexDataEntryWriterFactory(ClassPool programClassPool, ClassPath libraryJars, boolean appBundle, int multiDexCount, int minSdkVersion, boolean debuggable, DataEntryReader extraDexDataEntryVisitor)
programClassPool
- the program class pool to process.libraryJars
- ClassPathEntry
list of library jarsappBundle
- specifies whether the dex files should
be named following the app bundle
directory structure.multiDexCount
- specifies the number of dex files in
the multidex partitioning.minSdkVersion
- the minimum supported API level.debuggable
- whether the dex file shall be debuggable
or not.extraDexDataEntryVisitor
- an optional extra visitor for all dex
data entries that are written. The
visitor can use the data entry names,
but must not read their contents.public DataEntryWriter wrapInDexWriter(DataEntryWriter dexWriter)
dexWriter
- the data entry writer to which dex files can be
written.