LibraryVariant

interface LibraryVariant : ComponentIdentity, Component, HasAndroidResources, Variant, GeneratesAar, HasAndroidTest, HasTestFixtures


Variant for Library projects

Summary

Public properties

Renderscript?

Variant specific settings for the renderscript compiler.

Inherited functions

From class Component
Unit

This function is deprecated. Use the instrumentation block.

Unit
<ParamT : InstrumentationParameters?> transformClassesWith(
    classVisitorFactoryImplClass: Class<AsmClassVisitorFactory<ParamT?>?>?,
    scope: InstrumentationScope?,
    instrumentationParamsConfig: ((ParamT) -> Unit)?
)

This function is deprecated. Use the instrumentation block.

From class HasAndroidResources
ResValue.Key
makeResValueKey(type: String?, name: String?)

Make a ResValue.Key to interact with resValues's MapProperty

From class Variant
T?
<T : Any?> getExtension(type: Class<T?>?)

Returns an extension object registered via the VariantBuilder.registerExtension API or null if none were registered under the passed type.

Public properties

renderscript

val renderscriptRenderscript?

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