[ANE] Repacking for simulator and fake support of device
Hello,
I have a question about anes, here is my problem : Some of the anes I use don't have simulator support or all-device support (only android, only iOS,...)
In my code, I of course test the device before calling anything so its fine from a runtime point of view (never had a runtime issue).
But, it does refuse to compile/launch. I know I could use multiple projects, compiler constants for imports, blablabla, but the best way to increase productivity would be to have them support all-device and simulator even if they do nothing with it.
So what I tried :
- rename ane as zip
- edit extensions.xml, add proper stuff
- rezip and rename back, and of course, don't call anything in the ane if you know your support is just "fake" for that device
It works for simulator BUT if I use the rezipped ane in a iOS build (which was supported), it refuses to build a release. So I have to switch ane back and forth.
It doesn't work if trying to add iOS support (well it compiles but when installing on device, install never ends). I tried adding a fake library.swf for iOS with only empty functions but didn't work.
Haven't encountered the case where I need to add new Android support so I can't say for that one.
Anyone knows of a quick way (which doesn't involve recreating all the concerned anes, since I don't have source code for them) ? Would create a huge productivity boost here.
I hope question is clear enough.
