LibrarySources

Added in 9.2.0-alpha02

interface LibrarySources : Sources


Summary

Public properties

SourceDirectories.Flat?

KeepRules files for R8 optimization when publishing AAR library.

Inherited functions

From com.android.build.api.variant.Sources
SourceDirectories.Flat

Access (and potentially creates) a new SourceDirectories.Flat for a custom source type that can be referenced by its name.

Inherited properties

From com.android.build.api.variant.Sources
SourceDirectories.Flat?

Access to the aidl sources folders if com.android.build.api.dsl.BuildFeatures.aidl is true otherwise null

SourceDirectories.Layered?

Access to the Android assets sources folders.

SourceDirectories.Flat?

Access to the Baseline profiles source folders.

SourceDirectories.Flat?

Access to the Java source folders.

SourceDirectories.Layered?

Access to the JNI libraries folders

SourceDirectories.Flat?

KeepRules files for R8 configuration

SourceDirectories.Flat?

Access to the Kotlin source folders.

ManifestFiles

Access to all android manifest files.

SourceDirectories.Layered?

Access to the machine learning models folders if com.android.build.api.dsl.ApplicationBuildFeatures.mlModelBinding is true otherwise null

SourceDirectories.Flat?

Access to the renderscript sources folders if com.android.build.api.dsl.BuildFeatures.renderScript is true otherwise null.

SourceDirectories.Layered?

Access to the Android resources sources folders if the component supports android resources or if com.android.build.api.dsl.LibraryBuildFeatures.androidResources is true for library variants, otherwise null.

SourceDirectories.Flat?

Access to the Java-style resources sources folders.

SourceDirectories.Layered?

Access to the shaders sources folders if com.android.build.api.dsl.BuildFeatures.shaders is true otherwise null

Public properties

aarKeepRules

Added in 9.2.0-alpha02
val aarKeepRulesSourceDirectories.Flat?

KeepRules files for R8 optimization when publishing AAR library. These optimization files are used for library own minification process when publishing AAR.