'android' extension for 'com.android.test' project.
Fields inherited from class | Fields |
---|---|
class BaseExtension |
logger, project |
Constructor and description |
---|
TestExtension
(org.gradle.api.internal.project.ProjectInternal project, org.gradle.internal.reflect.Instantiator instantiator, AndroidBuilder androidBuilder, SdkHandler sdkHandler, org.gradle.api.NamedDomainObjectContainer<BuildType> buildTypes, org.gradle.api.NamedDomainObjectContainer<GroupableProductFlavor> productFlavors, org.gradle.api.NamedDomainObjectContainer<SigningConfig> signingConfigs, ExtraModelInfo extraModelInfo, boolean isLibrary) |
Type | Name and description |
---|---|
void |
addVariant(BaseVariant variant) |
org.gradle.api.internal.DefaultDomainObjectSet<ApplicationVariant> |
getApplicationVariants() Returns the list of Application variants. |
String |
getTargetProjectPath() Returns the Gradle path of the project that this test project tests. |
String |
getTargetVariant() Returns the variant of the tested project. |
void |
setTargetProjectPath(String targetProjectPath) |
void |
setTargetVariant(String targetVariant) |
void |
targetProjectPath(String targetProjectPath) |
void |
targetVariant(String targetVariant) |
Returns the list of Application variants. Since the collections is built after evaluation,
it should be used with Gradle's all
iterator to process future items.
Returns the Gradle path of the project that this test project tests.
Returns the variant of the tested project. Default is 'debug'