I see that the Android Plugin for Gradle has a minifyEnabled
property as well as a useProguard
property, as follows:
android {
buildTypes {
debug {
minifyEnabled true
useProguard false
}
release {
minifyEnabled true
useProguard true
}
}
}
What's the difference between these two properties? Or, rather, what's the meaning of each?
Quoting from tools.android.com:
Just enable
minifyEnabled
will have code both optimized and obfuscated. This is becauseuseProguard true
is default so no need to set it explicitly.See also: Obfuscation in Android Studio