AndroidSourceSet

Added in 4.2.0

interface AndroidSourceSet : Named


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

Summary

Public functions

Unit

The Android AIDL source directory for this source set.

Unit

The Android Assets directory for this source set.

Unit

The Android Baseline Profiles source directory for this source set.

String

Returns the name of this source set.

Unit

The Java source for this source-set

Unit

This function is deprecated. Unused

Unit

The Android JNI libs directory for this source-set

Unit

The Kotlin source for this source-set

Unit

The Android Manifest file for this source-set.

Unit

The machine learning models directory for this source set.

Unit

The Android RenderScript source directory for this source set.

Unit

The Android Resources directory for this source-set.

Unit

The Java-style resources for this source-set

Any
setRoot(path: String)

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

Unit

The Android shaders directory for this source set.

Public properties

AndroidSourceDirectorySet

The Android AIDL source directory for this source set.

String

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

String

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

AndroidSourceDirectorySet

The Android Assets directory for this source set.

AndroidSourceDirectorySet

The Android Baseline Profiles source directory for this source set.

String

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

String

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

String

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

AndroidSourceDirectorySet

The Java source for this source-set

AndroidSourceDirectorySet

This property is deprecated. Unused

AndroidSourceDirectorySet

The Android JNI libs directory for this source-set

String

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

AndroidSourceDirectorySet

The Kotlin source for this source-set

AndroidSourceFile

The Android Manifest file for this source-set.

AndroidSourceDirectorySet

The machine learning models directory for this source set.

AndroidSourceDirectorySet

The Android RenderScript source directory for this source set.

AndroidSourceDirectorySet

The Android Resources directory for this source-set.

AndroidSourceDirectorySet

The Java-style resources for this source-set

String

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

AndroidSourceDirectorySet

The Android shaders directory for this source set.

String

This property is deprecated. Deprecated configuration - to be removed in AGP 9.0

Public functions

aidl

Added in 4.2.0
fun aidl(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android AIDL source directory for this source set.

assets

Added in 4.2.0
fun assets(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android Assets directory for this source set.

baselineProfiles

Added in 8.0.2
@Incubating
fun baselineProfiles(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android Baseline Profiles source directory for this source set.

getName

Added in 8.9.0-alpha03
fun getName(): String

Returns the name of this source set.

java

Added in 4.2.0
fun java(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Java source for this source-set

jni

Added in 4.2.0
Deprecated in 7.0.0
@Incubating
fun jni(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android JNI source directory for this source set.

This is unused and will be removed in AGP 9.0

jniLibs

Added in 4.2.0
fun jniLibs(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android JNI libs directory for this source-set

kotlin

Added in 7.0.0
fun kotlin(action: Action<AndroidSourceDirectorySet>): Unit

The Kotlin source for this source-set

manifest

Added in 4.2.0
fun manifest(action: AndroidSourceFile.() -> Unit): Unit

The Android Manifest file for this source-set.

mlModels

Added in 4.2.0
fun mlModels(action: AndroidSourceDirectorySet.() -> Unit): Unit

The machine learning models directory for this source set.

renderscript

Added in 4.2.0
fun renderscript(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android RenderScript source directory for this source set.

res

Added in 4.2.0
fun res(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android Resources directory for this source-set.

resources

Added in 4.2.0
fun resources(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Java-style resources for this source-set

setRoot

Added in 4.2.0
fun setRoot(path: String): Any

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

All entries of the source-set are located under this root directory.

This method has a return value for legacy reasons.

Parameters
path: String

the root directory path to use.

shaders

Added in 4.2.0
fun shaders(action: AndroidSourceDirectorySet.() -> Unit): Unit

The Android shaders directory for this source set.

Public properties

aidl

Added in 4.2.0
val aidlAndroidSourceDirectorySet

The Android AIDL source directory for this source set.

annotationProcessorConfigurationName

Added in 4.2.0
val annotationProcessorConfigurationNameString

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

apiConfigurationName

Added in 4.2.0
val apiConfigurationNameString

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

assets

Added in 4.2.0
val assetsAndroidSourceDirectorySet

The Android Assets directory for this source set.

baselineProfiles

Added in 8.0.2
val baselineProfilesAndroidSourceDirectorySet

The Android Baseline Profiles source directory for this source set.

compileOnlyApiConfigurationName

Added in 8.4.0
val compileOnlyApiConfigurationNameString

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

compileOnlyConfigurationName

Added in 4.2.0
val compileOnlyConfigurationNameString

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

implementationConfigurationName

Added in 4.2.0
val implementationConfigurationNameString

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

java

Added in 4.2.0
val javaAndroidSourceDirectorySet

The Java source for this source-set

jni

Added in 4.2.0
Deprecated in 7.0.0
val jniAndroidSourceDirectorySet

The Android JNI source directory for this source set.

This is unused and will be removed in AGP 9.0

jniLibs

Added in 4.2.0
val jniLibsAndroidSourceDirectorySet

The Android JNI libs directory for this source-set

kaptConfigurationName

Added in 8.9.0-alpha03
val kaptConfigurationNameString

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

This configuration is only created when built-in KAPT support is enabled.

kotlin

Added in 7.0.0
val kotlinAndroidSourceDirectorySet

The Kotlin source for this source-set

manifest

Added in 4.2.0
val manifestAndroidSourceFile

The Android Manifest file for this source-set.

mlModels

Added in 4.2.0
val mlModelsAndroidSourceDirectorySet

The machine learning models directory for this source set.

renderscript

Added in 4.2.0
val renderscriptAndroidSourceDirectorySet

The Android RenderScript source directory for this source set.

res

Added in 4.2.0
val resAndroidSourceDirectorySet

The Android Resources directory for this source-set.

resources

Added in 4.2.0
val resourcesAndroidSourceDirectorySet

The Java-style resources for this source-set

runtimeOnlyConfigurationName

Added in 4.2.0
val runtimeOnlyConfigurationNameString

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

shaders

Added in 4.2.0
val shadersAndroidSourceDirectorySet

The Android shaders directory for this source set.

wearAppConfigurationName

Added in 4.2.0
Deprecated in 8.9.0-alpha03
val wearAppConfigurationNameString

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