torsdag 23 juli 2009

The second release of discobot is out!

I have put together the second release of discobot and there are quite a some news:
  1. It now can use the groovy 1.7 code base so there is no need for the old discobot project based on groovy 1.6.3.
  2. The project now comes with a tool to generate android project directories complete with buildscripts et al.
  3. The generated jarfile is slightly smaller thanks some additional removed parts of groovy.
Now things are still under development so its not 100% certain that things will work as they should. And I have only tested things under linux so getting things to work under windows might require some hackery.
Also its not possible to run the unit tests after building groovy since a lot of files are currently missing from the source tree. This will be fixed in the next release.

Now to the usage guide:
To install you simply need to untar this file into a folder and make sure you have groovy, android sdk 1.1 and ant installed (dont untar into the same folder as the old discobot project).
When the file is untared you should be able to find a file named project.conf in the root directory
edit that file so that the specified path points to your android sdk folder.
now run ./merge.sh clean from the root folder. This will produce the discobot.jar file under the dist folder.
To generate a discobot project run:
./mkProject.sh -name org.testorg.test.Test -path ../testapp
The above command will create a project folder called testapp in the parent directory (the relevant files will be put into the root of this directory) and put a file called Test.groovy in the name space org.testorg.test. This is your programs entry point and contains a rather weak attempt to show off groovys features :)
It will also put a copy of the discobot jarfile under ../testapp/libs. To build the project run: ant -lib libs/discobot.jar and install the apk as usual.

Inga kommentarer:

Skicka en kommentar