RSS Feed

Enabling Maven builds in GnuCash for Android

Posted on Tuesday, October 9, 2012 in Coding

Up until now, in order to build and test GnuCash for Android, it was necessary to download eclipse, install the Android Development Tools (ADT) and also download the Android SDK. Then check out the project from git, import it (and its dependencies) into eclipse and then run as Android application to the emulator or connected Android device.

maven_logoIn a quest to simplify the build process, the GnuCash for Android project now supports Apache Maven build tool (currently in the develop branch). To be clear, nothing changes for the eclipse workflow. If you have checked out the project already and have it working in eclipse, then you don’t need to do anything. You can just continue doing git pulls and everything would work as it should.

For those who prefer to use maven (or prefer not to have to download eclipse), these are the steps you need to follow:

  1. Download and install Apache Maven(just unzip and add it to your PATH)
  2. Download the Android SDKand set the environment variable ANDROID_HOME to point to its location. Also add it to your path.
  3. Check out the Gnucash for Android project
  4. Go into the sub folder ‘GnucashMobile’ and run mvn install android:deploy in order to install the app to your device.

If you want to build the whole project and run the tests, then create an Android virtual device named ‘Nexus’ in your SDK. Then run mvn clean install from the top folder of the source directory.

These changes should hopefully make it easier to build and test GnuCash for Android at various stages of development.


P.S. I am still looking for help with translations. So far we have Norwegian, German, Greek, Italian and Russian translations covered. If your language is not translated yet, then download and translate the strings.xml resource file and send to me. Remember not to translate key_xx and app_xx resources. Thanks!

Share and Enjoy:
  • Twitter
  • Google Bookmarks
  • Digg
  • Facebook

Bring on the comments

  1. jorgeml says:

    I have just sent a pull request with a Spanish translation. As it is my first time using Git I might have broken something. Otherwise it should be good enough for the time being.


  2. […] better way. Enter Maven, the build project management tool which also manages dependencies. I had introduced Maven build support to the GnuCash for Android project some while ago, but due to the Eclipse requirement for importing apklibs, I still had to […]

Leave a Reply