Skip to content

KnobayTech/ANE-Can-Open-URL

Repository files navigation

Air Native Extension for iOS and Android – Can Open URL

Note: This is a modified version of https://github.com/StickSports/ANE-Can-Open-URL to support iOS 64 bit

Version

This is version 1.0 of this extension.

Binary files

The bin folder contains the compiled extension and the default swc, which can be used for local testing if required by your development environment (Flash Builder shouldn’t need it, but other IDEs may).

Building

Requirements – Adobe Air SDK 3.1 or later, XCode IDE, Android SDK 2.2 or later, Java SDK, Apache Ant

  • Run the bash shell script build.sh, this set the JAVA_HOME and invoke the build.xml to creates the native extension and default swc file inside the bin folder.

terminal>cd build
terminal>./build.sh

The test project

A simple test project is included for testing the extension. To build this air project

  • Run the ant build script test/build.xml. This creates the test ipa and apk apps inside the test/bin folder.

Using the extension

To find whether an app exists to open a specific URL -

CanOpenUrl.canOpen( url : String ) : Boolean

Example code

You can see the feature in action in the source code of the test project.

Developers