|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jcandksolutions.gradle.androidunittest.VariantWrapper
abstract class VariantWrapper
Base class that wraps the info of the variant for easier retrieval of the actual data needed.
| Field Summary | |
|---|---|
protected Configuration |
mConfiguration
|
protected ConfigurationContainer |
mConfigurations
|
protected Logger |
mLogger
|
protected Project |
mProject
|
protected TestVariant |
mTestVariant
|
protected java.util.ArrayList |
mTestsSourcePath
|
protected BaseVariant |
mVariant
|
| Constructor Summary | |
VariantWrapper(BaseVariant variant, Project project, ConfigurationContainer configurations, java.lang.String bootClasspath, Logger logger, TestVariant testVariant)
Instantiates a new VariantWrapper. |
|
| Method Summary | |
|---|---|
void
|
configureSourceSet()
Configures the SourceSet with the Sourcepath, Classpath and Runpath. |
protected java.lang.String
|
createRealMergedResourcesDirName()
Creates the path string where the resources are merged by the Android plugin. |
Task
|
getAndroidCompileTask()
Returns the compile task of the app's sources. |
BaseVariant
|
getBaseVariant()
Retrieves the Base variant of the Android plugin that this is wrapping. |
protected java.lang.String
|
getBuildTypeName()
Retrieves the build type of the variant. |
FileCollection
|
getClasspath()
Retrieves the Classpath used to compile the tests which includes the testCompile configuration, the app's class files, the app's classpath and a configuration for each flavor. |
java.io.File
|
getCompileDestinationDir()
Retrieves the path for the destination of the test's compilation. |
groovy.lang.GString
|
getCompleteName()
Retrieves the complete name of the variant which is the concatenation of the flavors plus the buildType. |
Configuration
|
getConfiguration()
Retrieves a configuration for the test variant based on the list of configurations that this variant uses. |
java.lang.String
|
getDirName()
Retrieves the dir name of the variant. |
protected java.util.List
|
getFlavorList()
Retrieves a list of the flavors of the variant. |
protected java.lang.String
|
getFlavorName()
Retrieves the concatenated name of all the flavors. |
java.io.File
|
getMergedAssetsDir()
Retrieves the output dir of the mergeAssets task. |
java.io.File
|
getMergedManifest()
Retrieves the path of the merged manifest of the variant. |
java.io.File
|
getMergedResourcesDir()
Retrieves the path where the merged resources are copied. |
java.lang.String
|
getProcessResourcesTaskName()
Retrieves the name of the task that process the test resources. |
java.lang.String
|
getRealMergedResourcesDir()
Retrieves the path string where the resources are merged by the Android plugin. |
java.lang.String
|
getResourcesCopyTaskName()
Retrieves the ResourcesCopyTask name. |
protected FileCollection
|
getRunPath()
Retrieves the Runpath which includes the classpath, the processsed resources and the destination dir of the compilation, that is, where the tests' class files are. |
protected SourceSet
|
getSourceSet()
Returns the test SourceSet for this variant. |
FileCollection
|
getTestClasspath()
Retrieves the classpath for the Test task. |
protected java.util.ArrayList
|
getTestsSourcePath()
Retrieves the sourcepath for the tests of this variant. |
java.io.File
|
getVariantReportDestination()
Retrieves the report destination dir where this variant's test results should go to. |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Field Detail |
|---|
protected Configuration mConfiguration
protected final ConfigurationContainer mConfigurations
protected final Logger mLogger
protected final Project mProject
protected final TestVariant mTestVariant
protected java.util.ArrayList mTestsSourcePath
protected final BaseVariant mVariant
| Constructor Detail |
|---|
VariantWrapper(BaseVariant variant, Project project, ConfigurationContainer configurations, java.lang.String bootClasspath, Logger logger, TestVariant testVariant)
variant - The Variant to wrap.project - The project.configurations - The Project Configurations.bootClasspath - The bootClasspath.logger - The Logger.testVariant - The Test Variant of the variant. Can be null for library projects.
| Method Detail |
|---|
void configureSourceSet()
protected java.lang.String createRealMergedResourcesDirName()
Task getAndroidCompileTask()
BaseVariant getBaseVariant()
protected java.lang.String getBuildTypeName()
FileCollection getClasspath()
java.io.File getCompileDestinationDir()
groovy.lang.GString getCompleteName()
Configuration getConfiguration()
java.lang.String getDirName()
protected java.util.List getFlavorList()
protected java.lang.String getFlavorName()
java.io.File getMergedAssetsDir()
java.io.File getMergedManifest()
java.io.File getMergedResourcesDir()
java.lang.String getProcessResourcesTaskName()
java.lang.String getRealMergedResourcesDir()
java.lang.String getResourcesCopyTaskName()
protected FileCollection getRunPath()
protected SourceSet getSourceSet()
FileCollection getTestClasspath()
protected java.util.ArrayList getTestsSourcePath()
java.io.File getVariantReportDestination()
Groovy Documentation