Groovy Documentation

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

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

class PackageExtractor

Class that handles the extraction of the Application ID.


Constructor Summary
PackageExtractor(ProductFlavorData data, Logger logger)

Instantiates a new PackageExtractor.

 
Method Summary
java.lang.String getPackageName()

Retrieves the package name from the Android plugin's default configuration.

 
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

PackageExtractor

PackageExtractor(ProductFlavorData data, Logger logger)
Instantiates a new PackageExtractor.
Parameters:
data - The data for the Default configuration of the project.
logger - The logger.


 
Method Detail

getPackageName

java.lang.String getPackageName()
Retrieves the package name from the Android plugin's default configuration. If not configured, it will try to extract it from the manifest.
Returns:
The Application ID which usually is the package name.


 

Groovy Documentation