Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is meant the minifyEnabled false in the release block in the gradle.build file

Tags:

android

Perhaps my question seems a simple question and duplicate. But it is for me an important question. I have android studio 1.3 and when I create a new default project and then when I open the build.gradle(Module:app) , I see the following code in part of build.gradle(Module:app)file. Also you should know that when I compile my project, android studio makes two apk files that both are as the debug mode. in the following code is used from the release block and the minifyEnabled is false. Now I want to know that despite these conditions, when I compile my project, does the android studio use from proguard really? Thank you in advanced.

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
like image 329
and Avatar asked Aug 23 '15 04:08

and


1 Answers

Flag minifyEnabled stays for ProGuard, and it's turned off by default. So, in default setup both debug and release builds aren't using ProGuard, and parameter proguardFiles is effectively ignored

like image 76
OleGG Avatar answered Oct 21 '22 19:10

OleGG