AndroidSourceFile

@Incubating interface AndroidSourceFile : Named
com.android.build.api.dsl.AndroidSourceFile

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

Summary

Public methods

abstract String

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

abstract Any
srcFile(srcPath: Any)

Sets the location of the file.

Public methods

getName

abstract fun getName(): String

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

srcFile

abstract 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.