How to properly configure proguard?

-1

How to make the right configuration of proguard , bringing better security, smaller size, and deleting classes when you want or when creating problems?

I basically enable the default settings by changing minifyEnabled to true

buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

What already does the basics. Now what to do to optimize? Using proguard?

    
asked by anonymous 12.07.2016 / 01:59

1 answer

-1

add to decrease apk size and discard unused classes and files

shrinkResources verdadeira
         minifyEnabled verdadeira

edit the file

adding     #please KEEP ALL THE NAMES     -keepnames class ** {*; }

So as not to shuffle the class

    
12.07.2016 / 02:57