Home | History | Annotate | Download | only in examples
      1 #
      2 # This ProGuard configuration file illustrates how to process the ProGuard GUI.
      3 # Configuration files for typical applications will be very similar.
      4 # Usage:
      5 #     java -jar proguard.jar @proguardgui.pro
      6 #
      7 
      8 # Specify the input jars, output jars, and library jars.
      9 # The input jars will be merged in a single output jar.
     10 # We'll filter out the Ant and WTK classes.
     11 
     12 -injars  ../lib/proguardgui.jar
     13 -injars  ../lib/proguard.jar(!META-INF/**,!proguard/ant/**,!proguard/wtk/**)
     14 -injars  ../lib/retrace.jar (!META-INF/**)
     15 -outjars proguardgui_out.jar
     16 
     17 -libraryjars <java.home>/lib/rt.jar
     18 
     19 # If we wanted to reuse the previously obfuscated proguard_out.jar, we could
     20 # perform incremental obfuscation based on its mapping file, and only keep the
     21 # additional GUI files instead of all files.
     22 
     23 #-applymapping proguard.map
     24 #-injars      ../lib/proguardgui.jar
     25 #-outjars     proguardgui_out.jar
     26 #-libraryjars ../lib/proguard.jar(!proguard/ant/**,!proguard/wtk/**)
     27 #-libraryjars ../lib/retrace.jar
     28 #-libraryjars <java.home>/lib/rt.jar
     29 
     30 
     31 # Allow methods with the same signature, except for the return type,
     32 # to get the same obfuscation name.
     33 
     34 -overloadaggressively
     35 
     36 # Put all obfuscated classes into the nameless root package.
     37 
     38 -repackageclasses ''
     39 
     40 # Adapt the names of resource files, based on the corresponding obfuscated
     41 # class names. Notably, in this case, the GUI resource properties file will
     42 # have to be renamed.
     43 
     44 -adaptresourcefilenames **.properties,**.gif,**.jpg
     45 
     46 # The entry point: ProGuardGUI and its main method.
     47 
     48 -keep public class proguard.gui.ProGuardGUI {
     49     public static void main(java.lang.String[]);
     50 }
     51