Add app launcher icon and app_name string resource

Set up flutter_launcher_icons to generate Android launcher icons from assets/icon/app_icon.png. Move the app label into a string resource (@string/app_name) with a debug-only "Kitty finances debug" override.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-10 22:55:51 +03:00
co-authored by Claude Opus 4.8
parent da65bf6f8e
commit 94c08a5a37
12 changed files with 57 additions and 2 deletions
+7 -1
View File
@@ -24,7 +24,13 @@
"Bash(xargs wc -l)",
"Bash(git -C . worktree list)",
"Bash(xargs grep -l \"class\")",
"PowerShell(dart run build_runner build --delete-conflicting-outputs)"
"PowerShell(dart run build_runner build --delete-conflicting-outputs)",
"Bash(command -v magick)",
"Bash(magick -version)",
"Bash(command -v convert)",
"Read(//c/Users/user/AppData/Local/Pub/Cache/**)",
"Bash(flutter pub *)",
"Bash(git add *)"
]
}
}
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Debug-only override: отличает тестовую сборку от релизной на устройстве. -->
<string name="app_name">Kitty finances debug</string>
</resources>
+1 -1
View File
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="Kitty finances"
android:label="@string/app_name"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 61 KiB

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Kitty finances</string>
<string name="notif_listener_label">Kitty finances — распознавание уведомлений</string>
</resources>
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

+32
View File
@@ -25,6 +25,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.3.3"
archive:
dependency: transitive
description:
name: archive
sha256: a96e8b390886ee8abb49b7bd3ac8df6f451c621619f52a26e815fdcf568959ff
url: "https://pub.dev"
source: hosted
version: "4.0.9"
args:
dependency: transitive
description:
@@ -310,6 +318,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_launcher_icons:
dependency: "direct dev"
description:
name: flutter_launcher_icons
sha256: "10f13781741a2e3972126fae08393d3c4e01fa4cd7473326b94b72cf594195e7"
url: "https://pub.dev"
source: hosted
version: "0.14.4"
flutter_lints:
dependency: "direct dev"
description:
@@ -477,6 +493,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.1.2"
image:
dependency: transitive
description:
name: image
sha256: f9881ff4998044947ec38d098bc7c8316ae1186fa786eddffdb867b9bc94dfce
url: "https://pub.dev"
source: hosted
version: "4.8.0"
intl:
dependency: "direct main"
description:
@@ -741,6 +765,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.5.2"
posix:
dependency: transitive
description:
name: posix
sha256: "185ef7606574f789b40f289c233efa52e96dead518aed988e040a10737febb07"
url: "https://pub.dev"
source: hosted
version: "6.5.0"
pub_semver:
dependency: transitive
description:
+11
View File
@@ -61,6 +61,17 @@ dev_dependencies:
freezed: ^3.0.0
json_serializable: ^6.9.5
# App launcher icon generation
flutter_launcher_icons: ^0.14.1
flutter:
uses-material-design: true
generate: true
# App launcher icons — regenerate with:
# dart run flutter_launcher_icons
flutter_launcher_icons:
android: true
ios: false
image_path: "assets/icon/app_icon.png"
remove_alpha_ios: true