|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Variant
A build Variant. This is the combination of a Build Type and 0+ Product Flavors (exactly one for each existing Flavor Dimension). Build Types and Flavors both contribute source folders, so this Variant is the direct representation of a set of source folders (and configuration parameters) used to build something. However the output of a Variant is not a single item. First there can be several artifacts. - Main Artifact: this is the main Android output(s). The app or the library being generated. - Extra Android Artifacts: these are ancillary artifacts, most likely test app(s). - Extra Java artifacts: these are pure-Java ancillary artifacts (junit support for instance).
Method Summary | |
---|---|
java.lang.String |
getBuildType()
Returns the build type. |
java.lang.String |
getDisplayName()
Returns a display name for the variant. |
java.util.Collection<AndroidArtifact> |
getExtraAndroidArtifacts()
|
java.util.Collection<JavaArtifact> |
getExtraJavaArtifacts()
|
AndroidArtifact |
getMainArtifact()
Returns the main artifact for this variant. |
ProductFlavor |
getMergedFlavor()
The result of the merge of all the flavors and of the main default config. |
java.lang.String |
getName()
Returns the name of the variant. |
java.util.List<java.lang.String> |
getProductFlavors()
Returns the flavors for this variants. |
Method Detail |
---|
@NonNull java.lang.String getName()
@NonNull java.lang.String getDisplayName()
@NonNull AndroidArtifact getMainArtifact()
@NonNull java.util.Collection<AndroidArtifact> getExtraAndroidArtifacts()
@NonNull java.util.Collection<JavaArtifact> getExtraJavaArtifacts()
@NonNull java.lang.String getBuildType()
@NonNull java.util.List<java.lang.String> getProductFlavors()
@NonNull ProductFlavor getMergedFlavor()
AndroidProject.getDefaultConfig()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |