public interface AndroidArtifact extends BaseArtifact
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.| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getAbiFilters()
Returns the ABI filters associated with the artifact, or null if there are no filters.
|
java.util.Collection<java.io.File> |
getAdditionalRuntimeApks()
Returns a list of additional APKs that need to installed on the device for this artifact to
work correctly.
|
java.lang.String |
getApkFromBundleTaskName()
Returns the name of the task used to generate APKs via the bundle file (.aab), or null if the
task is not supported.
|
java.lang.String |
getApplicationId()
Returns the application id of this artifact.
|
java.util.Map<java.lang.String,ClassField> |
getBuildConfigFields()
Map of Build Config Fields where the key is the field name.
|
java.lang.String |
getBundleTaskName()
Returns the name of the task used to generate the bundle file (.aab), or null if the task is
not supported.
|
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.
|
InstantRun |
getInstantRun()
Returns the InstantRun feature related model.
|
java.lang.String |
getInstrumentedTestTaskName()
Returns the name of the task used to run instrumented tests or null if the variant is not a
test variant.
|
java.util.Collection<NativeLibrary> |
getNativeLibraries()
Returns the native libraries associated with the artifact.
|
java.util.Collection<AndroidArtifactOutput> |
getOutputs()
Deprecated.
Use post-build model instead. See
ProjectBuildOutput |
java.util.Map<java.lang.String,ClassField> |
getResValues()
Map of generated res values where the key is the res name.
|
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.
|
TestOptions |
getTestOptions()
Returns the test options only if the variant type is testing.
|
boolean |
isSigned()
Returns whether the output file is signed.
|
getAdditionalClassesFolders, getAssembleTaskName, getClassesFolder, getCompileDependencies, getCompileTaskName, getDependencies, getDependencyGraphs, getIdeSetupTaskNames, getJavaResourcesFolder, getMultiFlavorSourceProvider, getName, getVariantSourceProvider@Deprecated @NonNull java.util.Collection<AndroidArtifactOutput> getOutputs()
ProjectBuildOutputboolean isSigned()
@Nullable java.lang.String getSigningConfigName()
SigningConfig used for the signing. If none are setup or
if this is the main artifact of a library project, then this is null.@NonNull java.lang.String getApplicationId()
@NonNull java.lang.String getSourceGenTaskName()
@NonNull java.util.Collection<java.io.File> getGeneratedSourceFolders()
getGeneratedSourceFolders in interface BaseArtifact@NonNull java.util.Collection<java.io.File> getGeneratedResourceFolders()
@Nullable java.util.Set<java.lang.String> getAbiFilters()
@Nullable java.util.Collection<NativeLibrary> getNativeLibraries()
@NonNull java.util.Map<java.lang.String,ClassField> getBuildConfigFields()
@NonNull java.util.Map<java.lang.String,ClassField> getResValues()
@NonNull InstantRun getInstantRun()
@NonNull java.util.Collection<java.io.File> getAdditionalRuntimeApks()
For test artifacts, these will be "buddy APKs" from the androidTestUtil
configuration.
@Nullable TestOptions getTestOptions()
@Nullable java.lang.String getInstrumentedTestTaskName()
@Nullable java.lang.String getBundleTaskName()
@Nullable java.lang.String getApkFromBundleTaskName()