TestVariant

interface TestVariant : GeneratesApk, GeneratesTestApk, ComponentIdentity, Component, HasAndroidResources, Variant, MinifyableVariant


Variant for test-only modules.

Summary

Public properties

Property<String>

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

Provider<String>

The application of the app under tests.

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

applicationId

val applicationIdProperty<String>

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

testedApplicationId

val testedApplicationIdProvider<String>

The application of the app under tests.