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 | 
            
              aidl(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit)The Android AIDL source directory for this source set.  | 
          
Unit | 
            
              assets(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit)The Android Assets directory for this source set.  | 
          
@Incubating String | 
            
              getName()Returns the name of this source set.  | 
          
Unit | 
            
              java(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit)The Java source for this source-set  | 
          
@Incubating Unit | 
            
              This function is deprecated. Unused  | 
          
Unit | 
            
              jniLibs(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit)The Android JNI libs directory for this source-set  | 
          
Unit | 
            
              kotlin(action: Action<AndroidSourceDirectorySet>)The Java source for this source-set  | 
          
Unit | 
            
              manifest(action: @ExtensionFunctionType AndroidSourceFile.() -> Unit)The Android Manifest file for this source-set.  | 
          
Unit | 
            
              mlModels(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit)The machine learning models directory for this source set.  | 
          
Unit | 
            
              renderscript(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit)The Android RenderScript source directory for this source set.  | 
          
Unit | 
            
              res(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit)The Android Resources directory for this source-set.  | 
          
Unit | 
            
              resources(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit)The Java-style resources for this source-set  | 
          
@Incubating Any | 
            
              
               Sets the root of the source sets to a given path.  | 
          
Unit | 
            
              shaders(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> 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.  | 
          
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.
java
fun java(action: @ExtensionFunctionType AndroidSourceDirectorySet.() -> Unit): Unit
The Java source for this source-set
jni
@Incubating
funjni(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
@Incubating
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
annotationProcessorConfigurationName
val annotationProcessorConfigurationName: String
Returns the name of the annotation processing tool classpath for this source set.
apiConfigurationName
val apiConfigurationName: String
Returns the name of the api configuration for this source set.
compileOnlyConfigurationName
val compileOnlyConfigurationName: String
Returns the name of the compileOnly configuration for this source set.
implementationConfigurationName
val implementationConfigurationName: String
Returns the name of the implementation configuration for this source set.
mlModels
val mlModels: AndroidSourceDirectorySet
The machine learning models directory for this source set.
renderscript
val renderscript: AndroidSourceDirectorySet
The Android RenderScript source directory for this source set.
runtimeOnlyConfigurationName
val runtimeOnlyConfigurationName: String
Returns the name of the implementation configuration for this source set.
wearAppConfigurationName
val wearAppConfigurationName: String
Returns the name of the wearApp configuration for this source set.