jayway/maven-android-plugin — pull request #190 by 4ntoine (2013-03-28 08:40:03+00:00)
Title: using obfuscated transitive dependencies for apklib dependencies

If you want to obfuscate transient jars from apkibs, use need to add proguard config and use this patch:

name.XXX.android.uploader
uploader
false

name.XXX.android.YYY
jsvaluegenerator
false

name.XXX.android.YYY
voice_commands
false

name.XXX.android.YYY
valueprovider
false

So obfuscated files should be used instead accoring original. Obfuscated jars are located in \target\classes\ folder.

Patched output (checked to be working for my project):

[DEBUG] Searching for obfuscated jars in D:\dev\src\XXX\app\target\classes
[DEBUG] Exclude original jar for obfuscated jar D:\dev\src\XXX\app\target\classes\jsvaluegenerator-1.0.jar
[DEBUG] Exclude original jar for obfuscated jar D:\dev\src\XXX\app\target\classes\uploader-1.0.jar
[DEBUG] Exclude original jar for obfuscated jar D:\dev\src\XXX\app\target\classes\valueprovider-1.0.jar
[DEBUG] Exclude original jar for obfuscated jar D:\dev\src\XXX\app\target\classes\voice_commands-1.0.jar

[DEBUG] Adding jvm argument -Xmx1024M
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\qberticus\simple-quickactions\2.2\simple-quickactions-2.2.apklib
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\rhino\js\1.7R2\js-1.7R2.jar
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\android-color-picker\android-color-picker\1.0\android-color-picker-1.0.apklib
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\name\YYY\firmata\Firmata\2.6\Firmata-2.6.jar
[DEBUG] Adding dex input: D:\dev\src\XXX\app\target\classes
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\com\nineoldandroids\library\2.4.0\library-2.4.0.jar
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\com\google\code\gson\gson\2.1\gson-2.1.jar
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\com\lamerman\fileexplorer\1.0\fileexplorer-1.0.apklib
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\com\android\vending\billing\3.0\billing-3.0.apklib
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\ru\clickwheel\lib\1.0\lib-1.0.apklib
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\org\slf4j\slf4j-android\1.6.1-RC1\slf4j-android-1.6.1-RC1.jar
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\com\hoho\android\usbserial\1.1\usbserial-1.1.jar
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\name\YYY\android\oscview\1.0\oscview-1.0.apklib
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\com\google\android\support\4_r11\support-4_r11.jar
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\com\google\android\apps\analytics\GoogleAnalyticsTracker\2.0\GoogleAnalyticsTracker-2.0.jar
[DEBUG] Adding dex input: D:\dev\src\XXX\meter\target\meter-1.0.apklib
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\name\YYY\android\uploader\service\1.0\service-1.0.apklib
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\com\ftdi\d2xx\1.0\d2xx-1.0.jar
[DEBUG] Adding dex input: C:\Users\sas\.m2\repository\name\YYY\firmata\serial\Serial\1.1\Serial-1.1.jar