Class ClassFileInputs

java.lang.Object
com.android.builder.dexing.ClassFileInputs

public class ClassFileInputs extends Object
Helper methods for creating ClassFileInput instances.
  • Method Details

    • fromPath

      @NonNull public static ClassFileInput fromPath(@NonNull Path rootPath)
      Creates a ClassFileInput by analyzing the specified root path. It supports discovery of .class files in directories and jar files, while omitting the ones that do not satisfy the specified predicate.

      In case the path ends with .jar, all .class files in in will be kept and added to the ClassFileInput object that is created.

      Otherwise, the root path will be processed as a directory, and all .class files in it will be processed.

      Parameters:
      rootPath - root path to analyze, jar or a directory
      Returns:
      input ClassFileInput that provides a list of .class files to process