Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

Choose which ANE to import with compiler constants

$
0
0

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!


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>