👉 あまり使わない決済アプリが勝手にアンインストールされていた - ケータイ Watch
勝手にアンインストールされると、イラッとする人向け。
そこまで自動にしたくない。
設定
↓
App Store
↓
非使用のAppを取り除く → OFF

スマホのおせっかいは本当にうざいです。
👉 あまり使わない決済アプリが勝手にアンインストールされていた - ケータイ Watch
勝手にアンインストールされると、イラッとする人向け。
そこまで自動にしたくない。
設定
↓
App Store
↓
非使用のAppを取り除く → OFF

スマホのおせっかいは本当にうざいです。
Compose の BOM。
公開されているので使ってみます。
少し公式ドキュメントで調べておきます。
BOM の使用は義務ですか?
いいえ。個々の依存関係バージョンを手動で追加することもできます。しかし、すべての最新の安定版を同時に使用することが容易になるので、BOM を使用することをおすすめします。
Compose Compiler ライブラリが BOM に含まれていないのはなぜですか?
Compose Kotlin コンパイラ拡張機能(androidx.compose.compiler)は、Compose ライブラリのバージョンでなく、Kotlin コンパイラ プラグインのバージョンにリンクされており、Compose の他の部分とは異なる頻度でリリースされます。したがって、お使いの Kotlin バージョンと互換性のあるバージョンを使用してください。
👉 Using the Bill of Materials | Jetpack Compose | Android Developers
公式サンプルコードを少し変更したものを準備しておきます。
# libs.versions.toml
[libraries]
compose-ui-bom = { module = "androidx.compose:compose-bom", version = "2023.01.00" }
// build.gradle
dependencies {
implementation platform(libs.compose.ui.bom)
}
👉 BOM to library version mapping | Jetpack Compose | Android Developers
実装としては、以下でいけました。
# libs.versions.toml
[libraries]
compose-ui-bom = { module = "androidx.compose:compose-bom", version = "2023.01.00"}
compose-material = { module = "androidx.compose.material:material" }
compose-material-icons = { module = "androidx.compose.material:material-icons-extended" }
compose-ui = { module = "androidx.compose.ui:ui" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
// build.gradle
dependencies {
// compose-ui
implementation platform(libs.compose.ui.bom)
implementation libs.compose.material
implementation libs.compose.material.icons
implementation libs.compose.ui
implementation libs.compose.ui.tooling.preview
}
BOM を使っていなかったのですが、エラーが出始めたので、使うことにしました。
「整合性の適正化」と「グループ化」の機能を持っている「BOM」は、Kotlin, Firebase などでも公開されています。
便利に利用するべきでしょう。
しかし、AndroidStudio のコレ。

「null」 の表示。
どうにかなりませんかね。
👉 今はまだ必要な Android ライブラリ の Bill of Materials(BOM) のURLs
キャンペーン · Drop "androidx" from Jetpack Compose package name, for multiplatform, before 1.0 release. · https://t.co/iq27Omo4ON https://t.co/iXeAVxTUmi
— chanzmao (@maochanz) July 7, 2022
Multiple reports on social media complain about the issue, which The Verge also highlighted. It appears that the Google Photos app is crashing instantly when iPhone and iPad users attempt to open it after upgrading to the latest software.
👉 iOS 16.3.1 Breaks Google Photos App | MacRumors Forums
Después de actualizar a iOS 16.3.1, la app de Google Photos deja de funcionar 😑@googlemexico pic.twitter.com/Gdqvb1rXCj
— Daniel Méndez (@donese) February 13, 2023
Google is aware of the issue, and is “in the process of rolling out a fix in version 6.23.1 of the Google Photos app,” according Michael Marconi, a spokesperson for the company.
Update February 14th, 12:46AM ET: Added statement from Google.
👉 If Google Photos is broken for you on iOS, you’re not alone - The Verge
Version 6.23.1



No crashed!! 🆗😁

まずは、状態の確認をしましょう。
以下は、基本的な Android プロジェクトでの例。
AndroidStudio 新規プロジェクトテンプレートから考える .gitignore https://t.co/1896sDXl4A #プログラミング
— chanzmao (@maochanz) February 13, 2023
❯ find . -name .gitignore
./app/.gitignore
./.gitignore
./.idea/.gitignore
👉 AndroidStudio 新規プロジェクトテンプレートから考える .gitignore
❯ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
❯ git status --ignored
On branch main
Your branch is up to date with 'origin/main'.
Ignored files:
(use "git add -f <file>..." to include in what will be committed)
.gradle/
.idea/workspace.xml
app/build/
local.properties
nothing to commit, working tree clean
→ ignore 対象が確認できます。
❯ git clean -ndX
Would remove .gradle/
Would remove .idea/workspace.xml
Would remove app/build/
Would remove build/
Would remove local.properties
❯ git check-ignore -v .gradle/
.gitignore:2:.gradle .gradle/
❯ git check-ignore -v .idea/workspace.xml
.idea/.gitignore:3:/workspace.xml .idea/workspace.xml
❯ git check-ignore -v app/build/
app/.gitignore:1:/build app/build/
❯ git check-ignore -v local.properties
.gitignore:15:local.properties local.properties
❯ git check-ignore -v **/*
app/.gitignore:1:/build app/build
app/.gitignore:1:/build app/build/generated
app/.gitignore:1:/build app/build/generated/ap_generated_sources
app/.gitignore:1:/build app/build/generated/ap_generated_sources/debug
app/.gitignore:1:/build app/build/generated/ap_generated_sources/debug/out
app/.gitignore:1:/build app/build/generated/res
...
→ そのファイルを ignore するパターン記述を特定することができます。
❯ git ls-files --other --ignored --exclude-standard
.gradle/7.5.1/checksums/checksums.lock
.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock
.gradle/7.5.1/dependencies-accessors/gc.properties
.gradle/7.5.1/executionHistory/executionHistory.bin
.gradle/7.5.1/executionHistory/executionHistory.lock
...
→ 実際に ignore されたファイル一覧が確認できます。Adroid プロジェクトでは出力行が多くなるので省略しています。
標準的な Android アプリ開発環境である AndroidStudio デフォルトのテンプレートは王道。
そのタイミングでの標準的なテンプレートです。
今現在、公開されているプロジェクトテンプレートから確認してみます。
Empty Activity を選択しました。

👉 benigumocom/EmptyActivity-2023-02-09: androidstudio default template
プロジェクトルートから .gitignore を探ります。
これからスタートするのがいいでしょう。

A collection of .gitignore templates
This is GitHub’s collection of .gitignore file templates. We use this list to populate the .gitignore template choosers available in the GitHub.com interface when creating new repositories and files.
👉 github/gitignore: A collection of useful .gitignore templates
GitHub 公式のリポジトリから公開されています。
Android アプリ開発に必要そうなものを挙げていきます。
👉 gitignore/JetBrains.gitignore at main · github/gitignore
👉 gitignore/macOS.gitignore at main · github/gitignore
👉 gitignore/Android.gitignore at main · github/gitignore
👉 gitignore/Gradle.gitignore at main · github/gitignore
Kotlin.gitignore は、以下 Java.gitignore のエイリアス。
👉 gitignore/Java.gitignore at main · github/gitignore

👉 gitignore.io - Create Useful .gitignore Files For Your Project で利用されている
.gitignore リソースは以下で公開されています。

👉 gitignore/templates at master · toptal/gitignore
基本的には、先に紹介した github/gitignore と同じものですが、こちら側のみで公開している .gitignore があります。
なので、それらを貼っておきます。
👉 gitignore/Groovy.gitignore at master · toptal/gitignore
👉 gitignore/Firebase.gitignore at master · toptal/gitignore
以上を参考にすれば、ほぼ書けるはずです。
AndroidStudio 新規プロジェクト作成時に書き出される .gitignore が必要最小限な洗練されてる記述に思えます。
あとは、不要なファイル公開を避ける記述を追加していく、という流れ。
git 全体としては、広く深く記述もいろいろなのでよく使うとこから身につけていく方がいいと思います。
👉 【これだけで大丈夫】.gitignore チートシート - A Memorandum
.gitignore 概念の説明や操作としては、GitHub 公式 Doc が最も分かりやすくまとまっています。
👉 ファイルを無視する - GitHub Docs
👉 What makes a good template? - github/gitignore: A collection of useful .gitignore templates