Skip to content

Tapjoy Module for Titanium on iOS (no longer maintained)

Notifications You must be signed in to change notification settings

shad/tapjoy_module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tapjoy Module for Titanium

This module is a simple interface for connecting to Tapjoy

NOTE: This was forked in order to get the "Secret" way of working with TapJoy working on iPhone. The android module has not been updated.

Updated to work with v8.1.10 of the TapjoyConnect libraries (now UDID free)

Build & Install

iPhone

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')

Android

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')

Usage

iPhone

Add the following to app.js:

  var tapjoy = require('com.tapjoy');
  tapjoy.setSecret('SECRET');  // Secret only supported on iphone!!
  tapjoy.connect('API_KEY');

And later on, to mark an action performed:

  // Action complete... see TapJoy for your action id
  tapjoy.actionComplete('00000000-0000-0000-0000-000000000000');

Android

Add the following to a custom AndroidManifest.xml. Place the following XML in the first '' block in the document.

NOTE: Secret version is not supported on Android in this version.

<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();
  });

About

Tapjoy Module for Titanium on iOS (no longer maintained)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 65.2%
  • Java 21.0%
  • Python 11.8%
  • JavaScript 1.3%
  • C++ 0.7%