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
IDFA.service.addEventListener( IDFAEvent.COMPLETE, idfaCompleteHandler ); | |
IDFA.service.requestAuthorisation( | |
function ( status:String ):void | |
{ | |
if (status == TrackingAuthorisationStatus.AUTHORISED) | |
{ | |
IDFA.service.getIDFA(); | |
} | |
} |
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
package com.distriqt.test.inappbilling | |
{ | |
import com.distriqt.extension.inappbilling.InAppBilling; | |
public class Products | |
{ | |
public static const PRODUCT_1:String = "product1"; | |
public static const PRODUCT_2:String = "product2"; | |
public static const SUBSCRIPTION_1:String = "subscription1"; |
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
if (PushNotifications.service.inAppMessaging.isSupported) | |
{ | |
PushNotifications.service.inAppMessaging.addEventListener( | |
InAppMessagingEvent.SELECTED, | |
inappmessaging_selectedHandler | |
); | |
} | |
function inappmessaging_selectedHandler( event:InAppMessagingEvent ):void | |
{ |
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 BASE64_PUBLIC_KEY: String = "BASE64_PUBLIC_KEY"; | |
var SALT:Vector.<int> = Vector.<int>( [ 1, 43, -12, -1, 54, 98, -100, -12, 43, 2, -8, -4, 9, 5, -106, -108, -33, 45, -1, 84 ]); | |
PlayLicensing.service.setup( BASE64_PUBLIC_KEY, SALT ); | |
PlayLicensing.service.addEventListener( PlayLicensingEvent.ALLOW, checkAccessResponseHandler ); | |
PlayLicensing.service.addEventListener( PlayLicensingEvent.DONT_ALLOW, checkAccessResponseHandler ); | |
PlayLicensing.service.addEventListener( PlayLicensingEvent.ERROR, checkAccessResponseHandler ); | |
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 installedPackages:Array = PackageManager.service.getInstalledApplications(); | |
if (installedPackages != null) | |
{ | |
for each (var packageInfo:PackageInfo in installedPackages) | |
{ | |
trace( "package: " + packageInfo.toString() ); | |
} | |
} | |
// com.distriqt.PackageManager |
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
AppleSignIn.instance.addEventListener( AppleSignInErrorEvent.ERROR, errorHandler ); | |
AppleSignIn.instance.addEventListener( AppleSignInEvent.SUCCESS, successHandler ); | |
AppleSignIn.instance.loginWithAppleId(); | |
function successHandler( event:AppleSignInEvent ):void | |
{ | |
// User signed in | |
} |
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
Application.service.keyboard.addEventListener( SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, keyboard_deactivateHandler ); | |
Application.service.keyboard.addEventListener( SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE, keyboard_activateHandler ); | |
function keyboard_activateHandler( event:SoftKeyboardEvent ):void | |
{ | |
var keyboardY:int = Application.service.keyboard.y; | |
var keyboardHeight:int = Application.service.keyboard.height; | |
} | |
function keyboard_deactivateHandler( event:SoftKeyboardEvent ):void |
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
PackageManager.service.addEventListener( PackageManagerEvent.PACKAGE_REMOVED, packageRemovedHandler ); | |
function packageRemovedHandler( event:PackageManagerEvent ):void | |
{ | |
trace( "Package Removed::"+ event.packageName ); | |
} | |
// com.distriqt.PackageManager |
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
#!/bin/bash | |
##################################### | |
## CONFIG | |
# You need to set the values below for your application | |
# We suggest they are full paths to the files. | |
# The path to the ipa generated from your AIR application packaging | |
IPA="/path/to/your/dist_app.ipa" |