Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [andmore-dev] Andmore2 progress

On Mon, Jan 25, 2016 at 1:47 AM, Xavier Ducrohet <xav@xxxxxxxxxxx> wrote:
Hi Doug,

I took a quick look and there are some things that are wrong when processing the Android model. I'm guessing part of it is just to get stuff working quickly, but I'm happy to answer any question you might have.

Very cool. Thanks Xavier. Yes, this is very much a hack something together and see if this is even possible project at the moment. There is much work ahead and any guidance you have to offer will be much appreciated. This is a side project of mine, but as the Arduino one proved to myself, if I stick with it, I'll eventually get a little help and have something people can use.
 

The first thing is that you query for a single AndroidProject model which wouldn't support multi-module projects.
This uses a new API that passes a BuildAction through the tooling API. This allow more control and allow querying for more than one type of model (AndroidProject for android, EclipseProject for pure Java project).

Cool, I'll take a look. I was doing a lot of guessing over the weekend :).
 
The other thing is that you add all the dependencies from all artifacts to the Eclipse project. The artifacts represent different scope (main, jvm unit test, device test). Since Eclipse doesn't have support for the test component, a new project should probably be created.

Yes, that was done just to get the project compiling with JDT. We'll do something smarter as we go. I have hard from the Platform team that they are working on multiple classpaths per project, I think that'll help. I'll have to check where that is.
 

I should write a quick doc about how to properly query and read the model

That would be awesome. Part of my problem also is that the Gradle Tooling API has almost no documentation either, just a few blog posts here and there. I can guess, but I'd rather have a little more background information too.

Thanks!
Doug.
 

On Sun, Jan 24, 2016 at 4:31 PM, Doug Schaefer <cdtdoug@xxxxxxxxx> wrote:
Well, hell. There they are. Forgot to look at the dependencies for the extra java artifacts. Build works.

Next steps will be to let you actually customize the project. Create a builder that calls out to Gradle. And then get into launching. That should be good enough for my talk at EclipseCon. Want to show Android tooling for my IoT demo, until I found out nothing worked. Good motivator :).

On Sun, Jan 24, 2016 at 6:52 PM, Doug Schaefer <cdtdoug@xxxxxxxxx> wrote:
BTW, if you want to see what I've done, I have a new git repo here: https://github.com/dschaefer/andmore2

On Sun, Jan 24, 2016 at 6:33 PM, Doug Schaefer <cdtdoug@xxxxxxxxx> wrote:
Hey gang,

I have a start on a simple reboot of Android Tooling for Eclipse. So far I have a simple new project wizard with everything hard coded for the Empty app. I have a project generator that uses Freemarker to generate source and resource files for the project. The generator also sets up the JDT project to build all that.

So far, it's working really well. But I'm having trouble picking up the actual Java dependencies from the build.gradle file, which by default has the junit jar file listed. Any gradle API experts out there who can drop me a hint. Was trying to find a AndroidProject equivalent for this info like a JavaProject or something and the GradleProject seems very basic.

Cheers,
Doug.



_______________________________________________
andmore-dev mailing list
andmore-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/andmore-dev




--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

_______________________________________________
andmore-dev mailing list
andmore-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/andmore-dev



Back to the top