Proguard with Cordova Android 4? -
i had proguard running release builds when cordova built ant, gradle used project's release builds aren't being obfuscated (my "cordova build --release android" output shows step :cordovalib:mergereleaseproguardfiles, no other proguard/minification/obfuscation entries).
with ant, project.properties file referred proguard-project.txt file using proguard.config parameter.
how configure work cordova uses gradle?
have @ updated proguard documentation, have change build.gradle
file.
change buildtype release section
android { ... buildtypes { release { minifyenabled true proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } }
Comments
Post a Comment