Search code examples
androidiosactionscript-3apache-flexair

Adobe AIR, Native Extension load only specific device


I've got a native extension for Android. The functionality of this native extension is already implemented in the Air SDK for iOS. So I use the SDK functions on iOS and the native extension for Android.

The native extension doesn't support iOS, which makes sense, because the functionality is already implementent in the Air SDK for iOS.

When I start the App on Android everything works fine. But if I start the App on iOS I got the following error

VerifyError: Error #1014: Class com.afterisk.shared.ane.lib::GCMEvent could not be found

I splitted the code for each device in different classes. But it seems that Air try to compile the code for Android anyway.

Are there any way to prevent this behavior?


Solution

  • Thanks for the help. I managed to solve my problem with different app descriptors.