| Modifier and Type | Field and Description |
|---|---|
List |
adaptClassStrings
A list of
Strings specifying a filter for classes whose
string constants are to be adapted, based on corresponding obfuscated
class names. |
List |
adaptResourceFileContents
A list of
Strings specifying a filter for files whose
contents are to be adapted, based on obfuscated class names. |
List |
adaptResourceFileNames
A list of
Strings specifying a filter for files whose
names are to be adapted, based on corresponding obfuscated class names. |
boolean |
allowAccessModification
Specifies whether the access of class members can be modified.
|
File |
applyMapping
An optional input file for reading an obfuscation mapping.
|
List |
assumeNoSideEffects
A list of
ClassSpecification instances, whose methods are
assumed to have no side effects. |
File |
classObfuscationDictionary
An optional name of a file containing obfuscated class names.
|
File |
dump
An optional output file for printing out the processed code in a more
or less readable form.
|
String |
flattenPackageHierarchy
An optional base package if the obfuscated package hierarchy is to be
flattened,
null otherwise. |
boolean |
ignoreWarnings
Specifies whether to ignore any warnings.
|
List |
keep
A list of
KeepClassSpecification instances, whose class names and
class member names are to be kept from shrinking, optimization, and/or
obfuscation. |
List |
keepAttributes
A list of
Strings specifying optional attributes to be kept. |
List |
keepDirectories
A list of
Strings specifying directories to be kept in
the output directories or the output jars. |
List |
keepPackageNames
A list of
Strings specifying package names to be kept. |
boolean |
keepParameterNames
Specifies whether method parameter names and types should be kept for
methods that are not obfuscated.
|
long |
lastModified
Specifies the last modification time of this configuration.
|
ClassPath |
libraryJars
A list of library entries (jars, wars, ears, zips, and directories).
|
boolean |
mergeInterfacesAggressively
Specifies whether interfaces may be merged aggressively.
|
boolean |
microEdition
Specifies whether the code should be preverified for Java Micro Edition
(creating StackMap attributes) instead of for Java Standard Edition
(creating StackMapTable attributes).
|
String |
newSourceFileAttribute
An optional replacement for all SourceFile attributes.
|
List |
note
A list of
Strings specifying a filter for the classes for
which not to print notes, if there are noteworthy potential problems. |
boolean |
obfuscate
Specifies whether the code should be obfuscated.
|
File |
obfuscationDictionary
An optional name of a file containing obfuscated class member names.
|
int |
optimizationPasses
Specifies the number of optimization passes.
|
List |
optimizations
A list of
Strings specifying the optimizations to be
performed. |
boolean |
optimize
Specifies whether the code should be optimized.
|
boolean |
overloadAggressively
Specifies whether to apply aggressive name overloading on class members.
|
File |
packageObfuscationDictionary
An optional name of a file containing obfuscated package names.
|
boolean |
preverify
Specifies whether the code should be preverified.
|
File |
printConfiguration
An optional output file for printing out the configuration that ProGuard
is using (with included files and replaced variables).
|
File |
printMapping
An optional output file for listing the obfuscation mapping.
|
File |
printSeeds
An optional output file for listing the kept seeds.
|
File |
printUsage
An optional output file for listing the unused classes and class
members.
|
ClassPath |
programJars
A list of input and output entries (jars, wars, ears, zips, and directories).
|
String |
repackageClasses
An optional base package if the obfuscated classes are to be repackaged
into a single package,
null otherwise. |
boolean |
shrink
Specifies whether the code should be shrunk.
|
boolean |
skipNonPublicLibraryClasses
Specifies whether to skip non-public library classes while reading
library jars.
|
boolean |
skipNonPublicLibraryClassMembers
Specifies whether to skip non-public library class members while reading
library classes.
|
static File |
STD_OUT |
int |
targetClassVersion
Specifies the version number of the output classes, or 0 if the version
number can be left unchanged.
|
boolean |
useMixedCaseClassNames
Specifies whether obfuscated packages and classes can get mixed-case names.
|
boolean |
useUniqueClassMemberNames
Specifies whether to generate globally unique class member names.
|
boolean |
verbose
Specifies whether to print verbose messages.
|
List |
warn
A list of
Strings specifying a filter for the classes for
which not to print warnings, if there are any problems. |
List |
whyAreYouKeeping
A list of
ClassSpecification instances, for which an explanation
is to be printed, why they are kept in the shrinking step. |
| Constructor and Description |
|---|
Configuration() |
public static final File STD_OUT
public ClassPath programJars
public ClassPath libraryJars
public boolean skipNonPublicLibraryClasses
public boolean skipNonPublicLibraryClassMembers
public List keepDirectories
Strings specifying directories to be kept in
the output directories or the output jars. A null list
means no directories. An empty list means all directories. The directory
names may contain "**", "*", or "?" wildcards, and they may be preceded
by the "!" negator.public int targetClassVersion
public long lastModified
public List keep
KeepClassSpecification instances, whose class names and
class member names are to be kept from shrinking, optimization, and/or
obfuscation.public File printSeeds
public boolean shrink
public File printUsage
public List whyAreYouKeeping
ClassSpecification instances, for which an explanation
is to be printed, why they are kept in the shrinking step.public boolean optimize
public List optimizations
Strings specifying the optimizations to be
performed. A null list means all optimizations. The
optimization names may contain "*" or "?" wildcards, and they may
be preceded by the "!" negator.public int optimizationPasses
public List assumeNoSideEffects
ClassSpecification instances, whose methods are
assumed to have no side effects.public boolean allowAccessModification
public boolean mergeInterfacesAggressively
public boolean obfuscate
public File printMapping
public File applyMapping
public File obfuscationDictionary
public File classObfuscationDictionary
public File packageObfuscationDictionary
public boolean overloadAggressively
public boolean useUniqueClassMemberNames
public boolean useMixedCaseClassNames
public List keepPackageNames
Strings specifying package names to be kept.
A null list means no names. An empty list means all
names. The package names may contain "**", "*", or "?" wildcards, and
they may be preceded by the "!" negator.public String flattenPackageHierarchy
null otherwise.public String repackageClasses
null otherwise.public List keepAttributes
Strings specifying optional attributes to be kept.
A null list means no attributes. An empty list means all
attributes. The attribute names may contain "*" or "?" wildcards, and
they may be preceded by the "!" negator.public boolean keepParameterNames
public String newSourceFileAttribute
public List adaptClassStrings
Strings specifying a filter for classes whose
string constants are to be adapted, based on corresponding obfuscated
class names.public List adaptResourceFileNames
Strings specifying a filter for files whose
names are to be adapted, based on corresponding obfuscated class names.public List adaptResourceFileContents
Strings specifying a filter for files whose
contents are to be adapted, based on obfuscated class names.public boolean preverify
public boolean microEdition
public boolean verbose
public List note
Strings specifying a filter for the classes for
which not to print notes, if there are noteworthy potential problems.
A null list means all classes. The class names may contain
"**", "*", or "?" wildcards, and they may be preceded by the "!" negator.public List warn
Strings specifying a filter for the classes for
which not to print warnings, if there are any problems.
A null list means all classes. The class names may contain
"**", "*", or "?" wildcards, and they may be preceded by the "!" negator.public boolean ignoreWarnings
public File printConfiguration
public File dump
Copyright © 2015. All Rights Reserved.