chore(perf): bump version to 9.0.40 to match MAUI 9.0.40
All checks were successful
CI / Build (Linux) (push) Successful in 21s
Release / Build and Publish (push) Successful in 20s

Update version from 9.0.0 to 9.0.40 to align precisely with MAUI 9.0.40 release. Update CHANGELOG, package metadata, and templates. Fix thread safety issue in FontFallbackManager by changing _glyphCache from Dictionary to ConcurrentDictionary to prevent race conditions during concurrent glyph lookups.
This commit is contained in:
2026-03-07 01:48:58 -05:00
parent 8a5ad459ed
commit c6a3f4acc4
11 changed files with 28 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Concurrent;
using SkiaSharp;
namespace Microsoft.Maui.Platform.Linux.Services;
@@ -81,7 +82,7 @@ public class FontFallbackManager
// Cache for typeface lookups
private readonly Dictionary<string, SKTypeface?> _typefaceCache = new();
private readonly Dictionary<(int codepoint, string preferredFont), SKTypeface?> _glyphCache = new();
private readonly ConcurrentDictionary<(int codepoint, string preferredFont), SKTypeface?> _glyphCache = new();
private FontFallbackManager()
{

View File

@@ -224,7 +224,7 @@ public class VersionTrackingService : IVersionTracking
{
var assembly = Assembly.GetEntryAssembly() ?? Assembly.GetExecutingAssembly();
var version = assembly.GetName().Version;
return version != null ? $"{version.Major}.{version.Minor}.{version.Build}" : "9.0.0";
return version != null ? $"{version.Major}.{version.Minor}.{version.Build}" : "9.0.40";
}
private static string GetAssemblyBuild()