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