Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Friday, January 10, 2014

.gitignore for Android application on Eclipse

It's been 4(?) years since I developed my last Android application. I found the following .gitignore file useful for adding a Eclipse Android application project folder to git:

  *.apk *.ap_ *.dex *.class bin/ gen/ # Local config local.properties # others (may need?) proguard/ *.iml *.ipr *.iws .idea/
After adding this ignore file for git, simply 'git init' and you're good to use git for your Android application. It's also possible to directly clone a git repository and use File->Import->Existing Android Code into Workspace in Eclipse.