Building Android NDK projects with Gradle and Travis CI

I’ve migrated all of my Android projects over to Gradle now as that seems to be the direction that Android development is taking, but if you use the Android NDK in your projects then you’ll discover that NDK support is severely lacking in Gradle. There’s undocumented support for the NDK which can be found if you dive into the samples, but it doesn’t look to be too developed at the moment. Until there’s an official solution for this, I’ve taken my own approach to this, inspired by countless StackOverflow questions and answers.

I also use Gradle in combination with GitHub and Travis CI in order to build and test the latest commits automatically, so I’ll share the .travis.yml build script that I use to do this.

This may not be the best way of doing this, and it will probably be made obsolete when an official solution is documented. However, it works for me. If you know of a better solution then please leave a comment.


Beta Testing CorsixTH for Android

The Google Play Store now lets me publish beta versions so that they can be tested by volunteers before they go live to the rest of the world! If you’re interested in helping me out and improving the quality of the app then please read on…

Follow these two simple steps and you’ll have any new beta versions pushed to your device automatically:

  1. Join the CorsixTH community on G+. You don’t need to post or anything, Google just uses it for authentication to make sure you’re allowed to use the beta versions. (Whilst you’re at it, feel free to circle me too!)
  2. Click here to opt in to beta testing.

Any feedback, bugs etc. should be reported by sending me a message on G+, emailing me or opening an issue on the GitHub Issue Tracker (preferred).

Please note, there’s a high chance of there being critical bugs which may delete your saved games. Don’t opt-in if you’re at all concerned about that. I won’t be uploading these beta versions anywhere else apart from the Play Store, so at the moment this is the only way to download them.

CorsixTH now on Google Play Store

I’ve finally taken the step to publish my port of CorsixTH to the Google Play Store. This means that you’ll no longer have to check for updates here but now you can get them automatically as I upload them instead.

I’ve been hesitant to do it before because I’ve always thought that the quality of my port was such that it would negatively affect people’s opinions of the CorsixTH project as a whole, so I’d like to reinstate that just because I’ve published it to Google Play doesn’t mean that I think it’s finished. There’s still a lot of work to be done and there’s more than enough bugs and suggestions to keep me going for a long time. I think the reviewers on Google Play can be especially harsh about things like this, so I’ve tried to make it very clear about what to expect.

I’ll keep updating the version hosted here though as I’m aware that not all Android devices can run the Google Play Store. I hope to publish it to the Amazon App Store and others in the future sometime for these people, but for now, here and Google Play are the places you should get it from. It’ll probably be the last time a lot of you will visit this blog from now on, but I’ll keep updating it with (hopefully) interesting things that pop up along the way, so I hope you’ll be back.

Oh, and as one last thing. If you use Google+, please feel free to join the new CorsixTH community (