Package proguard.io

Class DexDataEntryWriterFactory


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

      Constructors 
      Constructor Description
      DexDataEntryWriterFactory​(ClassPool programClassPool, ClassPath libraryJars, boolean appBundle, int multiDexCount, int minSdkVersion, boolean debuggable, DataEntryReader extraDexDataEntryVisitor)
      Creates a new DexDataEntryWriterFactory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • 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.