API Documentation: | GroupableProductFlavor |
---|
A version of ProductFlavor
that can receive a dimension name.
Property | Description |
applicationId | The application ID. |
flavorDimension | Name of the dimension this product flavor belongs to. |
multiDexEnabled | Whether Multi-Dex is enabled for this variant. |
signingConfig | Signing config used by this product flavor. |
testApplicationId | Test application ID. |
testFunctionalTest | See instrumentation. |
testHandleProfiling | See instrumentation. |
testInstrumentationRunner | Test instrumentation runner class name. |
versionCode | Version code. |
versionName | Version name. |
Method | Description |
minSdkVersion(minSdkVersion) | Sets minimum SDK version. |
minSdkVersion(minSdkVersion) | Sets minimum SDK version. |
proguardFile(proguardFile) | Adds a new ProGuard configuration file. |
proguardFiles(proguardFileArray) | Adds new ProGuard configuration files. |
setProguardFiles(proguardFileIterable) | Sets the ProGuard configuration files. |
targetSdkVersion(targetSdkVersion) | Sets the target SDK version to the given value. |
targetSdkVersion(targetSdkVersion) | Sets the target SDK version to the given value. |
String
flavorDimension
Name of the dimension this product flavor belongs to.
Boolean
multiDexEnabled
Whether Multi-Dex is enabled for this variant.
SigningConfig
signingConfig
(read-only)
Signing config used by this product flavor.
Boolean
testFunctionalTest
See instrumentation.
Boolean
testHandleProfiling
See instrumentation.
String
testInstrumentationRunner
Test instrumentation runner class name.
This is a fully qualified class name of the runner, e.g.
android.test.InstrumentationTestRunner
See instrumentation.
void
minSdkVersion
(String
minSdkVersion)
Sets minimum SDK version.
void
proguardFile
(Object
proguardFile)
Adds a new ProGuard configuration file.
proguardFile getDefaultProguardFile('proguard-android.txt')
There are 2 default rules files
- proguard-android.txt
- proguard-android-optimize.txt
They are located in the SDK. Using getDefaultProguardFile(String filename)
will return the
full path to the files. They are identical except for enabling optimizations.
void
proguardFiles
(Object
...
proguardFileArray)
Object
...Adds new ProGuard configuration files.
void
setProguardFiles
(Iterable
<?>
proguardFileIterable)
Iterable
<?>Sets the ProGuard configuration files.
Sets the target SDK version to the given value.
void
targetSdkVersion
(String
targetSdkVersion)
Sets the target SDK version to the given value.