Search code examples
androidsvnandroid-studiosvnignore

SVNIgnore for Android Studio Projects


I try to import my Android Studio project on different machines and wondering which project files are realy needed. For example the .idea or .gradle directories. I won't to much trash in my svn repo. Can someone tell my more about required files for Android Studio projects?


Solution

  • You need to keep these files in your root project

    • app folder (tough ignore the build folder inside it recursively, it's a big waste of space)
    • gradle
    • .gitignore if you are using GIT
    • build.gradle
    • gradle.properties if you want to have the same configuration on all of your pc's. You need to cinfugure it first tough.
    • gradlew
    • gradlew.bat
    • settings.gradle

    Anything else that is not on the list and was not created by you, can be ignored

    Make sure you ignore these by file name wildcard. This is the garbage created by macs and windows machines.

    • .DS_Store
    • desktop.ini
    • Thumbs.db
    • *.iml (garbage created by Android studio)