Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Android gitignore
# Copyright: Benjamin Weiss (keyboardsurfer) https://github.com/keyboardsurfer
# Under CC-BY-SA V3.0 (https://creativecommons.org/licenses/by-sa/3.0/legalcode)
# built application files
*.apk
*.ap_
*.jar
!gradle/wrapper/gradle-wrapper.jar
# lint folder
lint
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
classes/
gen-external-apklibs/
# maven output folder
target
# Local configuration file (sdk path, etc)
local.properties
# Eclipse project files
.classpath
.project
.metadata
.settings
# IntelliJ files
.idea
*.iml
# OSX files
.DS_Store
# Windows files
Thumbs.db
# vi swap files
*.swp
# backup files
*.bak
# gradle directory
.gradle
build/
#for oh-my-zsh jira plugin (https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins#jira)
.jira-url
atlassian-ide-plugin.xml
@printminion

This comment has been minimized.

Copy link

commented Sep 5, 2012

add Thumbs.db for Windows users
and *.bak

@Ocramius

This comment has been minimized.

Copy link

commented Sep 5, 2012

@keyboardsurfer

This comment has been minimized.

Copy link
Owner Author

commented Sep 6, 2012

@Ocramius: the one I'm using is way more complete than the one in your link. Maybe I'll fork and file a pull request though...

@keyboardsurfer

This comment has been minimized.

Copy link
Owner Author

commented Sep 6, 2012

I've checked github's gitignore files. They provide an excellent starting point. But you'd have to merge the files for each new project. My Android gitignore is targeted for developers that are mainly developing software for Android, no matter what OS or build tool they use locally.

@OKA133

This comment has been minimized.

Copy link

commented Sep 6, 2012

Doesn't line#4 (*.jar) block any libraries (like "android-support-v4.jar") in your libs folder?

@keyboardsurfer

This comment has been minimized.

Copy link
Owner Author

commented Sep 13, 2012

@OKA133 Yes, that's true. Since I'm building with maven, I don't need any jar files in my repository.
Do you know a way to include jar files from any libs folder within the project structure?
I'd be happy to add it.

@soltrinox

This comment has been minimized.

Copy link

commented Mar 4, 2015

Thanks i needed this for some of my developers who didn't have a clue what to exclude. :-) happyness. LOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.