Created
October 5, 2013 16:38
-
-
Save marinat/6843100 to your computer and use it in GitHub Desktop.
This file contains 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
<extension xmlns="http://ns.adobe.com/air/extension/3.6"> | |
<id>net.firepush.adnet.FirePushLib</id> | |
<versionNumber>1</versionNumber> | |
<platforms> | |
<platform name="Android-ARM"> | |
<applicationDeployment> | |
<nativeLibrary>FirePush.jar</nativeLibrary> | |
<initializer>net.firepush.adnet.FirePushExtension</initializer> | |
<finalizer>net.firepush.adnet.FirePushExtension</finalizer> | |
</applicationDeployment> | |
</platform> | |
</platforms> | |
</extension> |
This file contains 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
package net.firepush.adnet { | |
import flash.external.ExtensionContext; | |
public class FirePushExtension { | |
private static var context:ExtensionContext; | |
public static function init():void { | |
if(!context) context = ExtensionContext.createExtensionContext("net.firepush.adnet.FirePushLib", null); | |
} | |
public static function showBanner(developerId:String):void { | |
if (context) context.call("showBanner", developerId); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment