How to make the correct proguard configuration?

Asked

Viewed 163 times

-1

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

Basically enable default settings in changing minifyEnabled for true

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

What already makes the basics. Now what to do to optimize? The use of proguard ?

1 answer

-1

adicine to decrease the size of the apk and discard unused classes and files

shrinkResources verdadeira
         minifyEnabled verdadeira

edit the file

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

so that shuffling is not applied in the class

Browser other questions tagged

You are not signed in. Login or sign up in order to post.