i have app migrated eclipse android-studio. want make sure i'm using proguard release version. see in build.gradle file this:
buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } }
however, don't have proguard-android.txt or proguard-rules.txt in project's folder. code being obfuscated?
no, code not being obfuscated. not running proguard. minifyenabled
controls whether run proguard, , have set false
, need change true
turn on proguard. getdefaultproguardfile('proguard-android.txt')
gets default proguard rules sdk. see proguardfiles
docs.
to check code being obfuscated, can in build/outputs/mapping/release
directory. files should have modification times during build. looking @ mapping.txt
give obfuscation details (which names mapped what).
Comments
Post a Comment