My friend and I planned to start with Phonegap mobile projects that will cover iOS, Android, and Window Phone. This will require access to some native features, such as Camera Phone. You will also need to make some XHR server calls that are made in CakePHP.
Now I'm wondering how such a project is usually structured in Phonegap / and what Git commit is.
Here is what I am considering:
1) We need one repo for the server side, because it is relatively universal.
2) Should we store all mobile apps in our separate Git repositories? (so 1 for iOS, 1 for Android, 1 for Window Phone). This approach will have to support 3 separate www-folders, each of which will consist of many html files.
3) Put everything into one giant Git repository with a one-page HTML document index.html. Everything else will be handled by javascript functions and devices. (Although I don’t know how to control page transition, navigation, the back button on this approach yet - still learn)
I really admire this Wikimedia project done on Phonegap: https://github.com/wikimedia/WikipediaMobile . They store everything in one giant repo and universal www folder with separate js device-related files (e.g. my approach 3). Although it was a little difficult for me to follow how they did it. If you happen to find out about a case study on WikipediaMobile, let me know.
source
share