Now it's time to build, package, and test our new module! Before you go ahead with this recipe, make sure you've built the XCode project and it has been successful. If not, you will need to fix any errors before continuing.
Open up the app.js
example file for our module, you'll find it within the example
directory of your module project. Replace the existing sample contents with the following source code:
// This is a test harness for your module // You should do something interesting in this harness // to test out the module and to provide instructions // to users on how to use it by example. // write your module tests here var bitlymodule = require('com.packtpub.BitlyModule'); Ti.API.info("module is => " + bitlymodule); // open a single window var window = Ti.UI.createWindow({ backgroundColor:'white' }); var txtLongUrl...