HasTestFixturesBuilder

@Incubating
public interface HasTestFixturesBuilder

Known direct subclasses
ApplicationVariantBuilder

Application specific variant object that contains properties that will determine the variant's build flow.

DynamicFeatureVariantBuilder
LibraryVariantBuilder

VariantBuilder type for library projects


Interface that mark the potential existence of test fixtures associated with a variant.

Summary

Public methods

abstract boolean

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

abstract void
setEnableTestFixtures(boolean enableTestFixtures)

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

Public methods

getEnableTestFixtures

abstract boolean getEnableTestFixtures()

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

Default value will match com.android.build.api.dsl.TestFixtures.enable value that is set through the extension via com.android.build.api.dsl.TestedExtension.testFixtures.

setEnableTestFixtures

abstract void setEnableTestFixtures(boolean enableTestFixtures)

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

Default value will match com.android.build.api.dsl.TestFixtures.enable value that is set through the extension via com.android.build.api.dsl.TestedExtension.testFixtures.