Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

BranchMetrics/air-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This SDK is deprecated

TUNE AIR Native Extension

Please see the Quick Start guide here:

AIR Quick Start

Building the ANE

Prerequisites

  1. Install Apache Ant if you haven't already

Make sure to use an Ant distribution compatible with Java 7 or lower, such as Ant 1.9.x.

Put the download somewhere permanent and add the bin directory to your PATH

  1. Download the Flex SDK installer This is the SDK that you need to build the AIR plugin
  • Run the downloaded Flex installer
  • Select a download location for the Flex SDK (you'll need this location later)
  • Choose the latest version of Flex and Air (or whatever you need to build the plugin against) and download (this will take some time)
  1. Download the Android SDK

  2. Download Adobe Flash Builder

This is the IDE that you build the AIR Plugin with.

  • Make sure you have java 6, which the Flash Builder 4.7 depends on Mac download

Developing and testing in the Adobe Flash Builder IDE

  1. Run Adobe Flash Builder

Adobe Flash Builder is built on Eclipse, so it might look familiar to you

  1. Choose File -> Import -> Existing Projects into Workspace and then choose the whole sdk-air directory

You should see 9 projects imported into the workspace.

  1. Run the TuneANETestApp project on both iOS and Android devices. All the buttons in the test app should work on device without crashes. You can verify the AA requests succeed by looking at debug output from Xcode console or Android LogCat.

Upgrading Air SDK for Adobe Flash Builder

  1. Make a backup of /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722

  2. Erase all contents inside com.adobe.flash.compiler_4.7.0.349722

  3. Extract the new Air SDK and then paste it into com.adobe.flash.compiler_4.7.0.349722

Building the ANE from the command line

  1. In the /build/ folder, rename the build.config.dist file to build.config and set your system paths for flex.sdk and android.sdk

  2. In extension.xml, platformandroid.xml, and platformios.xml, change the AIR SDK version if needed

  3. Then from /build/, run 'ant' which will create a TuneANE.ane file in the /dist/ folder