This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(container) { | |
var NSBundle = require('Foundation/NSBundle'); | |
var NSURL = require('Foundation/NSURL'); | |
var NSData = require('Foundation/NSData'); | |
var receiptURL = NSBundle.mainBundle().appStoreReceiptURL; | |
var receipt = NSData.dataWithContentsOfURL(receiptURL); | |
if (!receipt) { | |
//no receipt | |
console.log("no receipt"); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Titanium.UI.createWindow({ | |
backgroundColor: "#ffffff", | |
title: "win" | |
}); | |
// animations | |
var animateLeft = Ti.UI.createAnimation({ | |
left: -520, | |
transform: Ti.UI.create2DMatrix({rotate: 60}), | |
opacity: 0, |