Package proguard.io

Class DexDataEntryWriterFactory

java.lang.Object
proguard.io.DexDataEntryWriterFactory

public class DexDataEntryWriterFactory extends Object
This class can create DataEntryWriter instances for writing dex files.
  • Constructor Details

    • DexDataEntryWriterFactory

      public DexDataEntryWriterFactory(ClassPool programClassPool, ClassPath libraryJars, boolean appBundle, int multiDexCount, int minSdkVersion, boolean debuggable, DataEntryReader extraDexDataEntryVisitor)
      Creates a new DexDataEntryWriterFactory.
      Parameters:
      programClassPool - the program class pool to process.
      libraryJars - ClassPathEntry list of library jars
      appBundle - 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.
  • Method Details

    • wrapInDexWriter

      public 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.
      Parameters:
      dexWriter - the data entry writer to which dex files can be written.