I have been up and running with Adobe AIR native extensions this whole week. In the process of failing and trying , cooked up this utility tool that will make your life easier for now (Until flash builder itself packages ANE naively).
If you have been following the tutorial on Adobe devnet: http://www.adobe.com/devnet/air/articles/developing-native-extensions-air.html, you will notice that while the tutorial correctly guides through the process of creating native code and actionscript library, things are not very clear from that point on. There are some handy man’s work you need to do like extracting library.swf from the swc, placing them in certain locations et c etc. And if that was not difficult enough you need to configure your batch file to run the adt command for ane creation with all sort of options. Slight mistake there and you keep on trying for days like me :).
Anyways, to cut it short, follow up the tutorial Adobe devnet: http://www.adobe.com/devnet/air/articles/developing-native-extensions-air.html, then when you have created Native Code in java and your Actionscript Library , you can then use this tool to generate ANE without much fuss. Its not a Ace of the base software, but it will behave itself and hopefully get you through this tedious process. Currently this is for windows only as i don’t have a mac to debug on. But hopefully i will try to get a MAC native installer out there soon.
Meanwhile dont hesitate to try this out.
Hope it helps everyone 🙂
* Signing requires you to have a PKCS12 based certificate (.p12 or .pfx)
** REMEMBER TO SAVE SETTINGS BEFORE BUILDING ANE TO PREVENT RETYPING EVERYTHING WHEN YOU RE-OPEN PROGRAM.