I’d like to replace all the variable, function and class names in single .java files with generic names (such as VAR_0, VAR_1 etc…). It seems like proguard could support my usecase if I was to replace the SimpleNameFactory class. I may be missing something obvious, but I did not find how to run proGuard to obfuscate all the variable names in single java files.
Is there any easy way to obfuscate single java files ? These files are syntactically correct but they can use imports from other files and cannot always be compiled in isolation. I’d like to obfuscate them in isolation without having to compile an entire project.