This (two) week(s) in Discobot (30-31.2011)

Each week, we work on the Discobot project, which goal it is to make Groovy run on Android. While that in itself isn’t the biggest problem, as you can read in our previous blog posts, making developing for Android using Groovy and making sure we are feature complete, well, let’s say it’s challenging.

Current efforts are twofold: one is developing a set of developer tools using Gradle, on which Marcin is focusing the most. On the other hand, we need some tools to make sure our version of Groovy works on Android, which is what I (Erik) am focusing on.

Screen-shot-2011-08-09-at-9.53.44-PM

As you can see in the screenshot above, our project is already capable of building the project and installing it on the emulator using the Gradle plugin. Also, the start of a demo application has been built, which will allow us to run all the tests packed with Groovy. For that, we have tweaked the build process of Groovy itself, so that it produces a jar which includes all the tests. This jar is used in the Discobot project. To figure out which tests are available, an Android Classpath Scanner is used. It uses a hack by inspecting the Dex files itself, but we are currently using that to scan for files which extend from GroovyTestCase, and run those. Once that is working, we’ll probably write a better UI around it.

Also, the Gradle plugin still needs some finishing touches to improve the overall user experience. Marcin is currently working on the last gradle task which will initialize the android project structure. It will call the android create project command-line tool from Android SDK, change the src directory structure of your project to obey Gradle conventions and create a ‘Hello World’ activity written in Groovy, so you can quickly get a simple working application to start out with!

We’ll try to update you again with more information next week!

3 replies
  1. Luis
    Luis says:

    Hey guys!

    What’s the progress of your work? Did you run into too difficult a hurdle that you had to stop the project?

    I just stumbled on this blog entry and got my hopes high until I saw the date of the post.

    Anyway this is very interesting stuff, and it would be great if you could release your work into the public domain if you are not able to continue working on it.

    Cheers,

    Luis

Trackbacks & Pingbacks

  1. […] Pragt has put up another update on Discobot, the ongoing project whose end is to get Groovy running on Android. The Jworks folks […]

  2. […] This (two) week(s) in Discobot (30-31.2011) […]

Comments are closed.