- 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.
- The project now comes with a tool to generate android project directories complete with buildscripts et al.
- The generated jarfile is slightly smaller thanks some additional removed parts of groovy.
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