Platform
Why Guardsquare?
Mobile application security across the entire dev lifecycle, in a single intuitive platform
Why Guardsquare
Discover the platform
Platform tools across the dev lifecycle
Android Protection
DexGuard protects Android mobile apps & SDKs with multilayered code hardening & RASP.
iOS Protection
iXGuard protects iOS mobile apps & SDKs with multilayered code hardening & RASP.
Security Testing
AppSweep scans mobile app code & dependencies to resolve issues quickly.
Threat Monitoring
ThreatCast gives real-time visibility into the global threat landscape to respond before a breach.
API Security
App attestation ensures the app calling your APIs is authentic, untampered, and trustworthy.
The highest level protection with ease
Our guided workflow automates deep, code-level mobile app protection.
Discover our guided workflow
Solutions
Case study
Mobile Developer in Central Asia Finds Protection for Sensitive KYC Systems
Read the customer story
Case Study
Driver and Vehicle Compliance Tech Company Protects Android App with DexGuard
Read the customer story
By Use Case
Fraud protection
Stop revenue loss, impersonation, and tampering.
Regulatory compliance
Meet strict mandates for high-trust mobile apps.
IP protection
Shield code, trade secrets, and sensitive assets.
Pentest readiness
Pass security reviews and audits with confidence.
Malware protection
Defend users and data against active malware.
API security
Protect the bridge between mobile apps and APIs.
By Industry
Fintech
Retail & E-Commerce
Banking
Healthcare
Entertainment
Resources
Discover
Featured Blog
Taking a Look at Recent Android Remote Key Provisioning Attacks
Read the blog
Blog
Case Studies
New
Learn
Mobile application security
SDK protection
Code obfuscation
Runtime application self-protection (RASP)
Mobile application shielding
Mobile application security testing (MAST)
Malware protection
Code hardening
Technical
Security Research Center
ProGuard
ProGuard manual
ProGuardCORE
ProGuard Playground
Resource Library
FAQs
Events & Webinars
News
Company
Our Story
About us
Careers
Our customers
Business partners
Technical partners
News
Get the latest Guardsquare news
Visit our newsroom
We're coming to a security event near you
Let's connect
Pricing
Request pricing
Login
Platform
Why Guardsquare?
Mobile application security across the entire dev lifecycle, in a single intuitive platform
Why Guardsquare
Discover the platform
Platform tools across the dev lifecycle
Android Protection
DexGuard protects Android mobile apps & SDKs with multilayered code hardening & RASP.
iOS Protection
iXGuard protects iOS mobile apps & SDKs with multilayered code hardening & RASP.
Security Testing
AppSweep scans mobile app code & dependencies to resolve issues quickly.
Threat Monitoring
ThreatCast gives real-time visibility into the global threat landscape to respond before a breach.
API Security
App attestation ensures the app calling your APIs is authentic, untampered, and trustworthy.
Solutions
Case study
Mobile Developer in Central Asia Finds Protection for Sensitive KYC Systems
Read the customer story
Case Study
Driver and Vehicle Compliance Tech Company Protects Android App with DexGuard
Read the customer story
By Use Case
Fraud protection
Stop revenue loss, impersonation, and tampering.
Regulatory compliance
Meet strict mandates for high-trust mobile apps.
IP protection
Shield code, trade secrets, and sensitive assets.
Pentest readiness
Pass security reviews and audits with confidence.
Malware protection
Defend users and data against active malware.
API security
Protect the bridge between mobile apps and APIs.
By Industry
Fintech
Retail & E-Commerce
Banking
Healthcare
Entertainment
Resources
Discover
Featured Blog
Taking a Look at Recent Android Remote Key Provisioning Attacks
Read the blog
Blog
Case Studies
New
Learn
Mobile application security
SDK protection
Code obfuscation
Runtime application self-protection (RASP)
Mobile application shielding
Mobile application security testing (MAST)
Malware protection
Code hardening
Technical
Security Research Center
ProGuard
ProGuard manual
ProGuardCORE
ProGuard Playground
Company
Our Story
About us
Careers
Our customers
Business partners
Technical partners
News
Get the latest Guardsquare news
Visit our newsroom
Pricing
Request pricing
Login
ProGuard manual
Home
How it works
Entry points
Reflection
Quickstart
Standalone
Integrated
Android Gradle project
Java or Kotlin Gradle project
Ant project
Maven project
Building
Publish to Maven local
Building a release distribution
Setup
Standalone
Android Gradle
ProGuard Gradle Plugin
Settings
Java/Kotlin Gradle
Settings
Class Paths
Files
Keep Modifiers
Class Specifications
Gradle-style Class Member Specifications
Alternative: imported Ant task
Ant Task
1. An external ProGuard configuration file
2. Embedded ProGuard configuration options
3. XML configuration tags
Task Attributes and Nested Elements
Class Path Attributes and Nested Elements
Keep Modifier Attributes
Class Specification Attributes and Nested Elements
Class Member Specification Attributes
Configuration
Usage
Input/Output Options
Keep Options
Shrinking Options
Optimization Options
Obfuscation Options
Preverification Options
General Options
Class Paths
File Names
File Filters
Filters
Overview of Keep Options
Keep Option Modifiers
Class Specifications
Attributes
Optional attributes
Essential attributes
Optimizations
Gson optimization
Configuration
Known limitations
Examples
Processing different types of applications
A typical application
A typical applet
A typical midlet
A typical Java Card applet
A typical xlet
A simple Android activity
A complete Android application
A typical library
All possible applications in the input jars
All possible applets in the input jars
All possible midlets in the input jars
All possible Java Card applets in the input jars
All possible xlets in the input jars
All possible servlets in the input jars
Scala applications with the Scala runtime
Processing common code constructs
Processing native methods
Processing callback methods
Processing enumeration classes
Processing serializable classes
Processing bean classes
Processing annotations
Processing database drivers
Processing ComponentUI classes
Processing common libraries
Processing RMI code
Optimizing Gson code
Processing dependency injection
Processing Dagger code
Processing Butterknife code
Further processing possibilities
Processing resource files
Processing manifest files
Producing useful obfuscated stack traces
Obfuscating package names
Removing logging code
Optimizing for Android SDK versions
Restructuring the output archives
Filtering the input and the output
Processing multiple applications at once
Incremental obfuscation
Other uses
Preverifying class files for Java Micro Edition
Upgrading old class files to Java 6
Finding dead code
Printing out the internal structure of class files
Using annotations to configure ProGuard
Languages
Java
Kotlin
Tools
ReTrace
Playground
Troubleshooting
Overview
Limitations
Reference Card
Version History
FAQ
Feedback
License
Overview
GPL
GPL Exception
Child pages
License
GPL
GPL Exception