com.android.builder.model
Interface AndroidArtifact

All Superinterfaces:
BaseArtifact

public interface AndroidArtifact
extends BaseArtifact

An Android Artifact. This is the entry point for the output of a Variant. This can be more than one output in the case of multi-apk where more than one APKs are generated from the same set of sources.


Method Summary
 java.util.Set<java.lang.String> getAbiFilters()
          Returns the ABI filters associated with the artifact, or null if there are no filters.
 java.lang.String getApplicationId()
          Returns the application id of this artifact.
 java.util.Collection<java.io.File> getGeneratedResourceFolders()
          Returns all the resource folders that are generated.
 java.util.Collection<java.io.File> getGeneratedSourceFolders()
          Returns all the source folders that are generated.
 java.util.Collection<AndroidArtifactOutput> getOutputs()
           
 java.lang.String getSigningConfigName()
          Returns the name of the SigningConfig used for the signing.
 java.lang.String getSourceGenTaskName()
          Returns the name of the task used to generate the source code.
 boolean isSigned()
          Returns whether the output file is signed.
 
Methods inherited from interface com.android.builder.model.BaseArtifact
getAssembleTaskName, getClassesFolder, getCompileTaskName, getDependencies, getJavaCompileTaskName, getMultiFlavorSourceProvider, getName, getVariantSourceProvider
 

Method Detail

getOutputs

@NonNull
java.util.Collection<AndroidArtifactOutput> getOutputs()

isSigned

boolean isSigned()
Returns whether the output file is signed. This is always false for the main artifact of a library project.

Returns:
true if the app is signed.

getSigningConfigName

@Nullable
java.lang.String getSigningConfigName()
Returns the name of the SigningConfig used for the signing. If none are setup or if this is the main artifact of a library project, then this is null.

Returns:
the name of the setup signing config.

getApplicationId

@NonNull
java.lang.String getApplicationId()
Returns the application id of this artifact.

Returns:
the application id.

getSourceGenTaskName

@NonNull
java.lang.String getSourceGenTaskName()
Returns the name of the task used to generate the source code. The actual value might depend on the build system front end.

Returns:
the name of the code generating task.

getGeneratedSourceFolders

@NonNull
java.util.Collection<java.io.File> getGeneratedSourceFolders()
Returns all the source folders that are generated. This is typically folders for the R, the aidl classes, and the renderscript classes.

Returns:
a list of folders.

getGeneratedResourceFolders

@NonNull
java.util.Collection<java.io.File> getGeneratedResourceFolders()
Returns all the resource folders that are generated. This is typically the renderscript output and the merged resources.

Returns:
a list of folder.

getAbiFilters

@Nullable
java.util.Set<java.lang.String> getAbiFilters()
Returns the ABI filters associated with the artifact, or null if there are no filters. If the list contains values, then the artifact only contains these ABIs and excludes others.