update: Support SkiaSharp 4 in MAUI and Avalonia 12 consumers - #3390
Merged
Merged
Conversation
- Added a test for packaged MAUI consumer with SkiaSharp 4 in the CI workflow. - Modified Program.cs in benchmarks to support command-line arguments for BenchmarkSwitcher. - Changed ScaleBarFontPerformance class to allow inheritance and updated Dispose method. - Updated Directory.Build.props to use MauiVersion 9.0.120 and adjusted SkiaSharp and HarfBuzzSharp compatibility versions. - Updated Directory.Packages.props to use ReactiveUI.Avalonia 12.1.2. - Updated Avalonia12 Directory.Build.props to match the latest versions. - Updated Android, Desktop, iOS, and main Avalonia12 project files to use the latest package versions. - Added SkiaSharp and HarfBuzzSharp references to Maui sample and tests to ensure compatibility. - Created SkiaSharpCompatibilityTests to validate SkiaSharp 4 integration. - Updated image comparison tool to use the latest ReactiveUI version. - Documented SkiaSharp compatibility in the v6.0 upgrade guide. - Created plans for ongoing work and documented completed tasks related to font resolution performance and SkiaSharp upgrade follow-up.
Avalonia 12.1 supports SkiaSharp 4 when an app references it explicitly, so the Avalonia 12 samples now opt in to SkiaSharp 4.151.2 and HarfBuzzSharp 14.2.1.102, matching the MAUI sample. The Mapsui library stays compiled against SkiaSharp 3.119.4. SkiaSharp.HarfBuzz and HarfBuzzSharp.NativeAssets.Linux are pinned too, otherwise they stayed on the 3.x/8.x line. Avalonia 12.1's Vulkan backend crashes with SkiaSharp 4 (access violation in VulkanDevice.Create), so the desktop sample no longer tries Vulkan and starts with ANGLE. The upgrade guide documents both points. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mapsui stays compiled against SkiaSharp 3.119.4, and MAUI and Avalonia 12 apps can now opt in to SkiaSharp 4 by referencing it explicitly. MAUI is covered by automated tests; Avalonia 12 was verified by running its desktop sample.
Mapsui.UI.Avalonia12package itself stays on SkiaSharp 3.VulkanDevice.Create), while ANGLE worksValidation
Relates to #3376
🤖 Generated with Claude Code