Interface SourceProvider


public interface SourceProvider
Represent a SourceProvider for a given configuration. TODO: source filters?
  • Method Details

    • getName

      @NonNull String getName()
      Returns the name of this source set.
      Returns:
      The name. Never returns null.
    • getManifestFile

      @NonNull File getManifestFile()
      Returns the manifest file.
      Returns:
      the manifest file. It may not exist.
    • getJavaDirectories

      @NonNull Collection<File> getJavaDirectories()
      Returns the java source folders.
      Returns:
      a list of folders. They may not all exist.
    • getKotlinDirectories

      @NonNull Collection<File> getKotlinDirectories()
      Returns the kotlin source folders.
      Returns:
      a list of folders. They may not all exist.
    • getResourcesDirectories

      @NonNull Collection<File> getResourcesDirectories()
      Returns the java resources folders.
      Returns:
      a list of folders. They may not all exist.
    • getAidlDirectories

      @NonNull Collection<File> getAidlDirectories()
      Returns the aidl source folders.
      Returns:
      a list of folders. They may not all exist.
    • getRenderscriptDirectories

      @NonNull Collection<File> getRenderscriptDirectories()
      Returns the renderscript source folders.
      Returns:
      a list of folders. They may not all exist.
    • getCDirectories

      @NonNull @Deprecated Collection<File> getCDirectories()
      Deprecated.
      since ndk-compile is deprecated
      Returns the C source folders.
      Returns:
      a list of folders. They may not all exist.
    • getCppDirectories

      @NonNull @Deprecated Collection<File> getCppDirectories()
      Deprecated.
      since ndk-compile is deprecated
      Returns the C++ source folders.
      Returns:
      a list of folders. They may not all exist.
    • getResDirectories

      @NonNull Collection<File> getResDirectories()
      Returns the android resources folders.
      Returns:
      a list of folders. They may not all exist.
    • getAssetsDirectories

      @NonNull Collection<File> getAssetsDirectories()
      Returns the android assets folders.
      Returns:
      a list of folders. They may not all exist.
    • getJniLibsDirectories

      @NonNull Collection<File> getJniLibsDirectories()
      Returns the native libs folders.
      Returns:
      a list of folders. They may not all exist.
    • getShadersDirectories

      @NonNull Collection<File> getShadersDirectories()
      Returns the shader folders.
      Returns:
      a list of folders. They may not all exist.
    • getMlModelsDirectories

      @NonNull Collection<File> getMlModelsDirectories()
      Returns the machine learning models folders.
      Returns:
      a list of folders. They may not all exist.
    • getCustomDirectories

      @NonNull Collection<com.android.builder.model.v2.CustomSourceDirectory> getCustomDirectories()
      Returns the map of registered custom directories, key is the name provided when registering the source set, and value is the list of folders for that custom source set.
      Returns:
      a map of source set name to source set folders.