appcelerator/titanium_mobile — pull request #4399 by jared-s (2013-06-18 17:35:50+00:00)
Title: Adds support for the New Relic module's dex agent.

This PR modifies the Android builder script to look for the New Relic module, and if present passes an additional argument to the dx command when it is called. This allows New Relic to do bytecode rewriting for instrumentation.

The Java agent argument to dx is passed via a temporary file to avoid issues the dx command has with spaces in file paths. This temporary file is cleaned up after dx runs.