Skip to main content
Inspiring
July 2, 2013
Question

Choose which ANE to import with compiler constants

  • July 2, 2013
  • 1 reply
  • 377 views

Hi,

I've released a iOS app and I would like to upload a Android version.

In order to do that, I've created two compiler constants: CONFIG::ANDROID and CONFIG::IOS.

I'm having problems when I try to choose which ANE import in a class. Basically, the import does not work if it's inside a if.

In the code sample mobile.LIB is loaded but com.myane is not when CONFIG::IOS is set to true

CONFIG::IOS

{

  import com.myane.*;

  import mobile.LIB;

}

If I remove the first line of the code everything works fine.

Does anybody know if there is a issue with ANE and compile constants in Adobe Air?

thanks!

This topic has been closed for replies.

1 reply

Inspiring
July 2, 2013

There is a Adobe Air bug (reported) with this issue, routes with asterisks fail inside a condition in compiler time.

Solution:

CONFIG::IOS{

import com.myane.stuff1;

import com.myane.stuff2;

import com.myane.stuff3;

import com.myane.stuff4;}