Sources
@Incubating interface Sources
Provides access to all source directories for a Variant
.
since 7.2
Summary
Public functions |
|
---|---|
SourceDirectories.Flat |
Access (and potentially creates) a new Flat for a custom source type that can be referenced by its |
Public properties |
|
---|---|
SourceDirectories.Flat? |
Access to the aidl sources folders if |
SourceDirectories.Layered? |
Access to the Android assets sources folders. |
SourceDirectories.Flat? |
Access to the Java source folders. |
SourceDirectories.Layered? |
Access to the JNI libraries folders |
SourceDirectories.Flat? |
Access ot the Kotlin source folders. |
SourceDirectories.Layered? |
Access to the machine learning models folders. |
SourceDirectories.Flat? |
Access to the renderscript sources folders if |
SourceDirectories.Layered? |
Access to the Android resources sources folders. |
SourceDirectories.Layered? |
Access to the shaders sources folders if |
Public functions
getByName
fun getByName(name: String): SourceDirectories.Flat
Access (and potentially creates) a new Flat for a custom source type that can be referenced by its name
.
The first caller will create the new instance, other callers with the same name
will get the same instance returned. Any callers can obtain the final list of the folders registered under this custom source type by calling Flat.all.
These sources directories are attached to the variant and will be visible to Android Studio.
Public properties
aidl
val aidl: SourceDirectories.Flat?
Access to the aidl sources folders if com.android.build.api.dsl.BuildFeatures.aidl
is true otherwise null
renderscript
val renderscript: SourceDirectories.Flat?
Access to the renderscript sources folders if com.android.build.api.dsl.BuildFeatures.renderScript
is true otherwise null.
shaders
val shaders: SourceDirectories.Layered?
Access to the shaders sources folders if com.android.build.api.dsl.BuildFeatures.shaders
is true otherwise null