I am searching for protecting my app by using proguard but I didnt find proper answer how to protect my app. If any body know how to protect our app using obfuscation in proguard help me.
If you are using Android Studio
Put minifyEnabled as 'true';
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
Eg
-keep public class * extends android.support.v7.app.ActionBarActivity
-keep public class * extends your.package.name.SomeClass
-keep class android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.