Groovy Documentation

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

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

class LibraryVariantWrapper
extends VariantWrapper

Class that wraps specially a LibraryVariant.


Field Summary
 
Fields inherited from class VariantWrapper
mConfiguration, mConfigurations, mLogger, mProject, mTestVariant, mTestsSourcePath, mVariant
 
Constructor Summary
LibraryVariantWrapper(LibraryVariant libraryVariant, Project project, ConfigurationContainer configurations, java.lang.String bootclasspath, Logger logger)

Instantiates a new LibraryVariantWrapper.

 
Method Summary
protected java.lang.String createRealMergedResourcesDirName()

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

Task getAndroidCompileTask()

Retrieves the task that merges the resources for the test apk so that the tests tasks can depend on it and trigger the resources merging and also for 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

LibraryVariantWrapper

LibraryVariantWrapper(LibraryVariant libraryVariant, Project project, ConfigurationContainer configurations, java.lang.String bootclasspath, Logger logger)
Instantiates a new LibraryVariantWrapper.
Parameters:
libraryVariant - The LibraryVariant 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 Library plugin during the test App apk compilation.
Returns:
The path string.


getAndroidCompileTask

@Override
Task getAndroidCompileTask()
Retrieves the task that merges the resources for the test apk so that the tests tasks can depend on it and trigger the resources merging and also for the correct order of task execution takes place.
Returns:
The task.


 

Groovy Documentation