Groovy Documentation

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

java.lang.Object
  com.jcandksolutions.gradle.androidunittest.DependencyProvider

class DependencyProvider

Class that provides the dependencies for the plugin.


Constructor Summary
DependencyProvider(Project project)

Instantiates a DependencyProvider.

 
Method Summary
boolean isAppPlugin()

Returns whether the Android Plugin applied is the App plugin or de Library plugin.

BaseExtension provideAndroidExtension()

Provides the Android plugin's Extension.

BasePlugin provideAndroidPlugin()

Provides the Android plugin that was applied.

AppVariantWrapper provideAppVariantWrapper(ApplicationVariant applicationVariant)

Provides an AppVariantWrapper that simplifies the extraction of info form it.

java.lang.String provideBootClasspath()

Provides the BootClasspath for the tests to run.

ConfigurationManager provideConfigurationManager()

Provides the Configuration Manager that creates the test configurations.

ConfigurationContainer provideConfigurations()

Provides the Configurations Container of the Project.

ProductFlavorData provideDefaultConfigData()

Provides the Default Configuration Data of the Android Plugin.

AndroidUnitTestPluginExtension provideExtension()

Provides the Extension used by this plugin.

MainHandler provideHandler()

Provides the Handler for the plugin.

LibraryVariantWrapper provideLibraryVariantWrapper(LibraryVariant libraryVariant)

Provides a LibraryVariantWrapper that simplifies the extraction of info form it.

Logger provideLogger()

Provides the Logger for the plugin.

ModelManager provideModelManager()

Provides the Model Manager that registers the model of the test source sets.

PackageExtractor providePackageExtractor()

Provides the Package Extractor used to know the application id.

Project provideProject()

Provides the Project that is applying the plugin.

java.io.File provideReportDestinationDir()

Provides the Report Destination Directory.

TaskManager provideTaskManager()

Provides the Task Manager that creates the tasks required to run the tests.

DefaultDomainObjectSet provideVariants()

Provides the Variants of the Android plugin.

 
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()
 

Constructor Detail

DependencyProvider

DependencyProvider(Project project)
Instantiates a DependencyProvider.
Parameters:
project - The Project being configured.


 
Method Detail

isAppPlugin

boolean isAppPlugin()
Returns whether the Android Plugin applied is the App plugin or de Library plugin.
throws:
IllegalStateException if neither of the plugins is applied.
Returns:
true if the app plugin was applied. false otherwise.


provideAndroidExtension

BaseExtension provideAndroidExtension()
Provides the Android plugin's Extension. Used to know the flavors and build types created by the Android plugin.
Returns:
The Android plugin's Extension.


provideAndroidPlugin

BasePlugin provideAndroidPlugin()
Provides the Android plugin that was applied.
Returns:
The Android plugin.


provideAppVariantWrapper

AppVariantWrapper provideAppVariantWrapper(ApplicationVariant applicationVariant)
Provides an AppVariantWrapper that simplifies the extraction of info form it.
Returns:
The Wrapper.
Parameters:
applicationVariant - The Application Variant.


provideBootClasspath

java.lang.String provideBootClasspath()
Provides the BootClasspath for the tests to run. It is lazily extracted from the Android plugin.
Returns:
The BootClasspath.


provideConfigurationManager

ConfigurationManager provideConfigurationManager()
Provides the Configuration Manager that creates the test configurations. Always creates a new one, so it should only be called once.
Returns:
The ConfigurationManager.


provideConfigurations

ConfigurationContainer provideConfigurations()
Provides the Configurations Container of the Project. Used by the ConfigurationManager.
Returns:
The Configurations Container.


provideDefaultConfigData

ProductFlavorData provideDefaultConfigData()
Provides the Default Configuration Data of the Android Plugin. Used to know the application id.
Returns:
The Default Configuration.


provideExtension

AndroidUnitTestPluginExtension provideExtension()
Provides the Extension used by this plugin. If it doesn't exist, it is created first.
Returns:
The Extension.


provideHandler

MainHandler provideHandler()
Provides the Handler for the plugin. This Handler controls the business logic of the plugin.
Returns:
The Handler.


provideLibraryVariantWrapper

LibraryVariantWrapper provideLibraryVariantWrapper(LibraryVariant libraryVariant)
Provides a LibraryVariantWrapper that simplifies the extraction of info form it.
Returns:
The Wrapper.
Parameters:
libraryVariant - The Library Variant.


provideLogger

Logger provideLogger()
Provides the Logger for the plugin.
Returns:
The Logger.


provideModelManager

ModelManager provideModelManager()
Provides the Model Manager that registers the model of the test source sets.
Returns:
The ModelManager.


providePackageExtractor

PackageExtractor providePackageExtractor()
Provides the Package Extractor used to know the application id. Always creates a new one, so it should only be called once.
Returns:
The PackageExtractor.


provideProject

Project provideProject()
Provides the Project that is applying the plugin.
Returns:
The Project.


provideReportDestinationDir

java.io.File provideReportDestinationDir()
Provides the Report Destination Directory. Normally it should be /build/test-report/.
Returns:
The Report Destination Directory.


provideTaskManager

TaskManager provideTaskManager()
Provides the Task Manager that creates the tasks required to run the tests. Always creates a new one, so it should only be called once.
Returns:
The TaskManager.


provideVariants

DefaultDomainObjectSet provideVariants()
Provides the Variants of the Android plugin.
Returns:
The Variants.


 

Groovy Documentation