This module is a simple interface for connecting to Tapjoy
Simply run the ./build.py script in 'iphone/' then copy the com.tapjoy-iphone-*.zip file to your Titanium Library ('/Library/Application Support/Titanium' or '~/Library/Application Support/Titanium')
Navigate into the 'android/' directory and run 'ant'. Then copy the com.tapjoy-android-*.zip file to your Titanium Library ('/Library/Application Support/Titanium' or '~/Library/Application Support/Titanium')
Add the following to app.js:
var tapjoy = require('com.tapjoy');
tapjoy.connect('API_KEY');
Add the following to a custom AndroidManifest.xml. Place the following XML in the first '' block in the document.
<meta-data android:name="APP_ID" android:value="API_KEY"/>
<meta-data android:name="CLIENT_PACKAGE" android:value="com.my.app"/>
<receiver android:name="com.tapjoy.TapjoyReferralTracker" android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
Add the following to app.js:
var tapjoy = require('com.tapjoy');
tapjoy.connectCreate();
Ti.App.addEventListener('close',function(e) {
tapjoy.connectDestroy();
});