Groovy Documentation

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

java.lang.Object
  com.jcandksolutions.gradle.androidunittest.MainHandler
      com.jcandksolutions.gradle.androidunittest.AppHandler

class AppHandler
extends MainHandler

Class that handles the extra configuration when the app plugin is applied.


Field Summary
 
Fields inherited from class MainHandler
mExtension, mLogger, mModelManager, mProvider, mTaskManager
 
Constructor Summary
AppHandler(DependencyProvider provider)

Instantiates a new AppHandler.

 
Method Summary
protected VariantWrapper createVariantWrapper(BaseVariant variant)

Creates a new VariantWrapper instance special for AppVariants.

protected boolean isVariantInvalid(BaseVariant baseVariant)

Checks if the variant is invalid.

 
Methods inherited from class MainHandler
createVariantWrapper, isVariantInvalid, run
 

Constructor Detail

AppHandler

AppHandler(DependencyProvider provider)
Instantiates a new AppHandler.
Parameters:
provider - The Dependency Provider for the plugin.


 
Method Detail

createVariantWrapper

@Override
protected VariantWrapper createVariantWrapper(BaseVariant variant)
Creates a new VariantWrapper instance special for AppVariants.
Returns:
The wrapper.
Parameters:
variant - The AppVariant to wrap.


isVariantInvalid

@Override
protected boolean isVariantInvalid(BaseVariant baseVariant)
Checks if the variant is invalid. For AppVariants, they are always valid.
Returns:
Always false.
Parameters:
baseVariant - The Variant to check.


 

Groovy Documentation