Android 12 Developer Preview is here! Try it out, and give us your feedback!

LibraryVariant

@Incubating interface LibraryVariant : Variant
com.android.build.api.variant.LibraryVariant

Variant for Library projects

Summary

Inherited functions

Properties

abstract AarMetadata

Variant's aar metadata, initialized by merging the corresponding com.android.build.api.dsl.AarMetadata DSL elements.

abstract AndroidTest?

Variant's AndroidTest configuration, or null if android tests are disabled for this variant.

abstract Provider<String>

Variant's application ID as present in the final manifest file of the APK.

abstract Renderscript?

Variant specific settings for the renderscript compiler.

Inherited properties

Properties

aarMetadata

abstract val aarMetadata: AarMetadata

Variant's aar metadata, initialized by merging the corresponding com.android.build.api.dsl.AarMetadata DSL elements.

androidTest

abstract val androidTest: AndroidTest?

Variant's AndroidTest configuration, or null if android tests are disabled for this variant.

applicationId

abstract val applicationId: Provider<String>

Variant's application ID as present in the final manifest file of the APK.

This is a read-ony value based on the package entry in the manifest

renderscript

abstract val renderscript: Renderscript?

Variant specific settings for the renderscript compiler. This will return null when com.android.build.api.dsl.BuildFeatures.renderScript is false.