Home | History | Annotate | Download | only in examples
      1 #
      2 # This ProGuard configuration file illustrates how to process ProGuard itself.
      3 # Configuration files for typical applications will be very similar.
      4 # Usage:
      5 #     java -jar proguard.jar @proguard.pro
      6 #
      7 
      8 # Specify the input jars, output jars, and library jars.
      9 # We'll filter out the Ant and WTK classes, keeping everything else.
     10 
     11 -injars  ../lib/proguard.jar(!proguard/ant/**,!proguard/wtk/**)
     12 -outjars proguard_out.jar
     13 
     14 -libraryjars <java.home>/lib/rt.jar
     15 
     16 # Write out an obfuscation mapping file, for de-obfuscating any stack traces
     17 # later on, or for incremental obfuscation of extensions.
     18 
     19 -printmapping proguard.map
     20 
     21 # Allow methods with the same signature, except for the return type,
     22 # to get the same obfuscation name.
     23 
     24 -overloadaggressively
     25 
     26 # Put all obfuscated classes into the nameless root package.
     27 
     28 -repackageclasses ''
     29 
     30 # Allow classes and class members to be made public.
     31 
     32 -allowaccessmodification
     33 
     34 # The entry point: ProGuard and its main method.
     35 
     36 -keep public class proguard.ProGuard {
     37     public static void main(java.lang.String[]);
     38 }
     39 
     40 # If you want to preserve the Ant task as well, you'll have to specify the
     41 # main ant.jar.
     42 
     43 #-libraryjars /usr/local/java/ant/lib/ant.jar
     44 #-adaptresourcefilecontents proguard/ant/task.properties
     45 #
     46 #-keep,allowobfuscation class proguard.ant.*
     47 #-keepclassmembers public class proguard.ant.* {
     48 #    <init>(org.apache.tools.ant.Project);
     49 #    public void set*(***);
     50 #    public void add*(***);
     51 #}
     52 
     53 # If you want to preserve the WTK obfuscation plug-in, you'll have to specify
     54 # the kenv.zip file.
     55 
     56 #-libraryjars /usr/local/java/wtk2.5.2/wtklib/kenv.zip
     57 #-keep public class proguard.wtk.ProGuardObfuscator
     58