when using proguard, it seems to obfuscate entire name spaces that I am merely including. Can I tell it to only obfuscate my code and not all the libs im using? Some of the libs rely on reflection of sorts.
A:
I've never used ProGuard, but you should be able to exclude classes, package and more from obfuscation using the "keep" options.
Stephen C
2010-08-06 01:14:03
I want something like the opposite of keep.Obfuscate only the specified name spaces would be great...
albert
2010-08-09 18:30:15
I'm guessing, but try not telling ProGuard where the ZIP files for the libs are; i.e. removing them from the classpath.
Stephen C
2010-08-09 22:46:32
A:
Proguard makes a distinction between input JARs and library JARs. You should specify code that should be onfuscated/shrunk using injar
and code that should not be modified using libraryjar
.
Dan Dyer
2010-09-11 15:07:46