Repository navigation
fix!: Add support for MAUI Embedding on supported skia-based platforms - #2788
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes issues related to Skia Maui Embedding support and updates the configuration and initialization for Maui embedding across Windows. Key changes include adding a new project for the Skia runtime, consolidating global usings and platform-specific initialization logic in MauiEmbedding and MauiInitExtension, and updating package references and solution files.
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.Extensions.Maui.WinUI.Runtime.Skia/Uno.Extensions.Maui.WinUI.Runtime.Skia.csproj | New project file for Skia runtime (note the SDK change) |
| src/Uno.Extensions.Maui.WinUI.Runtime.Skia/GlobalUsings.cs | Added common global usings for Windows and Maui |
| src/Uno.Extensions.Maui.UI/Uno.Extensions.Maui.WinUI.csproj | Updated IsMauiEmbedding setting and related property groups |
| src/Uno.Extensions.Maui.UI/MauiEmbedding.cs | Refactored Maui embedding initialization to delegate to MauiInitExtension |
| Other files | Removed/moved platform-specific initialization files and updated dependencies/solution |
Comments suppressed due to low confidence (1)
Uno.Extensions.Maui.WinUI.Runtime.Skia/Uno.Extensions.Maui.WinUI.Runtime.Skia.csproj:1
- The project file now uses Microsoft.NET.Sdk instead of Uno.Sdk; if this change was intentional, please confirm its compatibility with the rest of the solution or consider aligning with the existing SDK usage.
<Project Sdk="Microsoft.NET.Sdk">
0611b9a to
ee2b720
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR updates the Uno SDK to 6.0 and refactors MAUI embedding support into a runtime extension for Skia-based platforms, removing old platform-specific embedding code.
- Introduces a new
Uno.Extensions.Maui.WinUI.Runtime.Skiaproject with its own global usings. - Refactors MAUI embedding logic into
MauiEmbeddingExtension(andSkiaMauiEmbeddingExtension), replacing inlined#if MAUI_EMBEDDINGblocks. - Bumps several package versions and updates solution/project files to include the new runtime project.
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.Extensions.Maui.WinUI.Runtime.Skia/GlobalUsings.cs | Adds global usings for the new Skia-based runtime project |
| src/Uno.Extensions.Maui.UI/Uno.Extensions.Maui.WinUI.csproj | Changes MAUI embedding condition, removes old define constant |
| src/Uno.Extensions.Maui.UI/PlatformViewProvider.cs | Adds placeholder for platform view provider |
| src/Uno.Extensions.Maui.UI/MauiHost.cs | Replaces #if MAUI_EMBEDDING logic with extension calls |
| src/Uno.Extensions.Maui.UI/Extensibility/Impl/MauiEmbeddingExtension.cs | Adds new runtime extension implementation |
| Directory.Packages.props | Bumps dependency package versions |
| global.json | Updates Uno SDK versions |
| Uno.Extensions.sln and Uno.Extensions-packageonly.slnf | Registers the new Skia runtime project in the solution files |
Comments suppressed due to low confidence (2)
src/Uno.Extensions.Maui.UI/Uno.Extensions.Maui.WinUI.csproj:12
- The MAUI_EMBEDDING constant is no longer defined after removing the
<DefineConstants>element. You should re-add something like<DefineConstants>$(DefineConstants);MAUI_EMBEDDING</DefineConstants>so the extension code under#if MAUI_EMBEDDINGcompiles.
<IsMauiEmbedding Condition="'$(IsMauiEmbedding)'==''">true</IsMauiEmbedding>
src/Uno.Extensions.Maui.UI/Extensibility/Impl/MauiEmbeddingExtension.cs:19
- The class declaration includes parentheses, which is invalid C# syntax. Remove the
()so it readsSkiaMauiEmbeddingExtension : IMauiEmbeddingExtension(orMauiEmbeddingExtensionin the other branch).
SkiaMauiEmbeddingExtension()
|
|
|
|
|
@Mergifyio backport release/stable/5.3 |
✅ Backports have been createdDetails
|
@kazo0 Not sure we should backport this ... especially since we bump the version number to 6.0 (of uno, but also of extensions) in this PR |
BREAKING CHANGE: The Uno SDK Dependency has been updated to 6.0, which includes breaking changes.
|
@kazo0 indeed, there no need for a backport, it can be a new release branch. |
|
/unobot prepare-release --commit-message-pattern "ci: Set version to '{0}'" |
BREAKING CHANGE: The Uno SDK Dependency has been updated to 6.0, which includes breaking changes.