• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 classes, Gradle classes, and WTK classes, keeping
10# everything else.
11
12-injars  ../lib/proguard.jar(!proguard/ant/**,!proguard/gradle/**,!proguard/wtk/**)
13-outjars proguard_out.jar
14
15-libraryjars <java.home>/lib/rt.jar
16
17# Write out an obfuscation mapping file, for de-obfuscating any stack traces
18# later on, or for incremental obfuscation of extensions.
19
20-printmapping proguard.map
21
22# Allow methods with the same signature, except for the return type,
23# to get the same obfuscation name.
24
25-overloadaggressively
26
27# Put all obfuscated classes into the nameless root package.
28
29-repackageclasses ''
30
31# Allow classes and class members to be made public.
32
33-allowaccessmodification
34
35# The entry point: ProGuard and its main method.
36
37-keep public class proguard.ProGuard {
38    public static void main(java.lang.String[]);
39}
40
41# If you want to preserve the Ant task as well, you'll have to specify the
42# main ant.jar.
43
44#-libraryjars /usr/local/java/ant/lib/ant.jar
45#-adaptresourcefilecontents proguard/ant/task.properties
46#
47#-keep,allowobfuscation class proguard.ant.*
48#-keepclassmembers public class proguard.ant.* {
49#    <init>(org.apache.tools.ant.Project);
50#    public void set*(***);
51#    public void add*(***);
52#}
53
54# If you want to preserve the Gradle task, you'll have to specify the Gradle
55# jars.
56
57#-libraryjars /usr/local/java/gradle-1.3/lib/plugins/gradle-plugins-1.3.jar
58#-libraryjars /usr/local/java/gradle-1.3/lib/gradle-base-services-1.3.jar
59#-libraryjars /usr/local/java/gradle-1.3/lib/gradle-core-1.3.jar
60#-libraryjars /usr/local/java/gradle-1.3/lib/groovy-all-1.8.6.jar
61
62#-keep public class proguard.gradle.* {
63#    public *;
64#}
65
66# If you want to preserve the WTK obfuscation plug-in, you'll have to specify
67# the kenv.zip file.
68
69#-libraryjars /usr/local/java/wtk2.5.2/wtklib/kenv.zip
70#-keep public class proguard.wtk.ProGuardObfuscator
71