gitignore;各ファイルの説明 - Ki-Kobayashi/Android-Wiki GitHub Wiki
🌟参考
https://qiita.com/gottie/items/a60aed29a40155061e88
https://qiita.com/gottie/items/a60aed29a40155061e88
🟩 【.idea系】管理した方がいいファイル(チーム開発の場合)
🟡.idea/misc.xml
- プロジェクトで使用するJavaSDKのバージョン情報を定義するファイル
- プロジェクトを複数人で開発する場合には開発者で足並みを揃えた方がいい
- ProjectRootManagerでJavaSDKのバージョン情報が定義されてる
🚨ユーザ固有のファイルパスで生成される場合ある。その場合は適宜 $PROJECT_DIR$ に置き換える。
🟡.idea/compiler.xml
- コンパイル時のJavaのバージョン情報を定義するファイル
- アノテーションプロセッサのON/OFFの設定もある
- bytecodeTargetLevel target="1.8"の部分はPreferencesの Gradleで設定した内容になる
🟡.idea/gradle.xml
- Gradle設定を定義するXMLファイル
- Gradleのオプション設定(Preferencesの Gradleの設定)は、主に.idea/gradle.xmlに保存される
- gradleJvmというオプションでGradle JDKの情報を定義しているから、管理推奨
.
🟩gitignoreを簡単に作成できるのもあるが・・・
https://www.toptal.com/developers/gitignore 完璧ではなさそう・・・?
.
🟩設定(GUI)をプロジェクトの設定ファイルに反映させる。
「Settings」->「Editor」->「Code Style」
SchemeをDefaultからProjectに変更する。
.
🟩 サンプル
#https://github.com/vinaygaba/Learn-Jetpack-Compose-By-Example/blob/master/.gitignore
# Built application files
*.apk
*.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/
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/
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# 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/
apikey.properties
🟡
.
🟩
🟡
.
🟩
🟡
.
🟩
🟡
.
🟩
🟡
.
🟩
🟡
.