Prograd rules and Security for android code & Minified

March 04, 2016 , 0 Comments

this we will add on this Gradle file

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

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


After add this proguard file must be at there :

In this file add some different rules what ever you want to add on that.

Sample Pro file: (This is not minified gson model only accept all activity all class will be minified.)

# For using GSON @Expose annotation
-keepattributes Signature
-keepattributes *Annotation*
# Gson specific classes
-keep class sun.misc.Unsafe { *; }
-keep class** { *; }


Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard. Google



Best Watch Store

Popular Posts

Contact Form


Email *

Message *