I need to obfuscate a Java application which has dependencies to many external jars. The application consist of many modules and each module contains API and implementation jars. Basically I need to create a gradle task to obfuscate all of this jars which can be used later in the build process with Jenkins. There are many documentation on Proguard, but
Tag: obfuscation
Calling a class “if”
I’m trying to decompile / recompile an obfuscated Java program. From the decompiled source code, it looks like the obfuscator has managed to call a class if: Trying to recompile this class of course now results in an error: Is there a way to tell the java compiler to accept if as a class name? Otherwise, what are my options?
How to configure proguard to keep all classes in packages that contain a specific word in package name?
I am trying to keep all classes in packages that contain the word model in the package name. Eg – com.xyz.model, com.xyz.abc.model, com.xyz.model.abc All the classes in these packages should not be obfuscated. I tried using wildcard for package names but it isn’t working How to achieve the desired result? Answer Please try below. Remove dot(.) before the model.
Proguard keep class names?
Hello I am writing an Android app and I have set up Proguard to obfuscate my application. I however use a classloader to dynamically load different extensions to my application. The problem is that these don’t load correctly if their names are changed. How do I keep Proguard from obfuscating specific class names? Answer Use the -keepnames option in your