To integrate an Ant build step into your Eclipse project, go to the
Builders section in the project properties, and add an Ant builder,
tell it what targets and when to run them, etc. You get to tell it
what changes trigger it, and what changes it produces.

But I wouldn't recommend integrating ProGuard into a development build
process, for any number of reasons.

Nor would I do production builds with an Eclipse-based build process,
for an entirely different set of reasons.

If you use Proguard correctly, it doesn't "mess up your stack traces",
it obfuscates them, and you then unobfuscate them when you need them.
You can set that up to be pretty convenient, but it's not as
convenient as reading the trace in an email and instantly knowing the
problem -- you'll have to feed it to the stack trace unobfuscator
first.

Using it correctly that way requires a certain amount of effort,
planning, and discipline. That can be more of a distraction than the
value it adds -- as can the learning curve, as you experienced.

As an indication of where I stand on that -- I have yet to apply
Proguard to an Android project. I expect it would take me a couple of
days of fiddling and testing and build engineering and testing and
setting up the tracking of the data for deobfuscation, and more
testing etc. If it's your first Proguard project, I'd suggest allowing
a week for a small project, or two for a large one. If obfuscation, or
optimization, are worth that size investment, go for it.

But don't do it just because it's there, and you want to keep your
code secret.


On Aug 22, 12:24 am, String <[email protected]> wrote:
> As far as I could work out, no. ProGuard needs to be "inserted" into
> middle of the build process, and while ant lets you do this, Eclipse
> does not (at least, not for someone at my level of expertise). It
> seems likely Google will integrate ProGuard into the Eclipse plugin at
> some point, but that hasn't happened yet.
>
> Personally, I gave up on ProGuard - after several hours of messing
> around - when it threw several hundred errors on my app. I also am not
> impressed with "optimization" that makes my stack traces worthless,
> thank you very much.
>
> String
>
> On Aug 21, 7:58 am, neptune2000 <[email protected]> wrote:
>
>
>
> > There are several tutorials online for using  ProGuard with an Android
> > Ant build. There is nothing for using ProGuard with and Eclipse
> > Android Package build.
>
> > Is this possible?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to