Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Compilation of adobe air app that uses ANE fails while using the flex ant tasks.

New Here ,
May 09, 2013 May 09, 2013

The resolution seems to be a hack - which when you rename .ane files to .swc, it works.

I came across this workaround here: http://stackoverflow.com/questions/11112705/using-ant-mxmlc-task-with-native-extension?rq=1

<mxmlc file="${app.root}/app.as" 

               output="${output.dir}/app.swf"

               allow-source-path-overlap="true"

               debug="false"

               actionscript-file-encoding="UTF-8"

               swf-version="19" >

            <load-config filename="${framework.root}/air-config.xml"/>

            <source-path path-element="${framework.root}"/>

            <source-path path-element="src"/>

            <source-path path-element="other"/>

            <compiler.library-path dir="libs" append="true">

                <include name="**/*.swc"/>

            </compiler.library-path>

            <!-- THIS DOES NOT WORK -->

            <compiler.external-library-path dir="nativeExtension" append="true">

                <include name="**/*.ane"/>

            </compiler.external-library-path>

            

        </mxmlc>

However, if I rename all the .ane files in the nativeExtension directory to .swc the following change works..

            <!-- THIS WORKS -->

            <compiler.external-library-path dir="nativeExtension" append="true">

                <include name="**/*.swc"/>

            </compiler.external-library-path>

Has this issue been addressed?

I'm using the following:

- Adobe AIR SDK & Compiler (version 3.7) for Mac OS X

- ActionScript Compiler 2.0

- Apache Ant wrapper located in "AIRSDK_Compiler/ant/lib/flexTasks.jar"

Let me know if any other details will be helpful.

TOPICS
Development
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 23, 2013 May 23, 2013

I too would like to know Adobe's response to this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 24, 2013 May 24, 2013
LATEST

I'm using something like this in my build.xml (inapp.purchase.flash.swc is the flash wrapper for the ANE):

            <external-library-path dir="${basedir}/extensions/inapp.purchase/inapp.purchase.flash/bin" append="true">

                <include name="inapp.purchase.flash.swc" />

            </external-library-path>

I don't think you need ANE when building swf component of your app. ANE is only required for packaging. By linking with external inapp.purchase.flash.swc you're just telling action script compiler that above symbols will be defined later (in ANE).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines