AndroidSourceSet

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.

@Incubating 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

@Incubating Unit

This function is deprecated. Unused

Unit

The Android JNI libs directory for this source-set

Unit

The Java 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 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

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

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

Public functions

aidl

fun aidl(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Android AIDL source directory for this source set.

assets

fun assets(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Android Assets directory for this source set.

baselineProfiles

@Incubating
fun baselineProfiles(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Android Baseline Profiles source directory for this source set.

getName

fun getName(): String

Returns the name of this source set.

java

fun java(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Java source for this source-set

jni

@Incubating
fun jni(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Android JNI source directory for this source set.

jniLibs

fun jniLibs(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Android JNI libs directory for this source-set

kotlin

fun kotlin(action: Action<AndroidSourceDirectorySet>): Unit

The Java source for this source-set

manifest

fun manifest(action: @ExtensionFunctionType AndroidSourceFile.() -> Unit): Unit

The Android Manifest file for this source-set.

mlModels

fun mlModels(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The machine learning models directory for this source set.

renderscript

fun renderscript(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Android RenderScript source directory for this source set.

res

fun res(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Android Resources directory for this source-set.

resources

fun resources(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Java-style resources for this source-set

setRoot

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

fun shaders(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit

The Android shaders directory for this source set.

Public properties

aidl

val aidlAndroidSourceDirectorySet

The Android AIDL source directory for this source set.

annotationProcessorConfigurationName

val annotationProcessorConfigurationNameString

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

apiConfigurationName

val apiConfigurationNameString

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

assets

val assetsAndroidSourceDirectorySet

The Android Assets directory for this source set.

baselineProfiles

val baselineProfilesAndroidSourceDirectorySet

The Android Baseline Profiles source directory for this source set.

compileOnlyConfigurationName

val compileOnlyConfigurationNameString

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

implementationConfigurationName

val implementationConfigurationNameString

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

java

val javaAndroidSourceDirectorySet

The Java source for this source-set

jni

val jniAndroidSourceDirectorySet

The Android JNI source directory for this source set.

jniLibs

val jniLibsAndroidSourceDirectorySet

The Android JNI libs directory for this source-set

kotlin

val kotlinAndroidSourceDirectorySet

The Kotlin source for this source-set

manifest

val manifestAndroidSourceFile

The Android Manifest file for this source-set.

mlModels

val mlModelsAndroidSourceDirectorySet

The machine learning models directory for this source set.

renderscript

val renderscriptAndroidSourceDirectorySet

The Android RenderScript source directory for this source set.

res

val resAndroidSourceDirectorySet

The Android Resources directory for this source-set.

resources

val resourcesAndroidSourceDirectorySet

The Java-style resources for this source-set

runtimeOnlyConfigurationName

val runtimeOnlyConfigurationNameString

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

shaders

val shadersAndroidSourceDirectorySet

The Android shaders directory for this source set.

wearAppConfigurationName

val wearAppConfigurationNameString

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