Repository navigation
fix(sdk): Report Lottie XAML on WinAppSDK without its package - #25987
Conversation
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25987/docs/index.html |
b3e163e to
389e612
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25987/docs/index.html |
389e612 to
5210ad3
Compare
WinAppSDK takes LottieVisualSource from CommunityToolkit.WinUI.Lottie, which nothing references, so XAML that builds on the Uno Platform targets failed on the Windows head with only WMC0001. UNOB0034 now names the XAML file and the package to reference. It's a warning: a page can declare the namespace without using any Lottie type. Fixes unoplatform#25449 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25987/docs/index.html |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
GitHub Issue: closes #25449
PR Type:
🐞 Bugfix
What changed? 🚀
Lottie is built into Uno.WinUI, so the Uno Platform targets need no package for
LottieVisualSource. On Windows (WinAppSDK) the type comes fromCommunityToolkit.WinUI.Lottie, which the Uno.Sdk doesn't reference. A single-project app whose XAML uses Lottie builds on desktop, WebAssembly and mobile, then fails on the Windows head with an error that doesn't name the missing package:(reproduced with the issue's project on
Uno.Sdk 7.0.0-dev.130)The Windows build now also reports UNOB0034 on each XAML file that declares
using:CommunityToolkit.WinUI.Lottiewhen no reference to that package resolves:MarkupCompilePass1. It checks the resolved references (ReferencePath), so a package referenced directly, transitively or through a project reference counts.WMC0001still fails the build, with UNOB0034 next to it.LottieUno Feature stays removed and ignored (cc5a349). Making it add the package on Windows was considered and dropped. So was referencing the package implicitly on every Windows head, which costs ~3.8 MB per app per architecture (Lottie + Win2D).Docs: UNOB0034 in the build error codes, the Windows
PackageReferencesnippet in the Lottie article, and a link from the 7.0 migration guide's Lottie row.Validation
Uno.UI.Tasks.Tests): newGiven_UnoSdkLottieWinAppSdk, 4 cases. It warns for Lottie XAML on Windows without the package. It doesn't warn when the package is referenced, when the XAML doesn't use Lottie, or on desktop. The warning case fails without the target.WMC0001plus UNOB0034 onMainPage.xaml.CommunityToolkit.WinUI.Lottie8.2.250604 referenced, a Lottie animation renders on the Sdk's WinAppSDK 2.5.1 (Win2D 1.0.5.1).https://aka.platform.uno/UNOB0034(the warning's help link) still needs to be created.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code