Hi Patrick, and anyone else wanting to use ProGuard with Maven Android
Plugin!
I started looking into fixing it, and have come as far as getting a
good idea of how to make it happen, resulting in a (possibly
unfinished) patch locally on my machine. It is *not* included in the
2.2.1 release.
The main reason it was not included, is that I haven't had time to
work on it, specifically testing it for any possible regressions. This
fix brings changes to the Maven Lifecycle of the Maven Android Plugin.
That's the *when*, and *in which order* things are compiled and
repackaged etc. Because of that, it needs extra testing, especially
the Eclipse integration which depends on the internals of the plugin's
Maven Lifecycle.
If you want to help, I'd appreciate if you start by filing an issue
for this, in the Issue Tracker. That makes it easier for me to track
and prioritize this in relation to other issues:
http://code.google.com/p/maven-android-plugin/issues/entry
We should then continue our detailed discussions inside that issue.
One thing we will need in any case, for verifying that/if is works, is
a complete example Maven project with all the required ProGuard
configuration and everything specified in the pom.xml and any other
required files, including some source code to compile. It should build
completely when just running 'mvn install', even by me, who isn't used
to configuring ProGuard on my own. If you can, I'd appreciate very
much if you would create such an example project too. It's the
ProGuard configuration stuff I'm almost totally unfamiliar with, so I
need help with that. For the general "complete Maven and Java source
code" project stuff, you could just take one of the Samples projects
and then "proguardify" it:
http://code.google.com/p/maven-android-plugin/wiki/Samples
(I would suggest going with the apidemos-15 project, "proguarifying"
apidemos-15-app. Then we'll try and make sure apidemos-15-
instrumentationtest still runs fine, and then release!)
Thanks,
/Hugo
On Nov 18, 5:27 am, Patrick Renaud <
prenau...@gmail.com> wrote:
> Hi Hugo.
>
> Hugo, Was the issue with proguard ever solved? Any chance that this release
> would include a correction to it? Tx. -Patrick
>
> 2009/11/17 Hugo Josefson <
h...@josefson.org>