Reputation: 4137
Which is the ideal .gitignore file for a project involving developers using Android Studio from Ubuntu and Windows OS? The classic .gitignore for an Andoird Studio project is
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
But in this case I had to add /.idea/gradle.xml
since in Windows the gradle.xml cannot resolve $APPLICATION_HOME_DIR$
and uses the specific Windows path, so this file should be untracked.
Are there other files which should be ignored?
PD: I checked this question but it does not seem to offer a proper solution.
Upvotes: 1
Views: 554
Reputation: 364451
It can be a good solution:
# Android Studio
*.iws
*.iml
.idea
.gradle
build/
*/build/
captures/
# Local configuration file (sdk path, etc)
local.properties
# Windows thumbnail db
Thumbs.db
# OSX files
.DS_Store
Upvotes: 0
Reputation: 6160
I'd suggest to use the one provided by
https://github.com/github/gitignore
and specifically the Android .gitignore
https://github.com/github/gitignore/blob/master/Android.gitignore
Upvotes: 1