Base data about a variant.
Modifiers | Name | Description |
---|---|---|
enum |
BaseVariantData.SplitHandlingPolicy |
Constructor and description |
---|
BaseVariantData
(BasePlugin basePlugin, GradleVariantConfiguration variantConfiguration) |
Type | Name and description |
---|---|
void |
addJavaSourceFoldersToModel(File... generatedSourceFolders) |
void |
addJavaSourceFoldersToModel(Collection<File> generatedSourceFolders) |
T |
createOutput(com.android.build.OutputFile$OutputType outputType, Collection<com.android.build.FilterData> filters) |
protected T |
doCreateOutput(com.android.build.OutputFile$OutputType outputType, Collection<com.android.build.FilterData> filters) |
String |
getApplicationId() |
protected String |
getCapitalizedBuildTypeName() |
protected String |
getCapitalizedFlavorName() |
String |
getDescription() |
List<File> |
getExtraGeneratedSourceFolders() |
List<File> |
getJavaSourceFoldersForCoverage() Returns the Java folders needed for code coverage report. |
Object[] |
getJavaSources() Computes the Java sources to use for compilation. |
List<T> |
getOutputs() |
BaseVariantData.SplitHandlingPolicy |
getSplitHandlingPolicy() |
GradleVariantConfiguration |
getVariantConfiguration() |
VariantDependencies |
getVariantDependency() |
List<String> |
getWearConfigNames() Returns a list of configuration name for wear connection, from highest to lowest priority. |
void |
registerJavaGeneratingTask(org.gradle.api.Task task, File... generatedSourceFolders) |
void |
registerJavaGeneratingTask(org.gradle.api.Task task, Collection<File> generatedSourceFolders) |
void |
setVariantDependency(VariantDependencies variantDependency) |
Base data about a variant.
If true, variant outputs will be considered signed. Only set if you manually set the outputs to point to signed files built by other tasks.
Returns the Java folders needed for code coverage report. This includes all the source folders except for the ones containing R and buildConfig.
Computes the Java sources to use for compilation. This Object[] contains org.gradle.api.file.FileCollection and File instances
Returns a list of configuration name for wear connection, from highest to lowest priority.