public interface ProductFlavor extends BaseConfig, DimensionAware
It does not include the sources or the dependencies. Those are available on the container or in the artifact info.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplicationId()
Returns the name of the product flavor.
|
java.lang.Integer |
getMaxSdkVersion()
Returns the maxSdkVersion.
|
ApiVersion |
getMinSdkVersion()
Returns the minSdkVersion.
|
java.lang.String |
getName()
Returns the name of the flavor.
|
java.lang.Boolean |
getRenderscriptNdkModeEnabled()
Returns whether the renderscript code should be compiled to generate C/C++ bindings.
|
java.lang.Boolean |
getRenderscriptSupportModeBlasEnabled()
Returns whether the renderscript BLAS support lib should be used to
make it compatible with older versions of Android.
|
java.lang.Boolean |
getRenderscriptSupportModeEnabled()
Returns whether the renderscript code should be compiled in support mode to
make it compatible with older versions of Android.
|
java.lang.Integer |
getRenderscriptTargetApi()
Returns the renderscript target api.
|
java.util.Collection<java.lang.String> |
getResourceConfigurations()
Returns the resource configuration for this variant.
|
SigningConfig |
getSigningConfig()
Returns the associated signing config or null if none are set on the product flavor.
|
ApiVersion |
getTargetSdkVersion()
Returns the targetSdkVersion.
|
java.lang.String |
getTestApplicationId()
Returns the test application id.
|
java.lang.Boolean |
getTestFunctionalTest()
Returns the functionalTest value.
|
java.lang.Boolean |
getTestHandleProfiling()
Returns the handlingProfile value.
|
java.lang.String |
getTestInstrumentationRunner()
Returns the test instrumentation runner.
|
java.util.Map<java.lang.String,java.lang.String> |
getTestInstrumentationRunnerArguments()
Returns the arguments for the test instrumentation runner.
|
VectorDrawablesOptions |
getVectorDrawables() |
java.lang.Integer |
getVersionCode()
Returns the version code associated with this flavor or null if none have been set.
|
java.lang.String |
getVersionName()
Returns the version name.
|
java.lang.Boolean |
getWearAppUnbundled()
Returns whether to enable unbundling mode for embedded wear app.
|
getApplicationIdSuffix, getBuildConfigFields, getConsumerProguardFiles, getJarJarRuleFiles, getManifestPlaceholders, getMultiDexEnabled, getMultiDexKeepFile, getMultiDexKeepProguard, getProguardFiles, getResValues, getTestProguardFiles, getVersionNameSuffixgetDimension@NonNull java.lang.String getName()
getName in interface BaseConfig@Nullable java.lang.String getApplicationId()
AndroidArtifact.getApplicationId().@Nullable java.lang.Integer getVersionCode()
@Nullable java.lang.String getVersionName()
Variant.getMergedFlavor() with
BaseConfig.getVersionNameSuffix() and BaseConfig.getVersionNameSuffix().@Nullable ApiVersion getMinSdkVersion()
@Nullable ApiVersion getTargetSdkVersion()
@Nullable java.lang.Integer getMaxSdkVersion()
@Nullable java.lang.Integer getRenderscriptTargetApi()
@Nullable java.lang.Boolean getRenderscriptSupportModeEnabled()
@Nullable java.lang.Boolean getRenderscriptSupportModeBlasEnabled()
@Nullable java.lang.Boolean getRenderscriptNdkModeEnabled()
@Nullable java.lang.String getTestApplicationId()
Variant.getExtraAndroidArtifacts() with
AndroidProject.ARTIFACT_ANDROID_TEST and then
AndroidArtifact.getApplicationId()@Nullable java.lang.String getTestInstrumentationRunner()
@NonNull java.util.Map<java.lang.String,java.lang.String> getTestInstrumentationRunnerArguments()
@Nullable java.lang.Boolean getTestHandleProfiling()
@Nullable java.lang.Boolean getTestFunctionalTest()
@NonNull java.util.Collection<java.lang.String> getResourceConfigurations()
This is the list of -c parameters for aapt.
@Nullable SigningConfig getSigningConfig()
@NonNull VectorDrawablesOptions getVectorDrawables()
@Nullable java.lang.Boolean getWearAppUnbundled()
If true, this enables the app to transition from an embedded wear app to one distributed by the play store directly.