We use this combination of approaches for the large-scale mobile / web project that currently exists on the iOS AppStore, and will be released soon on Android and the Internet:
- One main project that uses compiler directives to process specific platform logic and elements
- Compiler directives for processing specific platform logic in the main project code base
- A separate project for our video and interactivity engine , which is mostly platform independent, using switch statements for specific platform logic
- One common SWC for graphic assets . Platform-specific elements have a platform prefix and underscores. Compiler directives are used to indicate which movie clips will be displayed on the screen.
- Ant scripts to compile for various platforms.
- Built-in extensions for interacting with hardware features
We use some commercial, some open source and some home-made ANEs for things like AppStore integration, social networking features, network monitoring, notifications, and interaction between applications.
- com.adobe.extension.NetworkInfo.ane
- com.milkmangames.extensions.EasyPush.ane
- com.milkmangames.extensions.GoViral.ane
- com.milkmangames.extensions.StoreKit.ane
(I have no connection with milkmangames)
I am currently writing Android ANE to handle interactions between applications using Intents. This is the project in which I am open:
https://github.com/interactivenyc/ANESampleProject .
I am currently stuck in a problem and will post a question soon with details if anyone is interested in the next project. The project setup is pretty well described in the ReadMe file displayed on the first page of the project.
source share