top of page

Gradle - Build Types

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 } }


ree
Sample build types snippet

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.


 
 
 

Entradas recientes

Ver todo
Gradle proguard

Characteristics: - Settings to keep or discard elements on the building process - Proguard can reduce: * unused classes, fields, methods...

 
 
 
Gradle basics

Welcome to the gradle course. This course will cover: - The fundamentals of gradle - How to create Gradle tasks and patterns(reusable...

 
 
 

Comentarios


© 2018 by Alejandro Prieto

  • Facebook Social Icon
  • Twitter Social Icon
  • Google+ Social Icon
bottom of page