public class DefaultProductFlavor extends BaseConfigImpl
The configuration of a product flavor. This is also used to describe the default configuration of all builds, even those that do not contain any flavors.
Constructor and description |
---|
DefaultProductFlavor
(String name) Creates a ProductFlavor with a given name. |
Type | Name and description |
---|---|
void |
addResourceConfiguration(String configuration) |
void |
addResourceConfigurations(String... configurations) |
void |
addResourceConfigurations(Collection<String> configurations) |
boolean |
equals(Object o) |
String |
getApplicationId() Returns the application ID. |
Integer |
getMaxSdkVersion() |
com.android.builder.model.ApiVersion |
getMinSdkVersion() Min SDK version. |
String |
getName() |
Boolean |
getRenderscriptNdkModeEnabled() |
Boolean |
getRenderscriptSupportModeEnabled() |
Integer |
getRenderscriptTargetApi() |
Collection<String> |
getResourceConfigurations() |
com.android.builder.model.SigningConfig |
getSigningConfig() Signing config used by this product flavor. |
com.android.builder.model.ApiVersion |
getTargetSdkVersion() Target SDK version. |
String |
getTestApplicationId() Test application ID. |
Boolean |
getTestFunctionalTest() See instrumentation. |
Boolean |
getTestHandleProfiling() See instrumentation. |
String |
getTestInstrumentationRunner() Test instrumentation runner class name. |
Integer |
getVersionCode() Version code. |
String |
getVersionName() Version name. |
int |
hashCode() |
com.android.builder.model.ProductFlavor |
setApplicationId(String applicationId) Sets the application id. |
com.android.builder.model.ProductFlavor |
setMaxSdkVersion(Integer maxSdkVersion) |
com.android.builder.model.ProductFlavor |
setMinSdkVersion(com.android.builder.model.ApiVersion minSdkVersion) Sets the minSdkVersion to the given value. |
com.android.builder.model.ProductFlavor |
setRenderscriptNdkModeEnabled(Boolean renderscriptNdkMode) Sets whether the renderscript code should be compiled to generate C/C++ bindings. |
com.android.builder.model.ProductFlavor |
setRenderscriptSupportModeEnabled(Boolean renderscriptSupportMode) Sets whether the renderscript code should be compiled in support mode to make it compatible with older versions of Android. |
void |
setRenderscriptTargetApi(Integer renderscriptTargetApi) Sets the renderscript target API to the given value. |
com.android.builder.model.ProductFlavor |
setSigningConfig(com.android.builder.model.SigningConfig signingConfig) Sets the signing configuration. e.g.: signingConfig signingConfigs.myConfig |
com.android.builder.model.ProductFlavor |
setTargetSdkVersion(com.android.builder.model.ApiVersion targetSdkVersion) Sets the targetSdkVersion to the given value. |
com.android.builder.model.ProductFlavor |
setTestApplicationId(String applicationId) Sets the test application ID. |
com.android.builder.model.ProductFlavor |
setTestFunctionalTest(boolean functionalTest) |
com.android.builder.model.ProductFlavor |
setTestHandleProfiling(boolean handleProfiling) |
com.android.builder.model.ProductFlavor |
setTestInstrumentationRunner(String testInstrumentationRunner) Sets the test instrumentation runner to the given value. |
com.android.builder.model.ProductFlavor |
setVersionCode(Integer versionCode) Sets the version code. |
com.android.builder.model.ProductFlavor |
setVersionName(String versionName) Sets the version name. |
String |
toString() |
Methods inherited from class | Name |
---|---|
class BaseConfigImpl |
_initWith, addBuildConfigField, addBuildConfigFields, addManifestPlaceHolders, addResValue, addResValues, equals, getBuildConfigFields, getConsumerProguardFiles, getManifestPlaceholders, getMultiDexEnabled, getMultiDexKeepFile, getMultiDexKeepProguard, getProguardFiles, getResValues, hashCode, setManifestPlaceholders, setMultiDexEnabled, setMultiDexKeepFile, setMultiDexKeepProguard, toString |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Creates a ProductFlavor with a given name. Names can be important when dealing with flavor groups.
name
- the name of the flavor.Returns the application ID.
Min SDK version.
Signing config used by this product flavor.
Target SDK version.
Test application ID.
See instrumentation.
See instrumentation.
Test instrumentation runner class name.
This is a fully qualified class name of the runner, e.g.
android.test.InstrumentationTestRunner
See instrumentation.
Sets the application id.
Sets the minSdkVersion to the given value.
Sets whether the renderscript code should be compiled to generate C/C++ bindings.
Sets whether the renderscript code should be compiled in support mode to make it compatible with older versions of Android.
Sets the renderscript target API to the given value.
Sets the signing configuration. e.g.: signingConfig signingConfigs.myConfig
Sets the targetSdkVersion to the given value.
Sets the test application ID.
Sets the test instrumentation runner to the given value.
Sets the version code.
versionCode
- the version codeSets the version name.
versionName
- the version name