AndroidSourceDirectorySet

interface AndroidSourceDirectorySet : Named


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

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 functions

getName

fun getName(): String

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

setSrcDirs

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

fun srcDir(srcDir: Any): Any

Adds the given source directory to this set.

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

This method has a return value for legacy reasons.

srcDirs

fun srcDirs(vararg srcDirs: Any): Any

Adds the given source directories to this set.

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

This method has a return value for legacy reasons.

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Apr 4, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024