Monday, July 28, 2014

Android plugin for Gradle 0.11/0.12

NBAndroid plugin version 1.249 bundles newer version of SDK tools and Gradle support that makes it working with Android plugin for Gradle 0.11 and 0.12. It also means that older version 0.10 won't be supported anymore.

Friday, May 16, 2014

Testing with flavors

Real feedback from users is always the best and helps to focus on things that actually matter. Better support for Gradle projects using flavors is one of them and there is a few bugs reported recently. The first fix is ability to run tests in these projects corectly. Actually there are two parts to this:

  • NBAndroid now correctly builds only the APK for current build variant with its test.
  • Gradle projects let you use custom instrumentation test runner like Ant-based projects.
The change is part of 1.245 version.

Friday, May 2, 2014

Android plugin 0.10

Another version of Gradle plugin is out and as usual it is followed by an update in NBAndroid. Personally I like that all Gradle versions starting with 1.10 are supported including recently released 1.12.

Sunday, April 27, 2014

Gradle with dependency on Java library project

Let me repeat it again: Gradle project are the future build system if you're developing Android applications. At the moment the trend is also visible in a reported usage of Gradle plugin.

Latest release (1.239) brings another improvement - it fixes classpath resolving if you have a multi-project setup where Android project depends on non-Android Java library. Classes from that library were not recognized in editor and related IDE parts. Thanks for the bug report.

Wednesday, April 9, 2014

Documentation updates

I've made some changes to a wiki describing NBAndroid and NBAndroid extensions based on the feedback that I'm receiving continually. The goal is to move documentation into one place and make it simpler to find the content there. This effort is based mostly on an input from the feedback form filled by users who asked for NBAndroid Extension evaluation key.

Sunday, March 16, 2014

Gradle plugin 0.9.0

Recently published version 0.9.0 of Gradle plugin for Android development brings some incompatible changes again. Most important one that affects all projects is rename of instrumentTest sourceTest to androidTest. Please check the documentation to see how to update your projects. The good news is that it now supports Gradle versions 1.10 and 1.11. And of course it is now supported in NBAndroid.

Monday, February 24, 2014

Layout preview improvements

The problem with layout rendering is the most popular bug in issues tracker at BitBucket. I am well aware of that and recently I made a few changes to again make it more robust and basically attempted to be able to render a layout with some reasonable defaults without manual setting. Still there are assumptions like:
it expects that the project is built (to load identifiers from generated R.java and possibly project/library widgets), it needs to be able to parse AndroidManifest.xml from project, it will guess what is the best target platform to use for rendering and will use a default device (Nexus 4), its state (PORTRAIT), theme and so on. You can give it another try. Reminder: the AUC link is now http://nbandroid.org/updates/updates.xml.

Unrelated to that is that I was able to improve tests to run multiple times again different versions of Android target platforms. This is nice as it helps to make sure that new updates do not break existing functionality. This is done using AbstractMultiTestRunner from Gradle project - pretty smart class.