Complete the code to define a debug build variant in the Gradle build script.
android {
buildTypes {
debug {
isMinifyEnabled = [1]
}
}
}In debug builds, minification is usually disabled, so isMinifyEnabled should be false.
Complete the code to define a release build variant with code shrinking enabled.
android {
buildTypes {
release {
isMinifyEnabled = [1]
}
}
}Release builds usually enable minification to reduce app size, so isMinifyEnabled should be true.
Fix the error in the release build variant to enable ProGuard rules.
android {
buildTypes {
release {
proguardFiles(getDefaultProguardFile([1]), "proguard-rules.pro")
}
}
}The correct default ProGuard file for release builds is proguard-android-optimize.txt.
Fill both blanks to define a build variant with signing config and minification.
android {
buildTypes {
release {
signingConfig = [1]
isMinifyEnabled = [2]
}
}
}Release builds use the release signing config and enable minification.
Fill all three blanks to define a debug build variant with applicationIdSuffix and debuggable flag.
android {
buildTypes {
debug {
applicationIdSuffix = [1]
isDebuggable = [2]
versionNameSuffix = [3]
}
}
}Debug builds often add a suffix to the app ID and version name and set debuggable to true.