Repository navigation
Conversation
Contributor
|
The build 221343 found UI Test snapshots differences: Details
|
ajpinedam
approved these changes
Jul 9, 2026
Delete the duplicate public Uno.Extensions.Vector2Extensions from Uno.UWP. The identical System.Numerics.VectorExtensions (Uno.Foundation, the WinAppSDK-ref counterpart marked "do not remove") remains the single Vector2<->Point/Size conversion helper, so extension-method callers are unaffected; only direct references to the named type break. Add the missing System.Numerics import to InputPane.skia.cs, which was silently binding .ToSize() to the removed class. PackageDiffIgnore: register the public-type removal under the 6.5 baseVersion set (matching the BC44/BC32 removals) so CI's PackageDiff does not flag it, and drop the two stale 4.10-baseline method entries (outdated ToVector/ToPoint(v) signatures that no longer match the file). Part of breaking-changes epic #8339. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Xiaoy312
enabled auto-merge
July 9, 2026 14:57
Xiaoy312
force-pushed
the
dev/xygu/20260708/bc72-remove-vector2extensions
branch
from
July 9, 2026 14:57
840fc4c to
8137248
Compare
Contributor
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23686/wasm-skia-net9/index.html |
MartinZikmund
approved these changes
Jul 9, 2026
Contributor
|
The build 221521 found UI Test snapshots differences: Details
|
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.
GitHub Issue: https://github.com/unoplatform/uno-private/issues/2125
PR Type:
🔄 Refactoring (no functional changes, no api changes)
What changed? 🚀
Implements BC72 from breaking-changes Phase 3 (#8339): deletes the redundant public class
Uno.Extensions.Vector2Extensions(inUno.UWP), leaving the functionally identicalSystem.Numerics.VectorExtensions(inUno.Foundation) as the singleVector2↔Point/Sizeconversion helper.src/Uno.UWP/Extensions/Vector2Extensions.csin full. It was apublic static classin namespaceUno.ExtensionsexposingToPoint/ToVector2/ToSizeextension methods. The survivingSystem.Numerics.VectorExtensions— the WinAppSDK-ref counterpart, carrying the header comment "Please do not remove it as third-parties may depend on it" — declares the same signatures, so extension-method callers (v.ToPoint(),p.ToVector2(), …) keep resolving transparently. Only code referencing the type by name (Uno.Extensions.Vector2Extensions.ToPoint(v)) breaks, which a typical app essentially never does.using System.Numerics;toInputPane.skia.cs, which importedUno.Extensions(but notSystem.Numerics) and was silently bindingActualSize.ToSize()— a call on aVector2— to the removed class. This was the only in-repo consumer that resolved throughVector2Extensions; a repo-wide build/sweep confirms it is the sole break.build/PackageDiffIgnore.xml: registers the public-type removal under the6.5baseVersionset (matching the BC44/BC32 removals on this branch) so CI'sPackageDiffdoes not flag it, and drops the two stale4.10-baseline method entries that referenced an outdatedToVector/ToPoint(v)signature no longer matching the file.specs/050-breaking-changes-rollup/spec.md.No runtime behavior changes. The removed methods have byte-for-byte-identical implementations in the surviving
VectorExtensions, so every reachable call site computes the same result; only the duplicate type name disappears from the public API.PR Checklist ✅
Screenshots Compare Test Runresults.Breaking changes & migration
Uno.Extensions.Vector2Extensions(BC72): the public type is removed. Migration: none needed for the common case — the identicalToPoint/ToVector2/ToSizeextension methods survive onSystem.Numerics.VectorExtensions, so any call using extension-method syntax keeps compiling as long asSystem.Numericsis in scope (which it already is whereverVector2is named). The only affected code is anything that references the named type directly (e.g.Uno.Extensions.Vector2Extensions.ToPoint(v)); replace such references withSystem.Numerics.VectorExtensionsor plain extension-method syntax.Validation evidence
grepfor the type nameVector2Extensionsreturns only the deleted file, the (now-updated)build/PackageDiffIgnore.xmlentries, and the spec — zero fully-qualified consumers. All 9.ToVector2(callers importSystem.Numerics. A sweep for.ToPoint(/.ToSize(/.ToVector2(in files lackingusing System.Numerics;surfaced exactly one real binder —InputPane.skia.cs(fixed here) — plus one false positive (LottieVisualSource.Skottie.cs, whose.ToSize()is onSKSizeviaSkiaExtensions). No native-suffixed (.Android/.iOS/.UIKit/.wasm.cs) file consumes these methods.src/Uno.UI/Uno.UI.Skia.csproj(net10.0) — the assembly holding the consumers (GestureRecognizer, SwipeControl, the gradient/geometry.skia.csfiles) plus itsUno.UI.Compositiondependency (CompositionPathGeometry) — builds clean after the fix: 0 warnings, 0 errors.PackageDiffallow-list check runs CI-only; the new6.5-set ignore entry is what keeps the removed-type check green. The fullUno.UI-Skia-only.slnfbuild is currently blocked by a pre-existingNU1015restore error (missingXamarin.AndroidX.AppCompatversion) inUno.UI.Runtime.Skia.Android, unrelated to this change; native heads were not built locally.