From 4b4b37ad8e0db2cdab5e995c259129aec9b92b7e Mon Sep 17 00:00:00 2001 From: thepra Date: Thu, 15 Oct 2026 08:31:10 +0200 Subject: [PATCH] me-web? 0.3.1: sharing offered when the check ends; an Android icon that fits - The offer to share the findings appeared only after the "test from outside?" question was answered, so scrolling past it meant no offer at all. It now appears as soon as the check ends (hidden only while the outside test runs), and a payload built later still carries the outside test's result. - Android gets an adaptive launcher icon: the drawing as a vector inside the 66-unit safe zone over the background colour, plus a monochrome layer for themed icons. The splash screen uses the same vector, so it is neither cut by the circle nor blurred from a 192-pixel picture. The PNG stays for Android 7. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012CzABvBkbcFqoHdmi8b9WB --- CLAUDE.md | 5 +++++ Directory.Build.props | 2 +- src/MeWeb.Android/MainActivity.cs | 2 +- .../Properties/AndroidManifest.xml | 2 +- .../Resources/drawable/icon_foreground.xml | 17 +++++++++++++++++ .../Resources/drawable/icon_monochrome.xml | 17 +++++++++++++++++ .../Resources/drawable/splash_screen.xml | 2 +- .../Resources/mipmap-anydpi-v26/icon.xml | 6 ++++++ .../{drawable => mipmap-xxxhdpi}/icon.png | Bin .../Resources/values-v31/styles.xml | 2 +- src/MeWeb.Android/Resources/values/colors.xml | 1 + src/MeWeb.App/ViewModels/MainViewModel.cs | 6 +++++- src/MeWeb.App/Views/MainView.axaml | 2 +- 13 files changed, 57 insertions(+), 7 deletions(-) create mode 100644 src/MeWeb.Android/Resources/drawable/icon_foreground.xml create mode 100644 src/MeWeb.Android/Resources/drawable/icon_monochrome.xml create mode 100644 src/MeWeb.Android/Resources/mipmap-anydpi-v26/icon.xml rename src/MeWeb.Android/Resources/{drawable => mipmap-xxxhdpi}/icon.png (100%) diff --git a/CLAUDE.md b/CLAUDE.md index d1e480f..8eb1614 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -111,6 +111,11 @@ The Android release key: alias `meweb`, certificate SHA-256 properties; one nested property function left it unevaluated (`XA0003`). - **A headless Avalonia session does not end on its own** while the pulse animation runs: the screenshot tool calls `Environment.Exit(0)` after dispatching. +- **Launchers and the Android 12 splash crop the icon to their own shape.** The launcher icon is the adaptive + `mipmap-anydpi-v26/icon.xml` (background colour, `drawable/icon_foreground.xml`, `drawable/icon_monochrome.xml` for + themed icons), and the splash uses the same foreground. Both vectors hold `branding/meweb.svg`'s drawing scaled into + the central 66 of 108 units around its smallest enclosing circle; a change to the drawing goes into all three files. + The plain `mipmap-xxxhdpi/icon.png` is only for Android 7.x. - **The macOS apphost is ad-hoc signed by the .NET 10 SDK even on Linux** (`LC_CODE_SIGNATURE` present); Apple Silicon refuses unsigned arm64 code, so never strip it. - **The Windows single-file publish drops native `.pdb` files beside the exe**; only `meweb.exe` ships. diff --git a/Directory.Build.props b/Directory.Build.props index 7089896..6f5e928 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 0.3.0 + 0.3.1 me-web? Arasaka di Hvozdikov Yevheniy © 2026 Arasaka di Hvozdikov Yevheniy diff --git a/src/MeWeb.Android/MainActivity.cs b/src/MeWeb.Android/MainActivity.cs index efa4943..15a80ea 100644 --- a/src/MeWeb.Android/MainActivity.cs +++ b/src/MeWeb.Android/MainActivity.cs @@ -8,7 +8,7 @@ namespace MeWeb.Android; [Activity( Label = "me-web?", Theme = "@style/MeWebTheme.NoActionBar", - Icon = "@drawable/icon", + Icon = "@mipmap/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode | ConfigChanges.Locale | ConfigChanges.LayoutDirection)] public class MainActivity : AvaloniaMainActivity diff --git a/src/MeWeb.Android/Properties/AndroidManifest.xml b/src/MeWeb.Android/Properties/AndroidManifest.xml index f15ab91..abaeecb 100644 --- a/src/MeWeb.Android/Properties/AndroidManifest.xml +++ b/src/MeWeb.Android/Properties/AndroidManifest.xml @@ -4,5 +4,5 @@ - + diff --git a/src/MeWeb.Android/Resources/drawable/icon_foreground.xml b/src/MeWeb.Android/Resources/drawable/icon_foreground.xml new file mode 100644 index 0000000..bb5d574 --- /dev/null +++ b/src/MeWeb.Android/Resources/drawable/icon_foreground.xml @@ -0,0 +1,17 @@ + + + + + + + + + + diff --git a/src/MeWeb.Android/Resources/drawable/icon_monochrome.xml b/src/MeWeb.Android/Resources/drawable/icon_monochrome.xml new file mode 100644 index 0000000..d9d944e --- /dev/null +++ b/src/MeWeb.Android/Resources/drawable/icon_monochrome.xml @@ -0,0 +1,17 @@ + + + + + + + + + + diff --git a/src/MeWeb.Android/Resources/drawable/splash_screen.xml b/src/MeWeb.Android/Resources/drawable/splash_screen.xml index 8aaad9a..b0a019b 100644 --- a/src/MeWeb.Android/Resources/drawable/splash_screen.xml +++ b/src/MeWeb.Android/Resources/drawable/splash_screen.xml @@ -3,5 +3,5 @@ - + diff --git a/src/MeWeb.Android/Resources/mipmap-anydpi-v26/icon.xml b/src/MeWeb.Android/Resources/mipmap-anydpi-v26/icon.xml new file mode 100644 index 0000000..c10a4ab --- /dev/null +++ b/src/MeWeb.Android/Resources/mipmap-anydpi-v26/icon.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/MeWeb.Android/Resources/drawable/icon.png b/src/MeWeb.Android/Resources/mipmap-xxxhdpi/icon.png similarity index 100% rename from src/MeWeb.Android/Resources/drawable/icon.png rename to src/MeWeb.Android/Resources/mipmap-xxxhdpi/icon.png diff --git a/src/MeWeb.Android/Resources/values-v31/styles.xml b/src/MeWeb.Android/Resources/values-v31/styles.xml index d9c108d..8307f95 100644 --- a/src/MeWeb.Android/Resources/values-v31/styles.xml +++ b/src/MeWeb.Android/Resources/values-v31/styles.xml @@ -6,7 +6,7 @@ @null true @color/splash_background - @drawable/icon + @drawable/icon_foreground @style/MeWebTheme.Main