Stuffing additional libraries into .apk files

1 view
Skip to first unread message

michael.stella

unread,
Feb 13, 2008, 4:20:59 PM2/13/08
to Android-Maven
One thing I hacked up maven-android to do was to add additonal .jar
files into the .apk file, so I didn't have to load them by hand. It
sucks when you want to distribute a single file for your app but you
have a few libraries...

Maybe there's an obvious way to do this and I don't know it - I
couldn't find one.

What I do, is I just add the additional .jar files on the dx command-
line. I made a patch to maven-android that does exactly that. What
do you think is a good way to handle them with android-maven?

Oh and btw, I want to join the project :) Maven is great, I hate
Eclipse :)

- michael

Charlie Collins

unread,
Feb 14, 2008, 8:48:46 AM2/14/08
to Android-Maven


On Feb 13, 4:20 pm, "michael.stella" <goo...@thismetalsky.org> wrote:
> One thing I hacked up maven-android to do was to add additonal .jar
> files into the .apk file, so I didn't have to load them by hand.  It
> sucks when you want to distribute a single file for your app but you
> have a few libraries...

Good question, there are a few ways to do that with Maven, and with
Java of course, but I am not sure the best approach. That one we may
have to bat around a bit.


> Maybe there's an obvious way to do this and I don't know it - I
> couldn't find one.
>
> What I do, is I just add the additional .jar files on the dx command-
> line.  I made a patch to maven-android that does exactly that.  What
> do you think is a good way to handle them with android-maven?

For now, if it suits your need, I think the patch is fine.

> Oh and btw, I want to join the project :)  Maven is great, I hate
> Eclipse :)

Send me your gmail/google account email address, and I will add you to
the project.

> - michael

michael.stella

unread,
Feb 14, 2008, 10:23:28 AM2/14/08
to Android-Maven
> > What I do, is I just add the additional .jar files on the dx command-
> > line.  I made a patch to maven-android that does exactly that.  What
> > do you think is a good way to handle them with android-maven?
>
> For now, if it suits your need, I think the patch is fine.

I meant, I made a patch for the "other" project, I haven't checked out
your code yet.
Reply all
Reply to author
Forward
0 new messages