This means that minifyEnabled is false in the release block in the gradle.build file

Perhaps my question seems like a simple question and duplication. But for me this is an important issue. I have Android android 1.3, and when I create a new project by default, and then when I open build.gradle(Module:app) , I see the following code in the part of the build.gradle(Module:app) file build.gradle(Module:app) . Also, you should know that when compiling my project, android studio makes two apk files, which are both debug modes. the following code uses the release block, and minifyEnabled false . Now I want to know that, despite these conditions, when I compile my project, does Android studio really work with proguard ? Thank you for your promotion.

 buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } 
+6
source share
1 answer

The minifyEnabled flag remains for ProGuard and is disabled by default. Thus, in the default setting, both assemblies do not use ProGuard for debugging and release, and the proguardFiles parameter proguardFiles effectively ignored

+9
source

All Articles