Skip to content

Tag: proguard

Android ProGuard settings for Facebook

I finally found out why my app crashes built for release. ProGuard was indeed stripping code from my application but i prevented this by manually adding the classes with the keep command in the proguard-android.txt (found in the sdk). For Facebook I used: But I think I’m still missing something. The app is crash free now but I can’t log

keep only function names when obfuscation for proguard

I use proguard for obfuscation. How can I keep only function names while obfuscation. class names must be obfuscated but function names. if I use, and it keeps function of somefunction, but it doesnt change classes names. But, I want to change classes names but somefunction Answer You can use -keepclassmembers or -keepclassmembernames. Cfr. ProGuard manual > Usage > Overview