Groovy Documentation
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

AndroidUnitTestPlugin - Class in com.jcandksolutions.gradle.androidunittest
Plugin implementation class.
AndroidUnitTestPluginExtension - Class in com.jcandksolutions.gradle.androidunittest
Class that handles the extension of the plugin for configuration.
AppHandler - Class in com.jcandksolutions.gradle.androidunittest
Class that handles the extra configuration when the app plugin is applied.
AppHandler(DependencyProvider) - Constructor in AppHandler
Instantiates a new AppHandler.
apply(Project) - Method in AndroidUnitTestPlugin
Applies the plugin to the project.
AppVariantWrapper - Class in com.jcandksolutions.gradle.androidunittest
Class that wraps specially an AppVariant.
AppVariantWrapper(ApplicationVariant, Project, ConfigurationContainer, String, Logger) - Constructor in AppVariantWrapper
Instantiates a new AppVariantWrapper.

B


C

COMPILE - Field in ConfigurationManager
ConfigurationManager - Class in com.jcandksolutions.gradle.androidunittest
Class that manages the creation of the Configurations for the different source sets.
ConfigurationManager(BaseExtension, ConfigurationContainer, Project, AndroidUnitTestPluginExtension, ModelManager, Logger) - Constructor in ConfigurationManager
Instantiates a ConfigurationManager.
configureSourceSet() - Method in VariantWrapper
Configures the SourceSet with the Sourcepath, Classpath and Runpath.
createDependencyProvider(Project) - Method in AndroidUnitTestPlugin
Creates a Dependency Provider.
createNewConfigurations() - Method in ConfigurationManager
Creates new test configurations for each flavor so the user can set dependencies for the different source sets.
createRealMergedResourcesDirName() - Method in AppVariantWrapper
Creates the path string for where the resources are being merged by the App plugin during the App apk compilation.
createRealMergedResourcesDirName() - Method in LibraryVariantWrapper
Creates the path string for where the resources are being merged by the Library plugin during the test App apk compilation.
createRealMergedResourcesDirName() - Method in VariantWrapper
Creates the path string where the resources are merged by the Android plugin.
createTestTask(VariantWrapper) - Method in TaskManager
Creates and configures the test task that runs the tests.
createVariantWrapper(BaseVariant) - Method in AppHandler
Creates a new VariantWrapper instance special for AppVariants.
createVariantWrapper(BaseVariant) - Method in LibraryHandler
Creates a new VariantWrapper instance special for LibraryVariants.
createVariantWrapper(BaseVariant) - Method in MainHandler
Creates a new VariantWrapper instance.

D

DependencyProvider - Class in com.jcandksolutions.gradle.androidunittest
Class that provides the dependencies for the plugin.
DependencyProvider(Project) - Constructor in DependencyProvider
Instantiates a DependencyProvider.

E


F


G

getAidlDirectories() - Method in TestSourceProvider
getAndroidCompileTask() - Method in AppVariantWrapper
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.
getAndroidCompileTask() - Method in LibraryVariantWrapper
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.
getAndroidCompileTask() - Method in VariantWrapper
Returns the compile task of the app's sources.
getAssetsDirectories() - Method in TestSourceProvider
getBaseVariant() - Method in VariantWrapper
Retrieves the Base variant of the Android plugin that this is wrapping.
getBuildTypeName() - Method in VariantWrapper
Retrieves the build type of the variant.
getClasspath() - Method in VariantWrapper
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.
getCompileDestinationDir() - Method in VariantWrapper
Retrieves the path for the destination of the test's compilation.
getCompleteName() - Method in VariantWrapper
Retrieves the complete name of the variant which is the concatenation of the flavors plus the buildType.
getConfiguration() - Method in VariantWrapper
Retrieves a configuration for the test variant based on the list of configurations that this variant uses.
getDirName() - Method in VariantWrapper
Retrieves the dir name of the variant.
getFlavorList() - Method in VariantWrapper
Retrieves a list of the flavors of the variant.
getFlavorName() - Method in VariantWrapper
Retrieves the concatenated name of all the flavors.
getJavaDirectories() - Method in TestSourceProvider
getJniDirectories() - Method in TestSourceProvider
getJniLibsDirectories() - Method in TestSourceProvider
getManifestFile() - Method in TestSourceProvider
getMergedAssetsDir() - Method in VariantWrapper
Retrieves the output dir of the mergeAssets task.
getMergedManifest() - Method in VariantWrapper
Retrieves the path of the merged manifest of the variant.
getMergedResourcesDir() - Method in VariantWrapper
Retrieves the path where the merged resources are copied.
getName() - Method in TestSourceProvider
getPackageName() - Method in PackageExtractor
Retrieves the package name from the Android plugin's default configuration.
getProcessResourcesTaskName() - Method in VariantWrapper
Retrieves the name of the task that process the test resources.
getRealMergedResourcesDir() - Method in VariantWrapper
Retrieves the path string where the resources are merged by the Android plugin.
getRenderscriptDirectories() - Method in TestSourceProvider
getResDirectories() - Method in TestSourceProvider
getResourcesCopyTaskName() - Method in VariantWrapper
Retrieves the ResourcesCopyTask name.
getResourcesDirectories() - Method in TestSourceProvider
getRunPath() - Method in VariantWrapper
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.
getSourceSet() - Method in VariantWrapper
Returns the test SourceSet for this variant.
getTestClasspath() - Method in VariantWrapper
Retrieves the classpath for the Test task.
getTestReleaseBuildType() - Method in AndroidUnitTestPluginExtension
Retrieves the TestReleaseBuildType property which enables testing if release build types.
getTestsSourcePath() - Method in VariantWrapper
Retrieves the sourcepath for the tests of this variant.
getVariantReportDestination() - Method in VariantWrapper
Retrieves the report destination dir where this variant's test results should go to.

H


I

isAppPlugin() - Method in DependencyProvider
Returns whether the Android Plugin applied is the App plugin or de Library plugin.
isDownloadDependenciesJavadoc() - Method in AndroidUnitTestPluginExtension
Retrieves the DownloadDependenciesJavadoc property which enables the download of the Javadoc of the app dependencies.
isDownloadDependenciesSources() - Method in AndroidUnitTestPluginExtension
Retrieves the DownloadDependenciesSources property which enables the download of the sources of the app dependencies.
isDownloadTestDependenciesJavadoc() - Method in AndroidUnitTestPluginExtension
Retrieves the DownloadTestDependenciesJavadoc property which enables the download of the Javadoc of the tests dependencies.
isDownloadTestDependenciesSources() - Method in AndroidUnitTestPluginExtension
Retrieves the DownloadTestDependenciesSources property which enables the download of the sources of the tests dependencies.
isVariantInvalid(BaseVariant) - Method in AppHandler
Checks if the variant is invalid.
isVariantInvalid(BaseVariant) - Method in LibraryHandler
Checks if the variant is invalid.
isVariantInvalid(BaseVariant) - Method in MainHandler
Checks if the variant is invalid and should not process it.

J


K


L

LibraryHandler - Class in com.jcandksolutions.gradle.androidunittest
Class that handles the extra configuration when the library plugin is applied.
LibraryHandler(DependencyProvider) - Constructor in LibraryHandler
Instantiates a new LibraryHandler.
LibraryVariantWrapper - Class in com.jcandksolutions.gradle.androidunittest
Class that wraps specially a LibraryVariant.
LibraryVariantWrapper(LibraryVariant, Project, ConfigurationContainer, String, Logger) - Constructor in LibraryVariantWrapper
Instantiates a new LibraryVariantWrapper.

M

MainHandler - Class in com.jcandksolutions.gradle.androidunittest
Base class that coordinates the configuration of the project.
MainHandler(DependencyProvider) - Constructor in MainHandler
Instantiates a MainHandler.
mConfiguration - Field in VariantWrapper
mConfigurations - Field in VariantWrapper
mExtension - Field in MainHandler
mLogger - Field in MainHandler
mLogger - Field in VariantWrapper
mModelManager - Field in MainHandler
ModelManager - Class in com.jcandksolutions.gradle.androidunittest
Class that handles the Modeling of the tests so the IDE can import it correctly.
ModelManager(BasePlugin) - Constructor in ModelManager
Instantiates a ModelManager.
mProject - Field in VariantWrapper
mProvider - Field in MainHandler
mTaskManager - Field in MainHandler
mTestsSourcePath - Field in VariantWrapper
mTestVariant - Field in VariantWrapper
mVariant - Field in VariantWrapper

N


O


P

PackageExtractor - Class in com.jcandksolutions.gradle.androidunittest
Class that handles the extraction of the Application ID.
PackageExtractor(ProductFlavorData, Logger) - Constructor in PackageExtractor
Instantiates a new PackageExtractor.
provideAndroidExtension() - Method in DependencyProvider
Provides the Android plugin's Extension.
provideAndroidPlugin() - Method in DependencyProvider
Provides the Android plugin that was applied.
provideAppVariantWrapper(ApplicationVariant) - Method in DependencyProvider
Provides an AppVariantWrapper that simplifies the extraction of info form it.
provideBootClasspath() - Method in DependencyProvider
Provides the BootClasspath for the tests to run.
provideConfigurationManager() - Method in DependencyProvider
Provides the Configuration Manager that creates the test configurations.
provideConfigurations() - Method in DependencyProvider
Provides the Configurations Container of the Project.
provideDefaultConfigData() - Method in DependencyProvider
Provides the Default Configuration Data of the Android Plugin.
provideExtension() - Method in DependencyProvider
Provides the Extension used by this plugin.
provideHandler() - Method in DependencyProvider
Provides the Handler for the plugin.
provideLibraryVariantWrapper(LibraryVariant) - Method in DependencyProvider
Provides a LibraryVariantWrapper that simplifies the extraction of info form it.
provideLogger() - Method in DependencyProvider
Provides the Logger for the plugin.
provideModelManager() - Method in DependencyProvider
Provides the Model Manager that registers the model of the test source sets.
providePackageExtractor() - Method in DependencyProvider
Provides the Package Extractor used to know the application id.
provideProject() - Method in DependencyProvider
Provides the Project that is applying the plugin.
provideReportDestinationDir() - Method in DependencyProvider
Provides the Report Destination Directory.
provideTaskManager() - Method in DependencyProvider
Provides the Task Manager that creates the tasks required to run the tests.
provideVariants() - Method in DependencyProvider
Provides the Variants of the Android plugin.

Q


R

register() - Method in ModelManager
Registers with the Android plugin that there is a test ArtifactType of pure Java type.
registerArtifact(VariantWrapper) - Method in ModelManager
Registers under the ArtifactType registered in register() the artifact generated for the variant.
registerJavadocSourcesArtifact(Configuration) - Method in ModelManager
Registers the Javadoc and Sources configuration to the model.
run() - Method in MainHandler
Executes the handler.

S

setDownloadDependenciesJavadoc(boolean) - Method in AndroidUnitTestPluginExtension
Sets the DownloadDependenciesJavadoc property which enables the download of the Javadoc of the app dependencies.
setDownloadDependenciesSources(boolean) - Method in AndroidUnitTestPluginExtension
Sets the DownloadDependenciesSources property which enables the download of the sources of the app dependencies.
setDownloadTestDependenciesJavadoc(boolean) - Method in AndroidUnitTestPluginExtension
Sets the DownloadTestDependenciesJavadoc property which enables the download of the Javadoc of the tests dependencies.
setDownloadTestDependenciesSources(boolean) - Method in AndroidUnitTestPluginExtension
Sets the DownloadTestDependenciesSources property which enables the download of the sources of the tests dependencies.
setTestReleaseBuildType(boolean) - Method in AndroidUnitTestPluginExtension
Sets the TestReleaseBuildType property which enables testing if release build types.
SOURCES_JAVADOC - Field in ConfigurationManager

T

TaskManager - Class in com.jcandksolutions.gradle.androidunittest
Class that handles the creation of the Tasks needed for the tests to run.
TaskManager(Project, String, PackageExtractor, File, Logger) - Constructor in TaskManager
Instantiates a TaskManager.
TEST_COMPILE - Field in ConfigurationManager
TestSourceProvider - Class in com.jcandksolutions.gradle.androidunittest
Class that implements the SourceProvider needed for the Android plugin to register the model.
TestSourceProvider(VariantWrapper) - Constructor in TestSourceProvider
Instantiates a new TestSourceProvider.

U


V

VariantWrapper - Class in com.jcandksolutions.gradle.androidunittest
Base class that wraps the info of the variant for easier retrieval of the actual data needed.
VariantWrapper(BaseVariant, Project, ConfigurationContainer, String, Logger, TestVariant) - Constructor in VariantWrapper
Instantiates a new VariantWrapper.

W


X


Y


Z


_


Groovy Documentation