Base data about a variant.
Modifiers | Name | Description |
---|---|---|
enum |
BaseVariantData.SplitHandlingPolicy |
Constructor and description |
---|
BaseVariantData
(AndroidConfig androidConfig, TaskManager taskManager, GradleVariantConfiguration variantConfiguration) |
Type | Name and description |
---|---|
void |
addJavaSourceFoldersToModel(File... generatedSourceFolders) |
void |
addJavaSourceFoldersToModel(Collection<File> generatedSourceFolders) |
void |
calculateFilters(Splits splits) Calculates the filters for this variant. |
T |
createOutput(com.android.build.OutputFile$OutputType outputType, Collection<com.android.build.FilterData> filters) |
List<String> |
discoverListOfResourceConfigs() |
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> |
getExtraGeneratedResFolders() |
List<File> |
getExtraGeneratedSourceFolders() |
Set<String> |
getFilters(com.android.build.OutputFile$FilterType filterType) Returns the filters values (as manually specified or automatically discovered) for a particular com.android.build.OutputFile.FilterType |
List<File> |
getJavaSourceFoldersForCoverage() Returns the Java folders needed for code coverage report. |
Object[] |
getJavaSources() Computes the Java sources to use for compilation. |
File |
getMappingFile() |
FileSupplier |
getMappingFileProvider() |
String |
getName() |
List<T> |
getOutputs() |
VariantScope |
getScope() |
BaseVariantData.SplitHandlingPolicy |
getSplitHandlingPolicy() |
VariantType |
getType() |
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 |
registerResGeneratingTask(org.gradle.api.Task task, File... generatedResFolders) |
void |
registerResGeneratingTask(org.gradle.api.Task task, Collection<File> generatedResFolders) |
void |
setVariantDependency(VariantDependencies variantDependency) |
String |
toString() |
Base data about a variant.
Can be JavaCompile or JackTask depending on user's settings.
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.
Calculates the filters for this variant. The filters can either be manually specified by the user within the build.gradle or can be automatically discovered using the variant specific folders. This method must be called before getFilters(OutputFile.FilterType).
splits
- the splits configuration from the build.gradle.Returns the filters values (as manually specified or automatically discovered) for a particular com.android.build.OutputFile.FilterType
filterType
- the type of filter in questionReturns 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.