After much development and testing, we are pleased to announce the official release of ProGuard 6.1.0.
This version offers bug fixes and the following important features:
-assumevalues option (compatible with R8). You can now tell ProGuard that specified fields or methods have known return values. ProGuard then optimizes the related code. For example, you can let it remove debug code by specifying that a debug flag is known to be false, or you can let it remove unneeded parts of the Android support libraries by specifying the expected range of Android API versions.As always, ProGuard (6.1.0) is backward compatible with earlier versions. Just update the version and you're good to go. You can find ProGuard on Sourceforge, Github, Maven Central, and JCenter. All ProGuard documentation is available here.
Note: Remember to disable the R8 compiler and enable ProGuard in the project’s gradle.properties, when building Android projects with Gradle:
android.enableR8=false
android.enableR8.libraries=false
Then specify the ProGuard version in your build.gradle configuration:
buildscript {
...
configurations.all {
resolutionStrategy {
force 'net.sf.proguard:proguard-base:6.1.0'
}
}
}