How to make Proguard obfuscate using Android Studio

ProGuard does not do a very complete job of confusing my Android project. When I decompile my apk to decompileandroid.com, I see that it only changes the name of local temporary variables and nothing else. It does not change class names, variable names, method names, or anything else.

After reading the manual, all the optional commands seem to tell him NOT to do something, so I can only think that he should confuse everything by default.

my build.gradle has the following ...

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

None of these two files exist. A project such as it was converted from Eclipse to Android Studio.

What am I missing. I need to create these two files and put some proguard parameters in them - if so, then what. I need maximum obfuscation. Thanks, Dean

+4
source share
1 answer

Set minifyEnabled true to enable code compression, and then shrinkResources true to enable resource reduction.

Link for quote

+1
source

All Articles