Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

First commit Android Studio Project -- What should leave out?

I am doing my initial commit for a new android project. I am happy with the state of the code but was wondering about which files to add + commit and which files should I leave out.

Here is my .gitignore contents:

# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/

# Local configuration file (sdk path, etc)
local.properties

# Eclipse project files
.classpath
.project

# Proguard folder generated by Eclipse
proguard/

# Intellij project files
*.iml
*.ipr
*.iws
.idea/

Here is my current git status:

.gitignore
.gradle/
app/
build.gradle
build/
gradle/
gradlew
gradlew.bat
import-summary.txt
settings.gradle
like image 619
SamIAmHarris Avatar asked Sep 05 '14 21:09

SamIAmHarris


People also ask

Should I commit .gradle files?

You don't need to keep the . gradle folder. Because once you execute gradle build command again, you can make almost the same . gradle folder again.


1 Answers

I commit everything except the local stuff, this is my .gitignore:

*.iml
.gradle
/local.properties
/.idea
.DS_Store
/build
/captures
Dependency/*
/app/.idea/*
/app/.svn/*
/app/local.properties
like image 186
Flummox - don't be evil SE Avatar answered Oct 17 '22 23:10

Flummox - don't be evil SE