You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Andrew Grieve <ag...@google.com> on 2012/08/20 20:11:52 UTC
Making Android's framework project a library project
The ADT has support for library projects:
http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
We're not using this, but I've been using it locally and think it makes
things much easier when hacking on the framework (make a change and push
play instead of having to recreate jars).
Any objections to checking this in?
The exact change is:
Add this line to framework/.classpath:
<classpathentry exported="true" kind="con"
Add this line to a/framework/project.properties:
android.library=true
Re: Making Android's framework project a library project
Posted by Simon MacDonald <si...@gmail.com>.
Yes, it actually works. I believe Andrew posted how to set it up in a
debugging Android thread earlier. No, you can still run ant jar if you are
outside of Eclipse.
Simon Mac Donald
http://hi.im/simonmacdonald
On Mon, Aug 20, 2012 at 2:44 PM, Joe Bowser <bo...@gmail.com> wrote:
> Does this actually work? If so, how? Also, does this make non-Eclipse dev
> harder?
> On Aug 20, 2012 11:39 AM, "Bryce Curtis" <cu...@gmail.com> wrote:
>
> > +1 I've been using this locally too.
> >
> > On Mon, Aug 20, 2012 at 6:31 PM, Jesse <pu...@gmail.com> wrote:
> > > Not doing a lot of Android dev, but when I do, I use the the lib
> > approach.
> > > So: +.5
> > >
> > >
> > > On Mon, Aug 20, 2012 at 11:24 AM, Andrew Grieve <agrieve@chromium.org
> > >wrote:
> > >
> > >> Two +1s sounds good to me!
> > >>
> > >> If it causes trouble, it's pretty trivial to roll back.
> > >>
> > >> Commit:
> > >>
> > >>
> >
> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=0c484ddcf7eae1f501b467eaab7c4ed56737e8a8
> > >>
> > >>
> > >>
> > >>
> > >> On Mon, Aug 20, 2012 at 2:17 PM, Simon MacDonald
> > >> <si...@gmail.com>wrote:
> > >>
> > >> > I think this is a good idea too.
> > >> >
> > >> > Simon Mac Donald
> > >> > http://hi.im/simonmacdonald
> > >> >
> > >> >
> > >> > On Mon, Aug 20, 2012 at 2:11 PM, Andrew Grieve <ag...@google.com>
> > >> wrote:
> > >> >
> > >> > > The ADT has support for library projects:
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >>
> >
> http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
> > >> > >
> > >> > > We're not using this, but I've been using it locally and think it
> > makes
> > >> > > things much easier when hacking on the framework (make a change
> and
> > >> push
> > >> > > play instead of having to recreate jars).
> > >> > >
> > >> > > Any objections to checking this in?
> > >> > >
> > >> > > The exact change is:
> > >> > >
> > >> > > Add this line to framework/.classpath:
> > >> > > <classpathentry exported="true" kind="con"
> > >> > >
> > >> > > Add this line to a/framework/project.properties:
> > >> > > android.library=true
> > >> > >
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > @purplecabbage
> > > risingj.com
> >
>
Re: Making Android's framework project a library project
Posted by Joe Bowser <bo...@gmail.com>.
Does this actually work? If so, how? Also, does this make non-Eclipse dev
harder?
On Aug 20, 2012 11:39 AM, "Bryce Curtis" <cu...@gmail.com> wrote:
> +1 I've been using this locally too.
>
> On Mon, Aug 20, 2012 at 6:31 PM, Jesse <pu...@gmail.com> wrote:
> > Not doing a lot of Android dev, but when I do, I use the the lib
> approach.
> > So: +.5
> >
> >
> > On Mon, Aug 20, 2012 at 11:24 AM, Andrew Grieve <agrieve@chromium.org
> >wrote:
> >
> >> Two +1s sounds good to me!
> >>
> >> If it causes trouble, it's pretty trivial to roll back.
> >>
> >> Commit:
> >>
> >>
> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=0c484ddcf7eae1f501b467eaab7c4ed56737e8a8
> >>
> >>
> >>
> >>
> >> On Mon, Aug 20, 2012 at 2:17 PM, Simon MacDonald
> >> <si...@gmail.com>wrote:
> >>
> >> > I think this is a good idea too.
> >> >
> >> > Simon Mac Donald
> >> > http://hi.im/simonmacdonald
> >> >
> >> >
> >> > On Mon, Aug 20, 2012 at 2:11 PM, Andrew Grieve <ag...@google.com>
> >> wrote:
> >> >
> >> > > The ADT has support for library projects:
> >> > >
> >> > >
> >> > >
> >> >
> >>
> http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
> >> > >
> >> > > We're not using this, but I've been using it locally and think it
> makes
> >> > > things much easier when hacking on the framework (make a change and
> >> push
> >> > > play instead of having to recreate jars).
> >> > >
> >> > > Any objections to checking this in?
> >> > >
> >> > > The exact change is:
> >> > >
> >> > > Add this line to framework/.classpath:
> >> > > <classpathentry exported="true" kind="con"
> >> > >
> >> > > Add this line to a/framework/project.properties:
> >> > > android.library=true
> >> > >
> >> >
> >>
> >
> >
> >
> > --
> > @purplecabbage
> > risingj.com
>
Re: Making Android's framework project a library project
Posted by Bryce Curtis <cu...@gmail.com>.
+1 I've been using this locally too.
On Mon, Aug 20, 2012 at 6:31 PM, Jesse <pu...@gmail.com> wrote:
> Not doing a lot of Android dev, but when I do, I use the the lib approach.
> So: +.5
>
>
> On Mon, Aug 20, 2012 at 11:24 AM, Andrew Grieve <ag...@chromium.org>wrote:
>
>> Two +1s sounds good to me!
>>
>> If it causes trouble, it's pretty trivial to roll back.
>>
>> Commit:
>>
>> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=0c484ddcf7eae1f501b467eaab7c4ed56737e8a8
>>
>>
>>
>>
>> On Mon, Aug 20, 2012 at 2:17 PM, Simon MacDonald
>> <si...@gmail.com>wrote:
>>
>> > I think this is a good idea too.
>> >
>> > Simon Mac Donald
>> > http://hi.im/simonmacdonald
>> >
>> >
>> > On Mon, Aug 20, 2012 at 2:11 PM, Andrew Grieve <ag...@google.com>
>> wrote:
>> >
>> > > The ADT has support for library projects:
>> > >
>> > >
>> > >
>> >
>> http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
>> > >
>> > > We're not using this, but I've been using it locally and think it makes
>> > > things much easier when hacking on the framework (make a change and
>> push
>> > > play instead of having to recreate jars).
>> > >
>> > > Any objections to checking this in?
>> > >
>> > > The exact change is:
>> > >
>> > > Add this line to framework/.classpath:
>> > > <classpathentry exported="true" kind="con"
>> > >
>> > > Add this line to a/framework/project.properties:
>> > > android.library=true
>> > >
>> >
>>
>
>
>
> --
> @purplecabbage
> risingj.com
Re: Making Android's framework project a library project
Posted by Jesse <pu...@gmail.com>.
Not doing a lot of Android dev, but when I do, I use the the lib approach.
So: +.5
On Mon, Aug 20, 2012 at 11:24 AM, Andrew Grieve <ag...@chromium.org>wrote:
> Two +1s sounds good to me!
>
> If it causes trouble, it's pretty trivial to roll back.
>
> Commit:
>
> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=0c484ddcf7eae1f501b467eaab7c4ed56737e8a8
>
>
>
>
> On Mon, Aug 20, 2012 at 2:17 PM, Simon MacDonald
> <si...@gmail.com>wrote:
>
> > I think this is a good idea too.
> >
> > Simon Mac Donald
> > http://hi.im/simonmacdonald
> >
> >
> > On Mon, Aug 20, 2012 at 2:11 PM, Andrew Grieve <ag...@google.com>
> wrote:
> >
> > > The ADT has support for library projects:
> > >
> > >
> > >
> >
> http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
> > >
> > > We're not using this, but I've been using it locally and think it makes
> > > things much easier when hacking on the framework (make a change and
> push
> > > play instead of having to recreate jars).
> > >
> > > Any objections to checking this in?
> > >
> > > The exact change is:
> > >
> > > Add this line to framework/.classpath:
> > > <classpathentry exported="true" kind="con"
> > >
> > > Add this line to a/framework/project.properties:
> > > android.library=true
> > >
> >
>
--
@purplecabbage
risingj.com
Re: Making Android's framework project a library project
Posted by Andrew Grieve <ag...@chromium.org>.
Two +1s sounds good to me!
If it causes trouble, it's pretty trivial to roll back.
Commit:
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=0c484ddcf7eae1f501b467eaab7c4ed56737e8a8
On Mon, Aug 20, 2012 at 2:17 PM, Simon MacDonald
<si...@gmail.com>wrote:
> I think this is a good idea too.
>
> Simon Mac Donald
> http://hi.im/simonmacdonald
>
>
> On Mon, Aug 20, 2012 at 2:11 PM, Andrew Grieve <ag...@google.com> wrote:
>
> > The ADT has support for library projects:
> >
> >
> >
> http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
> >
> > We're not using this, but I've been using it locally and think it makes
> > things much easier when hacking on the framework (make a change and push
> > play instead of having to recreate jars).
> >
> > Any objections to checking this in?
> >
> > The exact change is:
> >
> > Add this line to framework/.classpath:
> > <classpathentry exported="true" kind="con"
> >
> > Add this line to a/framework/project.properties:
> > android.library=true
> >
>
Re: Making Android's framework project a library project
Posted by Simon MacDonald <si...@gmail.com>.
I think this is a good idea too.
Simon Mac Donald
http://hi.im/simonmacdonald
On Mon, Aug 20, 2012 at 2:11 PM, Andrew Grieve <ag...@google.com> wrote:
> The ADT has support for library projects:
>
>
> http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
>
> We're not using this, but I've been using it locally and think it makes
> things much easier when hacking on the framework (make a change and push
> play instead of having to recreate jars).
>
> Any objections to checking this in?
>
> The exact change is:
>
> Add this line to framework/.classpath:
> <classpathentry exported="true" kind="con"
>
> Add this line to a/framework/project.properties:
> android.library=true
>
Re: Making Android's framework project a library project
Posted by Braden Shepherdson <br...@chromium.org>.
I've been doing this locally too and it makes things easier. It's not hard
to toggle your app's dependency between the released JAR and your unpacked
framework library, too.
On Mon, Aug 20, 2012 at 2:11 PM, Andrew Grieve <ag...@google.com> wrote:
> The ADT has support for library projects:
>
>
> http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
>
> We're not using this, but I've been using it locally and think it makes
> things much easier when hacking on the framework (make a change and push
> play instead of having to recreate jars).
>
> Any objections to checking this in?
>
> The exact change is:
>
> Add this line to framework/.classpath:
> <classpathentry exported="true" kind="con"
>
> Add this line to a/framework/project.properties:
> android.library=true
>