LibraryVariantBuilder

interface LibraryVariantBuilder : VariantBuilder, HasAndroidTestBuilder, HasUnitTestBuilder, HasTestFixturesBuilder, CanMinifyCodeBuilder


VariantBuilder type for library projects

Inherited functions

Unit
<T : Any> registerExtension(type: Class<T>, instance: T)

Registers an extension object to the variant object.

Inherited properties

Boolean

Specifies whether code will be minified

Boolean

Set to true if the variant is active and should be configured, false otherwise.

Boolean

This property is deprecated. Will be removed in 8.0

String?

Build type name, might be replaced with access to locked DSL object once ready.

String?

The multi-flavor name of the variant.

String

Component's name.

List<Pair<StringString>>

List of flavor names, might be replaced with access to locked DSL objects once ready.

Boolean

This property is deprecated. replaced with enableAndroidTest

Boolean

Set to true if the variant's has any android tests, false otherwise.

Boolean

Set to true if the variant's has test fixtures, false otherwise.

Boolean

This property is deprecated. Will be removed in AGP 9.0.

Int?

Gets the maximum supported SDK Version for this variant.

Int?

Gets or sets the minimum supported SDK Version for this variant.

String?

Gets or sets the minimum supported SDK Version for this variant as a Preview codename.

Int

Specifies the bytecode version to be generated.

Int?

This property is deprecated. Will be removed in v9.0

String?

This property is deprecated. Will be removed in v9.0

Boolean

This property is deprecated. Will be removed in AGP 9.0.