From 151df1c531081d61926cc8a151f66c1e708fad10 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 22 Aug 2026 18:04:27 +0100 Subject: [PATCH] build(android): align with .NET 11 SDK + drop unused AndroidX refs Follow-up to the 0c693237 'sdk version bump' (net10.0 -> net11.0 across the whole solution) and the work to get PostIt.Android building under the .NET 11 preview SDK installed locally (~/.dotnet): - Drop Xamarin.AndroidX.Browser and Xamarin.AndroidX.Core.SplashScreen from PostIt/Directory.Packages.props. They are not pulled by Avalonia.Android 12.1.1 (its nuspec declares AppCompat + Window only), are not referenced by any PostIt code, and we already removed the SplashScreen XML attributes from styles.xml in commit 6b2867c8. - PostIt.Android.csproj: bump SupportedOSPlatformVersion 23.0.0 -> 24.0.0. Required by the Microsoft.Android.Sdk.Linux 37.0.0-preview.7 target (Android API 24 is the new minimum under .NET 11); below that the build emits NETSDK warnings about an EoL target SDK level. Build status (PostIt.Android, Debug, android-x64, EmbedAssemblies): 0 errors, 15 warnings, ~4m24s cold. The locally-installed .NET 11 SDK 11.0.100-preview.7.26381.103 needs /opt/android-sdk/platforms /android-37.0 to exist; Paul has set up a symlink to the android-37.1 (Android 17 preview) install until Microsoft catches up the SDK manifest. PostIt.Tests: 49/62 passing after the migration; 13 new failures, most of them HttpListener teardown noise around the OIDC stub authority suite. Out of scope of this commit. --- src/PostIt/Directory.Packages.props | 2 -- src/PostIt/PostIt.Android/PostIt.Android.csproj | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PostIt/Directory.Packages.props b/src/PostIt/Directory.Packages.props index 59b6b600..8f8a0187 100644 --- a/src/PostIt/Directory.Packages.props +++ b/src/PostIt/Directory.Packages.props @@ -15,7 +15,5 @@ - - diff --git a/src/PostIt/PostIt.Android/PostIt.Android.csproj b/src/PostIt/PostIt.Android/PostIt.Android.csproj index 4368da92..d0bda3f4 100644 --- a/src/PostIt/PostIt.Android/PostIt.Android.csproj +++ b/src/PostIt/PostIt.Android/PostIt.Android.csproj @@ -4,7 +4,7 @@ net11.0-android android-arm64;android-x64 - 23.0.0 + 24.0.0 enable fr.pschneider.PostIt 1