Google is committed to advancing racial equity for Black communities. See how.

AndroidSourceSet

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

An AndroidSourceSet represents a logical group of Java, aidl and RenderScript sources as well as Android and non-Android (Java-style) resources.

Summary

Public methods

abstract Unit

The Android AIDL source directory for this source set.

abstract Unit

The Android Assets directory for this source set.

abstract String

Returns the name of this source set.

abstract Unit

The Java source for this source-set

abstract Unit

The Android JNI source directory for this source set.

abstract Unit

The Android JNI libs directory for this source-set

abstract Unit
manifest(action: AndroidSourceFile.() -> Unit)

The Android Manifest file for this source-set.

abstract Unit

The machine learning models directory for this source set.

abstract Unit

The Android RenderScript source directory for this source set.

abstract Unit

The Android Resources directory for this source-set.

abstract Unit

The Java-style resources for this source-set

abstract Any
setRoot(path: String)

Sets the root of the source sets to a given path.

abstract Unit

The Android shaders directory for this source set.

Properties

abstract AndroidSourceDirectorySet

The Android AIDL source directory for this source set.

abstract String

Returns the name of the annotation processing tool classpath for this source set.

abstract String

Returns the name of the api configuration for this source set.

abstract AndroidSourceDirectorySet

The Android Assets directory for this source set.

abstract String

Returns the name of the compileOnly configuration for this source set.

abstract String

Returns the name of the implemenation configuration for this source set.

abstract AndroidSourceDirectorySet

The Java source for this source-set

abstract AndroidSourceDirectorySet

The Android JNI source directory for this source set.

abstract AndroidSourceDirectorySet

The Android JNI libs directory for this source-set

abstract AndroidSourceFile

The Android Manifest file for this source-set.

abstract AndroidSourceDirectorySet

The machine learning models directory for this source set.

abstract AndroidSourceDirectorySet

The Android RenderScript source directory for this source set.

abstract AndroidSourceDirectorySet

The Android Resources directory for this source-set.

abstract AndroidSourceDirectorySet

The Java-style resources for this source-set

abstract String

Returns the name of the implemenation configuration for this source set.

abstract AndroidSourceDirectorySet

The Android shaders directory for this source set.

abstract String

Returns the name of the wearApp configuration for this source set.

Public methods

aidl

abstract fun aidl(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android AIDL source directory for this source set.

assets

abstract fun assets(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android Assets directory for this source set.

getName

abstract fun getName(): String

Returns the name of this source set.

java

abstract fun java(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Java source for this source-set

jni

abstract fun jni(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android JNI source directory for this source set.

jniLibs

abstract fun jniLibs(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android JNI libs directory for this source-set

manifest

abstract fun manifest(action: AndroidSourceFile.() -> Unit): Unit

The Android Manifest file for this source-set.

mlModels

abstract fun mlModels(action: AndroidSourceDirectorySet.() -> Unit): Unit

The machine learning models directory for this source set.

renderscript

abstract fun renderscript(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android RenderScript source directory for this source set.

res

abstract fun res(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android Resources directory for this source-set.

resources

abstract fun resources(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Java-style resources for this source-set

setRoot

abstract fun setRoot(path: String): Any

Sets the root of the source sets to a given path.

All entries of the soure-setare located under this root directory.

This method has a return value for legacy reasons.

Parameters
path: String the root directory path to use.

shaders

abstract fun shaders(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android shaders directory for this source set.

Properties

aidl

abstract val aidl: AndroidSourceDirectorySet

The Android AIDL source directory for this source set.

annotationProcessorConfigurationName

abstract val annotationProcessorConfigurationName: String

Returns the name of the annotation processing tool classpath for this source set.

apiConfigurationName

abstract val apiConfigurationName: String

Returns the name of the api configuration for this source set.

assets

abstract val assets: AndroidSourceDirectorySet

The Android Assets directory for this source set.

compileOnlyConfigurationName

abstract val compileOnlyConfigurationName: String

Returns the name of the compileOnly configuration for this source set.

implementationConfigurationName

abstract val implementationConfigurationName: String

Returns the name of the implemenation configuration for this source set.

java

abstract val java: AndroidSourceDirectorySet

The Java source for this source-set

jni

abstract val jni: AndroidSourceDirectorySet

The Android JNI source directory for this source set.

jniLibs

abstract val jniLibs: AndroidSourceDirectorySet

The Android JNI libs directory for this source-set

manifest

abstract val manifest: AndroidSourceFile

The Android Manifest file for this source-set.

mlModels

abstract val mlModels: AndroidSourceDirectorySet

The machine learning models directory for this source set.

renderscript

abstract val renderscript: AndroidSourceDirectorySet

The Android RenderScript source directory for this source set.

res

abstract val res: AndroidSourceDirectorySet

The Android Resources directory for this source-set.

resources

abstract val resources: AndroidSourceDirectorySet

The Java-style resources for this source-set

runtimeOnlyConfigurationName

abstract val runtimeOnlyConfigurationName: String

Returns the name of the implemenation configuration for this source set.

shaders

abstract val shaders: AndroidSourceDirectorySet

The Android shaders directory for this source set.

wearAppConfigurationName

abstract val wearAppConfigurationName: String

Returns the name of the wearApp configuration for this source set.