Go to the official website and decompress the package. The lib package contains three jar package files, one of which is a graphical interface program.
Running Method: in the same directory, create a batch file (bat file) with the following content: java-jar proguardgui. jar, save the file, double-click to run the file, and the graphic interface will appear.
In the graphic interface, you can complete obfuscation tasks with simple settings.
1. on the "Input/Output" tab, set the jar package to be obfuscated, set the name of the obfuscation result package, and specify the jar package required for compiling the package. Note, the jar package does not agree to include the interface jar package and the implementation jar package of the interface. Proguard will have a duplicate definition error.
2. on the "Shriking" tab, select a Keep type. For a WEB project, select Library and Application.
3. Select the default option in the "Obfuscation" and "Optimization" tabs. If you have special requirements, you can take a closer look at the document. If the program function is not normal for mixed results, you can disable the Optimize option. We are most concerned about obfuscation, and optimization doesn't matter.
4. The "Information" tab contains an Ignore warnings about possibly erw.us input. If the message cannot be sent due to a warning, you can check this option. You can select other options by default.
5. On the "Process" tab, click "Process! "Button for obfuscation. You can also click "Save configuration..." to Save the configuration file.
The obfuscation results are good. You can use the decompilation tools such as jd to check the results.
Recommended reading:
How to confuse Android project code (ProGuard) to prevent Decompilation
Notes for using ProGuard
ProGuard details: click here
ProGuard: click here