java - How to hide public classes in library Jar using ProGuard (or any other way)? -


i want build library, don't want classes exposed developer, want them exposed library code , tests easily.

is there way hide specific public classes using proguard or in other way (like @hide notation used in android sdk)?

the whole point of obfuscatin hides method people on outside, references inside library updated. typically, you'll have

void mymethodwithaveryexplicitname() {     // stuff }  void othermethod() {     // call first method     mymethodwithaveryexplicitname(); } 

it obfuscated :

void a() {     // stuff }  void b() {     // call first method     a(); } 

then proguard has lot of options obfuscating or keeping public classes, classes extend specific classes, members ...


Comments