Skip to content

Instantly share code, notes, and snippets.

@keyboardsurfer
Last active December 11, 2019 01:55
Show Gist options
  • Save keyboardsurfer/3240022 to your computer and use it in GitHub Desktop.
Save keyboardsurfer/3240022 to your computer and use it in GitHub Desktop.
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
Copy link

ghost commented Sep 6, 2012

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

@keyboardsurfer
Copy link
Author

@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
Copy link

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