[안드로이드].gitignore

플러그인으로 gitignore관리

.gitignore파일에 복붙


# Created by https://www.toptal.com/developers/gitignore/api/android,androidstudio,kotlin
# Edit at https://www.toptal.com/developers/gitignore?templates=android,androidstudio,kotlin

### Android ###
# Built application files
*.apk
*.aar
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/
#  Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# Gradle files
.gradle/
build/

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

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
.idea/jarRepositories.xml
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml

# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/

# Android Profiling
*.hprof

### Android Patch ###
gen-external-apklibs
output.json

# Replacement of .externalNativeBuild directories introduced
# with Android Studio 3.5.

### Kotlin ###
# Compiled class file

# Log file

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

### AndroidStudio ###
# Covers files to be ignored for android development using Android Studio.

# Built application files

# Files for the ART/Dalvik VM

# Java class files

# Generated files

# Gradle files
.gradle

# Signing files
.signing/

# Local configuration file (sdk path, etc)

# Proguard folder generated by Eclipse

# Log Files

# Android Studio
/*/build/
/*/local.properties
/*/out
/*/*/build
/*/*/production
*.ipr
*~
*.swp

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Android Patch

# External native build folder generated in Android Studio 2.2 and later

# NDK
obj/

# IntelliJ IDEA
*.iws
/out/

# User-specific configurations
.idea/caches/
.idea/libraries/
.idea/shelf/
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/misc.xml
.idea/scopes/scope_settings.xml
.idea/vcs.xml
.idea/jsLibraryMappings.xml
.idea/datasources.xml
.idea/dataSources.ids
.idea/sqlDataSources.xml
.idea/dynamic.xml
.idea/uiDesigner.xml

# OS-specific files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Legacy Eclipse project files
.classpath
.project
.cproject
.settings/

# Mobile Tools for Java (J2ME)

# Package Files #

# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)

## Plugin-specific files:

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Mongo Explorer plugin
.idea/mongoSettings.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### AndroidStudio Patch ###

!/gradle/wrapper/gradle-wrapper.jar

# End of https://www.toptal.com/developers/gitignore/api/android,androidstudio,kotlin

.idea 폴더에는 어떤 파일들이 들어있는 것인지 검색하고 정리한 내용입니다.

  1. assetWizardSettings.xml - 예를들어 Vector Asset 에서 icon을 추가했다면 마지막으로 추가한 아이콘의 정보를 저장함

  2. build_file_checksums.ser - build.gradle, settings.gradle, gradle.properties, .gradle/ 의 환경설정 관련 파일들이 변경되었는지 여부를 파악하는 파일. 즉, 이 값이 변경되면 sync가 필요하다는 뜻.

  3. codeStyles 폴더 - 프로젝트 코드스타일 정보.

  4. libraries 폴더 - 다운로드 받은 라이브러리의 jar파일이 저장된 위치가 들어있다. 사용자별로 다르므로 반드시 ignore에 추가

  5. gradle.xml - gradle 버전에 대한 로컬 경로가 들어있음. 사용자별로 다를수있다

  6. misc.xml - 자바버전, 프로젝트 유형과 같은 프로젝트 정보가 들어있음. 사용자별로 다를수있다

  7. modules.xml - iml 파일의 경로가 들어있음. 사용자별로 다를수있음

  8. navEditor.xml - 아키텍처컴포넌트의 네비게이션에 관련된 파일. element의 위치를 네비게이션 에디터에 저장한다. 네비게이션을 사용한다면 보관해야함

  9. runConfigurations.xml - 구성편집해서 추가한 구성들이 저장된다. 추가된것이 있다면 보관해야함

  10. vcs.xml - GUI를 사용하여 버전 관리 작업을 수행할 수 있도록 프로젝트에서 사용하는 VCS에 대한 정보가 들어있음.

  11. workspace.xml - 열어본 파일의 커서의 마지막 위치 같은 Android Studio의 작업 영역에 대한 정보가 포함되어있음. 사용자마다 다를수 있음

출처: https://duzi077.tistory.com/276 [개발하는 두더지]

좋은 웹페이지 즐겨찾기