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.
In 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:
- Download and install Apache Maven(just unzip and add it to your PATH)
- Download the Android SDKand set the environment variable ANDROID_HOME to point to its location. Also add it to your path.
- Check out the Gnucash for Android project
- 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!