Skip to content
jdunmire edited this page Aug 18, 2010 · 2 revisions

Developing for APRSdroid

APRSdroid is written in Scala. To compile it, you will need the Scala compiler and runtime. You are also required to install ProGuard to reduce the binary size.

Required tools

Scala: Because there were some issues with Scala code on Android 1.5, you need to use the Scala 2.8 prerelease (scroll down to 2.8.x). After unpacking, copy scala-compiler.jarand scala-library.jar from lib/ to aprsdroid/tools/. I have been using scala-2.8.0.r20327-b20091231020112 – compared to it, RC2 brings another 15KByte of additional weight into the APK.

ProGuard: get the current version from SourceForge and copy the proguard.jar from the archive to aprsdroid/tools/.

Compilation

Compilation is performed using the ANT tool. It should be possible to integrate the project into Eclipse or other frameworks – feel free to document.

You will probably need to create the Android specific files before compilation.

android update project -p .
ant debug

Translation

Translation is handled via Launchpad. There is a shell script in aprsdroid called xml2po.sh which relies on the xml2po tool to convert the values.xml to a POT file and the PO files from LaunchPad to xml files.

Clone this wiki locally