| API Documentation: | BuildType |
|---|
DSL object to configure build types.
| Property | Description |
applicationIdSuffix | Application id suffix applied to this build type. |
debuggable | Whether this build type should generate a debuggable apk. |
jniDebuggable | Whether this build type is configured to generate an APK with debuggable native code. |
minifyEnabled | Whether Minify is enabled for this build type. |
renderscriptDebuggable | Whether the build type is configured to generate an apk with debuggable RenderScript code. |
renderscriptOptimLevel | Optimization level to use by the renderscript compiler. |
signingConfig | The signing configuration. |
versionNameSuffix | Version name suffix. |
zipAlignEnabled | Whether zipalign is enabled for this build type. |
| Method | Description |
proguardFile(proguardFile) | Adds a new ProGuard configuration file. |
proguardFiles(proguardFileArray) | Adds new ProGuard configuration files. |
setProguardFiles(proguardFileIterable) | Sets the ProGuard configuration files. |
String applicationIdSuffix
Application id suffix applied to this build type.
Whether this build type is configured to generate an APK with debuggable native code.
Whether the build type is configured to generate an apk with debuggable RenderScript code.
SigningConfig signingConfig (read-only)
The signing configuration.
String versionNameSuffix
Version name suffix.
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.