Macadamian/titanium_mobile — pull request #22 by jpl-mac (2012-04-10 23:56:18+00:00)
Title: Use BlackberryNDK in builder.py 

This patch removes all os.system calls from builder.py in favour of using the BlackberryNDK class to encapsulate all the work.

CHANGELOG:
- Fixed a bug in BlackberryNDK constructor so we at least test for wrong ndk path and not blindly assume that the supplied path is good
- implemented build, package and deploy methods in the ndk class
- Added unit tests to test the new methods, some tests need the bar file to succeed, kept them commented with todo comment.
- Also chained the unit tests to not repeat all the same steps at each test
- Use the ndk class in builder.py
- added support for the type parameter + added deploy type for device-release
- added auto detection of the ndk path for dev purposes

TESTS:
- Tested that the script still builds and runs the hello world on the simulator properly
- All complete NDK unit tests run correctly
- Tested all different build types
- Tested that the script runs well with or without the ndk path specified (needs to be in a default location to be autodetected)