From 0534f304b63c12db0da61899e2fc7498a9917aac Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Wed, 20 Jun 2012 16:32:28 -0700 Subject: [PATCH] Use proguard on the assembled smali/baksmali jars This is primarily to remove any unused classes, to reduce the jar size --- baksmali/pom.xml | 40 ++++++++++++++++++++++++++++++++++++++++ smali/pom.xml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/baksmali/pom.xml b/baksmali/pom.xml index 39dfcceb..40a47298 100644 --- a/baksmali/pom.xml +++ b/baksmali/pom.xml @@ -33,6 +33,46 @@ + + com.github.wvengen + proguard-maven-plugin + 2.0.5 + + + package + + proguard + + + + + 4.8 + false + false + ${project.build.finalName}-jar-with-dependencies.jar + ${project.build.finalName}-jar-with-dependencies-small.jar + ${project.build.directory} + + + + + + ${java.home}/lib/rt.jar + + + + + net.sf.proguard + proguard-base + 4.8 + + + diff --git a/smali/pom.xml b/smali/pom.xml index c70b7de4..b1303ff1 100644 --- a/smali/pom.xml +++ b/smali/pom.xml @@ -118,6 +118,47 @@ + + com.github.wvengen + proguard-maven-plugin + 2.0.5 + + + package + + proguard + + + + + 4.8 + false + false + ${project.build.finalName}-jar-with-dependencies.jar + ${project.build.finalName}-jar-with-dependencies-small.jar + ${project.build.directory} + + + + + + + ${java.home}/lib/rt.jar + + + + + net.sf.proguard + proguard-base + 4.8 + + +