Repository navigation
fix(sdk): Align AndroidX.Wear pins and Wear minSdk (backport #23993) - #23997
Merged
Merged
Conversation
(cherry picked from commit ed8dc75)
kazo0
approved these changes
Aug 7, 2026
kazo0
enabled auto-merge
August 7, 2026 00:23
4 of 5 tasks
Contributor
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23997/docs/index.html |
kazo0
disabled auto-merge
August 7, 2026 00:59
kazo0
enabled auto-merge
August 7, 2026 00:59
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Contributor
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23997/wasm-skia-net9/index.html |
Contributor
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23997/docs/index.html |
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.This is an automatic backport of pull request #23993 done by [Mergify](https://mergify.com).