AndroidSourceFile

Added in 4.2.0

interface AndroidSourceFile : Named


An AndroidSourceFile represents a single file input for an Android project.

Summary

Public functions

String

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

Any
srcFile(srcPath: Any)

Sets the location of the file.

Public functions

getName

Added in 8.9.0-alpha03
fun getName(): String

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

srcFile

Added in 4.2.0
fun srcFile(srcPath: Any): Any

Sets the location of the file.

Parameters
srcPath: Any

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

This method has a return value for legacy reasons.