I am committing an Android project to a repository for the first time and I have some queries,
Firstly I just want to be sure if it is alright not to commit the /gen and /bin folders?
Secondly, could you please advise me as to what kind of structure is recommended for the repository for android projects.
Currently I have one application, but in the future I expect to create other flavours of the app.
Here are the current projects that need to go in to repo.
- Library project
- Application
- Free Application
Both the application and free application use the library project..
Finally any advice on which version control system is actively used? I have experience with Source Safe and Subversion. Not quite familiar with Git.
I’m no Android expert, so take this with a grain of salt…
In general you do not want to commit any generated binaries into the repository. The main exception to this is any third party libraries the code depends on. Those should go in a separate directory.
The Library should be in one repo, and the Application(s) in another. Depending on how close the two apps are you can have both in one repo and just have build-time config that determines which is built, etc.
I strongly recommend using git. The other systems you mention are no longer first class choices for version control.