Package proguard.io

Class D8BasedDexDataEntryWriter

java.lang.Object
proguard.io.DexDataEntryWriter
proguard.io.D8BasedDexDataEntryWriter
All Implemented Interfaces:
AutoCloseable, DataEntryWriter

public class D8BasedDexDataEntryWriter extends DexDataEntryWriter
An dex writer that uses the d8 tool from the Android SDK.
  • Constructor Details

    • D8BasedDexDataEntryWriter

      public D8BasedDexDataEntryWriter(ClassPool classPool, StringMatcher classNameFilter, ClassPath libraryJars, String dexFileName, boolean forceDex, int minSdkVersion, boolean debuggable, DataEntryReader extraDexDataEntryVisitor, DataEntryWriter dexDataEntryWriter, DataEntryWriter otherDataEntryWriter)
      Creates a new D8BasedDexDataEntryWriter.
      Parameters:
      classPool - the class pool from which classes are collected.
      classNameFilter - an optional filter for classes to be written.
      dexFileName - the dex file name.
      forceDex - specifies whether the dex files should always be written, even if they don't contain any code.
      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 written. The visitor can use the data entry names, but must not read their contents.
      dexDataEntryWriter - the writer to which the converted dex file is written.
      otherDataEntryWriter - the writer to which other data entries are written.
  • Method Details