Gradle - Build Types
- Alejandro Prieto Valdes
- 26 mar 2019
- 1 Min. de lectura
buildTypes { //Build Configuration block release { //Release Configuration Block minifyEnabled false // if true shrinks code proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
//proguard file
}
}

Build types will allow you to configure - the settings that affect the building of the module, you can configure debug and release.
minifyEnabled true . //if true shrinks code
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
// defines the file where the proguard configuration is
the main purpose of the minifyEnabled true, is to enable the code shrinking in the appropriate build type
How the device is shrinked, is defined inside the proguard file.


Comentarios