AndroidSourceDirectorySet

Added in 4.2.0

interface AndroidSourceDirectorySet : Named


An AndroidSourceDirectorySet represents a set of directory inputs for an Android project.

Summary

Public functions

String

A concise name for the source directory (typically used to identify it in a collection).

Any
setSrcDirs(srcDirs: Iterable<*>)

Sets the source directories for this set.

Any
srcDir(srcDir: Any)

Adds the given source directory to this set.

Any
srcDirs(vararg srcDirs: Any)

Adds the given source directories to this set.

Public properties

MutableSet<String>

Allows to add source directories to this list.

Public functions

getName

Added in 8.6.1
fun getName(): String

A concise name for the source directory (typically used to identify it in a collection).

setSrcDirs

Added in 4.2.0
fun setSrcDirs(srcDirs: Iterable<*>): Any

Sets the source directories for this set.

Parameters
srcDirs: Iterable<*>

The source directories. These are evaluated as for org.gradle.api.Project.files

This method has a return value for legacy reasons.

srcDir

Added in 4.2.0
fun srcDir(srcDir: Any): Any

Adds the given source directory to this set.

Parameters
srcDir: Any

The source directory. This is evaluated as org.gradle.api.Project.file

This method has a return value for legacy reasons.

srcDirs

Added in 4.2.0
fun srcDirs(vararg srcDirs: Any): Any

Adds the given source directories to this set.

Parameters
vararg srcDirs: Any

The source directories. These are evaluated as org.gradle.api.Project.files

This method has a return value for legacy reasons.

Public properties

directories

Added in 8.6.1
val directoriesMutableSet<String>

Allows to add source directories to this list. Directories provides MutableList style access to all source directories that are added via list itself or variety srcDirs methods.

Note that tasks or buildscript may add more directories, so you should not read this property and use Variant API instead.