ProGuard is a free shrinker, optimizer, obfuscator, and preverifier for Java bytecode. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. ProGuard can be run as a task in Gradle. Before you can use the proguard task, you have to make sure Gradle can find it in its class path at build time. One way is to add the following line to your build.gradle file which will download ProGuard from Maven Central. ProGuard works like an advanced optimizing compiler, removing unused classes, fields, methods, and attributes, shortening identifiers, merging classes, inlining methods, propagating constants, removing unused parameters, etc.

Features

  • The optimizations typically reduce the size of an application by anything between 20% and 90%
  • The optimizations may also improve the performance of the application, by up to 20%
  • ProGuard can also remove logging code, from applications and their libraries, without needing to change the source code
  • It detects and removes unused classes, fields, methods, and attributes
  • It optimizes bytecode and removes unused instructions
  • It renames the remaining classes, fields, and methods using short meaningless names

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

GNU General Public License version 3.0 (GPLv3)

Follow ProGuard

ProGuard Web Site

Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ProGuard!

Additional Project Details

Programming Language

Java

Related Categories

Java Frameworks

Registered

2023-08-10