Groovy Documentation

com.jcandksolutions.gradle.androidunittest
[Groovy] Class AppVariantWrapper

java.lang.Object
  com.jcandksolutions.gradle.androidunittest.VariantWrapper
      com.jcandksolutions.gradle.androidunittest.AppVariantWrapper

class AppVariantWrapper
extends VariantWrapper

Class that wraps specially an AppVariant.


Field Summary
 
Fields inherited from class VariantWrapper
mConfiguration, mConfigurations, mLogger, mProject, mTestVariant, mTestsSourcePath, mVariant
 
Constructor Summary
AppVariantWrapper(ApplicationVariant applicationVariant, Project project, ConfigurationContainer configurations, java.lang.String bootClasspath, Logger logger)

Instantiates a new AppVariantWrapper.

 
Method Summary
protected java.lang.String createRealMergedResourcesDirName()

Creates the path string for where the resources are being merged by the App plugin during the App apk compilation.

Task getAndroidCompileTask()

Retrieves the task that compiles the Java sources of the android app so that the tests tasks can depend on it and the correct order of task execution takes place.

 
Methods inherited from class VariantWrapper
configureSourceSet, createRealMergedResourcesDirName, getAndroidCompileTask, getBaseVariant, getBuildTypeName, getClasspath, getCompileDestinationDir, getCompleteName, getConfiguration, getDirName, getFlavorList, getFlavorName, getMergedAssetsDir, getMergedManifest, getMergedResourcesDir, getProcessResourcesTaskName, getRealMergedResourcesDir, getResourcesCopyTaskName, getRunPath, getSourceSet, getTestClasspath, getTestsSourcePath, getVariantReportDestination
 

Constructor Detail

AppVariantWrapper

AppVariantWrapper(ApplicationVariant applicationVariant, Project project, ConfigurationContainer configurations, java.lang.String bootClasspath, Logger logger)
Instantiates a new AppVariantWrapper.
Parameters:
applicationVariant - The AppVariant to wrap.
project - The project.
configurations - The Project Configurations.
bootClasspath - The bootClasspath.
logger - The Logger.


 
Method Detail

createRealMergedResourcesDirName

@Override
protected java.lang.String createRealMergedResourcesDirName()
Creates the path string for where the resources are being merged by the App plugin during the App apk compilation.
Returns:
The path string.


getAndroidCompileTask

@Override
Task getAndroidCompileTask()
Retrieves the task that compiles the Java sources of the android app so that the tests tasks can depend on it and the correct order of task execution takes place.
Returns:
The task.


 

Groovy Documentation