AndroidTest

interface AndroidTest : GeneratesTestApk, TestComponent, HasAndroidResources

Properties for the android test Variant of a module.

Summary

Inherited functions

ResValue.Key makeResValueKey(type: String, name: String)

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

Properties

abstract Property<String>

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

abstract MapProperty<String, out BuildConfigField<out Serializable>>

Variant's BuildConfigField which will be generated in the BuildConfig class.

abstract MapProperty<String, String>

MapProperty of the variant's manifest placeholders.

abstract Provider<String>

The namespace of the generated R and BuildConfig classes.

abstract ListProperty<RegularFile>

List of proguard configuration files for this variant.

abstract SigningConfig?

Variant's signingConfig, initialized by the corresponding DSL element.

Inherited properties

AndroidResources androidResources

Variant's android resources processing configuration, initialized by the corresponding global DSL element.

Provider<String> applicationId

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

ApkPackaging packaging

Variant's packagingOptions, initialized by the corresponding global DSL element.

Renderscript? renderscript

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

Property<Boolean> functionalTest

The functionalTest value to use to run the tests.

Property<Boolean> handleProfiling

The handleProfiling value to use to run the tests.

Property<String> instrumentationRunner

The instrumentationRunner to use to run the tests.

Property<String?> testLabel

The test label.

Property<Boolean> pseudoLocalesEnabled

Variant's is pseudo locales enabled, initialized by the corresponding DSL elements.

MapProperty<ResValue.Key, ResValue> resValues

Variant's ResValue which will be generated.

Properties

applicationId

abstract val applicationId: Property<String>

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

buildConfigFields

abstract val buildConfigFields: MapProperty<String, out BuildConfigField<out Serializable>>

Variant's BuildConfigField which will be generated in the BuildConfig class.

manifestPlaceholders

abstract val manifestPlaceholders: MapProperty<String, String>

MapProperty of the variant's manifest placeholders.

Placeholders are organized with a key and a value. The value is a String that will be used as is in the merged manifest.

Return
The MapProperty with keys as String.

namespace

abstract val namespace: Provider<String>

The namespace of the generated R and BuildConfig classes. Also, the namespace used to resolve any relative class names that are declared in the AndroidManifest.xml.

proguardFiles

abstract val proguardFiles: ListProperty<RegularFile>

List of proguard configuration files for this variant. The list is initialized from the corresponding DSL element, and cannot be queried at configuration time. At configuration time, you can only add new elements to the list.

signingConfig

abstract val signingConfig: SigningConfig?

Variant's signingConfig, initialized by the corresponding DSL element.

Return
Variant's config or null if the variant is not configured for signing.