// 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.


// open a single window
var win = Ti.UI.createWindow({
	backgroundColor:'white'
});
var label = Ti.UI.createLabel();
win.add(label);
win.open();

// TODO: write your module tests here
var nocache = require('rebel.nocache');
Ti.API.info("module is => " + nocache);

label.text = nocache.example();

Ti.API.info("module exampleProp is => " + nocache.exampleProp);
nocache.exampleProp = "This is a test value";

if (Ti.Platform.name == "android") {
	var proxy = nocache.createExample({
		message: "Creating an example Proxy",
		backgroundColor: "red",
		width: 100,
		height: 100,
		top: 100,
		left: 150
	});

	proxy.printMessage("Hello world!");
	proxy.message = "Hi world!.  It's me again.";
	proxy.printMessage("Hello world!");
	win.add(proxy);
}


require('rebel.nocache');

// That is all, from now on WebViews will not cache on iOS

Update app.js