Package com.android.builder.model
Interface SourceProvider
public interface SourceProvider
Represent a SourceProvider for a given configuration.
TODO: source filters?
-
Method Summary
Modifier and TypeMethodDescriptionReturns the aidl source folders.Returns the android assets folders.Deprecated.since ndk-compile is deprecatedDeprecated.since ndk-compile is deprecatedCollection<com.android.builder.model.v2.CustomSourceDirectory>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 the java source folders.Returns the native libs folders.Returns the kotlin source folders.Returns the manifest file.Returns the machine learning models folders.getName()Returns the name of this source set.Returns the renderscript source folders.Returns the android resources folders.Returns the java resources folders.Returns the shader folders.
-
Method Details
-
getName
Returns the name of this source set.- Returns:
- The name. Never returns null.
-
getManifestFile
Returns the manifest file.- Returns:
- the manifest file. It may not exist.
-
getJavaDirectories
Returns the java source folders.- Returns:
- a list of folders. They may not all exist.
-
getKotlinDirectories
Returns the kotlin source folders.- Returns:
- a list of folders. They may not all exist.
-
getResourcesDirectories
Returns the java resources folders.- Returns:
- a list of folders. They may not all exist.
-
getAidlDirectories
Returns the aidl source folders.- Returns:
- a list of folders. They may not all exist.
-
getRenderscriptDirectories
Returns the renderscript source folders.- Returns:
- a list of folders. They may not all exist.
-
getCDirectories
Deprecated.since ndk-compile is deprecatedReturns the C source folders.- Returns:
- a list of folders. They may not all exist.
-
getCppDirectories
Deprecated.since ndk-compile is deprecatedReturns the C++ source folders.- Returns:
- a list of folders. They may not all exist.
-
getResDirectories
Returns the android resources folders.- Returns:
- a list of folders. They may not all exist.
-
getAssetsDirectories
Returns the android assets folders.- Returns:
- a list of folders. They may not all exist.
-
getJniLibsDirectories
Returns the native libs folders.- Returns:
- a list of folders. They may not all exist.
-
getShadersDirectories
Returns the shader folders.- Returns:
- a list of folders. They may not all exist.
-
getMlModelsDirectories
Returns the machine learning models folders.- Returns:
- a list of folders. They may not all exist.
-
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.
-