Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Projects one Source

We have a program that we wish to deploy across multiple devices.

  • Standalone Captive AIR
  • Web based flash app
  • iOS app
  • Android app

The code other than some UI stuff is identical in a lot of parts. I'm wondering what's the best approach. Should we have a shared library project or should we have one big project with different complier settings controlled through ant or some other method.

like image 244
Dale Fraser Avatar asked May 15 '12 11:05

Dale Fraser


2 Answers

Accessing and using Shared Library Project is the best way to be implemented for cross platform Projects. Other than this Approach you can use ant Build.

like image 122
Avadhani Y Avatar answered Sep 29 '22 10:09

Avadhani Y


The answer would ordinarily have a lot to do with the "UI stuff" that's different, but since it sounds like you're Flash/AIR, that's probably not a big concern. If it were me, I would go w/ the "one big project" approach, and get a serious CI/NI and SCM suite that was compatible w/ my IDE. If you're using Eclipse/Aptana, I like Husdon/Surround. (Full disclosure: I used to work @ Seapine.) If you're not using Eclipse, you should check out the CI/SCM options that integrate w/ your IDE (and themselves; e.g., Hudson has a Surround module and vice versa). The shared library thing works, but since Flash is Flash darn near everywhere, I don't see the need for the increased division of separate projects. A full-featured CI can manage the compiler differences for you quite effectively.

like image 41
MarkFisher Avatar answered Sep 29 '22 09:09

MarkFisher