Java Reference
In-Depth Information
Figure 15-2.
Representative obfuscation settings for a Java ME project using the Bouncy
Castle API
The settings shown in Figure 15-2 instruct the obfuscator to use the following
options:
•
-keep public class *.* extends javax.microedition.midlet.MIDlet
: Forces MIDlet
subclasses to retain their names
•
-dontusemixedclassnames
: Doesn't allow mixed case in generating obfuscated class
names, to work around an issue in Microsoft Windows
•
-defaultpackage ''
: Renames all packages other than packages implementing the
MIDlet
interface
•
-overloadaggressively
: Uses the same name for different methods whenever possi-
ble (that is, whenever different methods have different arguments and return
values), creating a smaller package