Adobe Native Extension Support for the AAR Format
I was able to wrap the Cortex Store API JAR with an Adobe ANE Extension as documented in the online docs.
docs/adobe-air.md at master · ouya/docs · GitHub
In the next version of the Razer SDK, it actually outputs from Android Studio in the AAR format.
AAR Format - Android Studio Project Site
AAR files can hold resources, assets, JAVA classes, and native libraries.
In the past I scripted combining the Cortex SDK JAR and the Adobe Air Plugin JAR together into the ANE target JAR file with a script that outputs the ANE file.
ouya-sdk-examples/build_ane.cmd at master · ouya/ouya-sdk-examples · GitHub
The script uses the ADT tool in the Air SDK Compiler to create the ANE file which can be used in Flash projects.
It would be great if a future version of the ADT tool could take the raw AAR file and bundle the ANE file.
Even better it would be great if the ADT tool would bundle a set of AAR files. That way I don't need to manually merge the compiled Java classes into a single JAR/AAR.
I do have a workaround that will probably work in which I'll need to do the following in order to use the AAR format.
1. Extract the classes.jar from the AAR file.
2. Extract the classes from each classes.jar file.
3. Combine all the classes into a single JAR file.
4. Name the JAR file as the expected ANE JAR name.
In my case that JAR name needs to be AirOuyaPlugin.jar for the ADT packaging tool.
Anyway, my purpose with this post is to let support know that AAR format support for ANE packaging is greatly appreciated.
Thanks,
~Tim Graupmann
