I trying to keep all classes and methods names, but obfuscated all the fields in my project.
For example, this code:
public class MyClass { private int myInt; public String myString; void myMethod() { // Method code; } } Should turn into this code
public class MyClass { private int a1; public String a2; void myMethod() { // Obfuscated method code; } } Note that the class name and method name doesn't get obfuscated, but the field name does.
I'm guessing it is some sort of combination with keepnames and keepclassmembernames, but I'm not sure what is the correct one.