Repository navigation
fix(sdk): Align AndroidX.Wear pins and Wear minSdk - #23993
Merged
ajpinedam merged 2 commits intoAug 7, 2026
Merged
Conversation
Contributor
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23993/wasm-skia-net9/index.html |
Contributor
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23993/docs/index.html |
ajpinedam
enabled auto-merge
August 6, 2026 20:04
Contributor
|
@Mergifyio backport release/stable/6.7 |
Contributor
✅ Backports have been createdDetails
|
kazo0
approved these changes
Aug 7, 2026
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
3 of 5 tasks
kazo0
added a commit
that referenced
this pull request
Aug 7, 2026
…6.7/pr-23993 fix(sdk): Align AndroidX.Wear pins and Wear minSdk (backport #23993)
1 task done
1 task done
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: closes #23991
PR Type:
🐞 Bugfix
What changed? 🚀
A new
unoappwith the Wear OS feature enabled fails to restore fornet10.0-androidwith threeNU1605package-downgrade errors:Uno.SdkpinsXamarin.AndroidX.Wearto 1.4.0.1 for net10.0, but that revision's dependency floors (RecyclerView ≥ 1.4.0.5, SwipeRefreshLayout ≥ 1.2.0.2, Fragment 1.8.9.2 → Activity ≥ 1.12.4.1) are all above the versions the SDK pins. The base (net9.0) pin1.3.0.16has the same problem against the base pin set, so net9.0-android was equally broken.This PR makes the
AndroidWearfeature restore and build out of the box:packages.json: pinAndroidXWearto the revisions that ship in the same dotnet/android-libraries wave as the rest of the pinned set —1.3.0.14(base) /1.3.0.15(net10.0). Down-pinning Wear keeps the change scoped to the Wear feature; raising the other AndroidX pins up to Wear 1.4.0.1's floors was validated and rejected, because Activity 1.12.x floorsandroidx.lifecycle2.10 (minSdk 23), which breaks every default (minSdk 21) Android app, and on net9.0 it drags in the brokenCompose.Runtime.Annotation1.10.0.1 packaging wave (D8 duplicate-class failure).Uno.Common.Android.targets: when theandroidwearfeature is enabled andSupportedOSPlatformVersionis not set explicitly, default it to26.0instead of21.0—Xamarin.AndroidX.Wear.Tilesbrings inandroidx.wear.protolayout, whose AAR requires minSdk 26 (manifest-mergeAMM0000otherwise).validate-packages-json.ps1(CI guard, second commit): in addition to the existing exists-on-NuGet check, validate that the pinnedXamarin.*set is mutually dependency-coherent per TFM pin set, by walking nuspec dependency floors (recursing through unpinned intermediates such asFragment). This is exactly the gap the existing guard could not catch:1.4.0.1exists on NuGet, but is incoherent with the surrounding pins. On the pre-fix manifest the check reports 8 conflicts (4 per TFM set — including aCollectionfloor violation that a default app cannot surface); on this PR's manifest it passes.android-wear.md: document the minSdk 26 default.Validation (all runtime, Uno.Sdk 6.7.0-dev.165 with the changed files injected)
dotnet new unoapp -platforms android --includeAndroidWear, net10.0-androidunoapp(no Wear), net10.0-androidpackages.jsonpackages.jsonPR Checklist ✅
Screenshots Compare Test Runresults.