Repository navigation
feat!: Align the AndroidX and Material bindings - #24379
Conversation
|
Claude finished @MartinZikmund's task in 1m 57s —— View job Claude's review of PR #24379
Verdict: ✅ Ship — this is a small, mechanical, well-documented dependency-alignment change. No inline comments were posted; the actual diff lines are internally consistent and correct. What I checked
Cross-cutting concern (not blocking, worth a follow-up issue)
On the duplicated No unresolved risk with the versions themselves — I wasn't able to independently verify the nuget.org lib-TFM claims (no outbound web-fetch permission in this session), so that verification rests on the author's stated checks and the Android CI legs, as the PR itself calls out. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24379/wasm-skia-net9/index.html |
|
Claude finished @MartinZikmund's task in 2m 53s —— View job Claude's review of PR #24379
Verdict: ✅ Ship, with one item to confirm before merge — this update adds a second commit ( Findings: 1 informational (non-blocking) The inline comment on Not re-litigated: the version-pin table, the duplicated |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24379/wasm-skia-net9/index.html |
|
The build 232095 found UI Test snapshots differences: Details
|
|
|
71638b0 to
b4fec1a
Compare
|
Claude finished @MartinZikmund's task in 1m 11s —— View job Claude's review of PR #24379
Verdict: ✅ Ship — no new commits since the last automated pass on this PR ( Findings: 0 new (no inline comments posted this pass) Everything from the earlier reviews still holds and isn't being re-litigated here:
Cross-cutting note on CI: the last recorded Azure DevOps build (232095, 2026-09-04) reported a large number of Skia screenshot-comparison differences (57 Linux, 2310 Windows, 11 WASM) and an overall CI failure. That volume of Windows-screenshot diffs is far larger than a pure Android-dependency-pin change could plausibly cause, so it looks like an unrelated/systemic snapshot-baseline issue rather than a regression from this PR — but it hadn't re-run or been explicitly resolved as of the last update in this thread, so it's worth confirming the pipeline is green (or the diffs are acknowledged as unrelated/re-baselined) before merge, per this repo's debugging/validation discipline of not treating unresolved CI signal as validated. PR already has an approval (Xiaoy312) and one open inline discussion; no blocking issues identified. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24379/wasm-skia-net9/index.html |
|
The build 232897 found UI Test snapshots differences: Details
|
|
Claude finished @MartinZikmund's task in 2m 12s —— View job Claude's review of PR #24379
Verdict: ✅ Ship — the new commit ( Findings: 0 new (no inline comments posted this pass) What changed since the last review: a single line in Not re-litigated (unchanged by this commit, already covered in earlier passes on this PR):
New related observation (non-blocking, pre-existing, not introduced by this PR): that same file, CI status: all checks for this new commit are still pending/in-progress at review time (pushed minutes ago) — no Android build-leg result yet to confirm the |
|
Claude finished @MartinZikmund's task in 1m 7s —— View job Claude's review of PR #24379
Verdict: ✅ Ship — no new inline findings. What's new since the last pass: a third commit, Risk assessment: Not re-litigated (unchanged from prior reviews, already flagged and still standing):
CI status at time of review: GitHub Actions checks for the new push are still in progress (no failures yet); the external Azure DevOps build for this push hasn't reported back in this thread yet. As before, the Android build legs are the real gate for a binding-version change like this — worth confirming green before merge. Commit message ( |
There was a problem hiding this comment.
🔵 Needs a closer look
Android binding/package alignment changes can fail at Android build/runtime and need CI validation across Android legs before safely approving.
Pull request overview
This PR aligns AndroidX and Material binding package versions across net10.0-android and net11.0-android to avoid version drift between TFMs and better match what the Uno SDK manifest ships to consumers.
Changes:
- Updated AndroidX package pins in
src/Directory.Build.targetsto the same versions for bothnet10.0-androidandnet11.0-android. - Bumped
Xamarin.Google.Android.Materialin SamplesApp and unifiedXamarin.AndroidX.Window.WindowJavain the Foldable add-in. - Simplified Android accessibility helper code by removing TFM-conditional compilation around AndroidX API differences.
File summaries
| File | Description |
|---|---|
| src/Uno.UI.Runtime.Skia.Android/Accessibility/UnoExploreByTouchHelper.cs | Removes TFM-conditional code paths for OnPopulateNodeForVirtualView and uses a single labeled-by API call. |
| src/SamplesApp/SamplesApp/SamplesApp.csproj | Bumps Xamarin.Google.Android.Material to 1.14.0.6 for the Android head. |
| src/Directory.Build.targets | Aligns AndroidX package version pins between net10.0-android and net11.0-android. |
| src/AddIns/Uno.UI.Foldable/Uno.UI.Foldable.netcoremobile.csproj | Unifies Xamarin.AndroidX.Window.WindowJava to 1.5.1.3 across Android TFMs. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24379/wasm-skia-net9/index.html |
|
The build 232918 found UI Test snapshots differences: Details
|
|
|
morning4coffe-dev
left a comment
There was a problem hiding this comment.
Reviewed af588c661e44, including the accessibility guard removal as well as the package changes.
Compile/link evidence: a focused net10.0-android / android-arm64 APK probe using all nine relevant core, SamplesApp and Foldable binding pins built with zero warnings/errors. I checked each requested and resolved version against this head. The resulting graph includes AndroidX.Core 1.19.0.1 and CustomView 1.2.0.4; the nullable OnPopulateNodeForVirtualView override and AddLabeledBy(View, int) both compiled against those actual assemblies. The signed APK contains its manifest and two DEX files.
Importantly, this core SDK already defaults Android to API 24. That differs from the older private SDK bundled by uno.templates #2246, whose API-21 default caused the separately reported manifest-merge regression. I did not carry that finding over to this PR, and approving this core change does not clear the templates PR's outstanding integration requirement.
The identical net10/net11 package blocks and Foldable pins were inspected; collapsing the duplicate conditions is a reasonable non-blocking cleanup. Other reviewers' threads were left unchanged.
Validation limits: this was an exact-pin binding/API build-and-link probe, not the complete Uno core build, a net11 SDK build, or device accessibility execution. CI and the normal conversation/review merge gates still apply.
af588c6 to
4995e3f
Compare
|
Claude finished @MartinZikmund's task in 59s —— View job Claude's review of PR #24379
Verdict: ✅ Ship — no inline findings on this pass. What's new since the last review: commit Findings: 0
Not re-litigated (already covered and unaffected by this commit):
CI status: all GitHub Actions checks for this push are still in progress (none failed); no new Azure DevOps Android-leg result has reported yet for this commit. As called out in every prior pass, the Android build/runtime legs are the real gate for a binding-version change like this. |
|
The build 234143 found UI Test snapshots differences: Details
|
Core pins AndroidX in two TFM-conditional blocks in src/Directory.Build.targets, and the net10.0-android one had rotted: it still carried AppCompat 1.7.0.7, SplashScreen 1.0.1.16, RecyclerView 1.4.0.2, LiveData 2.8.7.4 and SwipeRefreshLayout 1.1.0.28, while the net11.0-android block next to it had moved on. Two blocks, one updated, the other left behind - which is exactly how the drift happened. Both blocks now carry the same versions as the Uno.Sdk manifest sweep in uno.templates#2246, so core builds against what apps will resolve. Every overlapping package was cross-checked between the two repos: AppCompat, Browser, Core.SplashScreen, RecyclerView, SwipeRefreshLayout and Material now agree exactly. SamplesApp's Material moves 1.14.0.5 -> 1.14.0.6, and Uno.UI.Foldable's Window.WindowJava is unified on 1.5.1.3 across both TFM blocks. Every version was verified to ship a net10.0-android36.0 lib, so none of this is blocked by binding TFM support - core was simply behind. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6
The two `#if NET11_0_OR_GREATER` blocks in UnoExploreByTouchHelper were never about the TFM - they were a proxy for "which AndroidX.Core binding does this leg resolve". Only net11.0-android reached Core 1.17, so net10 kept the non-nullable `OnPopulateNodeForVirtualView` override and the pre-deprecation `SetLabeledBy`. Aligning AppCompat to 1.8.0 on net10.0-android pulls the same Core 1.17 binding into that leg, so both `#else` branches became wrong at once: CS8765 for the nullability mismatch on the override, CS0618 for the now obsolete `SetLabeledBy`. Both TFMs compile against the same binding now, so the guards go and the 1.17 form stays. SamplesApp only builds $(NetCurrent)-android, which is net11.0, so this surfaced solely in the cross-targeted managed-binaries build. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015KeL6xECvqeLPEzY2Aiddv
DocumentFile was the one AndroidX binding left diverging between the net10.0-android and net11.0-android groups (1.0.1.33 vs 1.1.0.4). It arrived in 42e21c9, which pinned whatever each TFM already resolved rather than picking a version, so the split carried no intent. 1.1.0.4 ships net10.0-android36.0 assets, so both groups can share it. The two AndroidX groups are now identical. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MmoGiAqxB74J2xwvHz2qqu
The net10.0-android and net11.0-android blocks now pin identical versions, so keep a single Android-wide block in Directory.Build.targets and in Uno.UI.Foldable. Two copies are how the versions drifted apart. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Hdrs4BnVJR4tkHrb1YMppc
Core now builds against AppCompat 1.8.0, RecyclerView 1.4.0.6, SplashScreen 1.2.0.3 and SwipeRefreshLayout 1.2.0.3 on both Android TFMs, but the embedded Uno.Sdk manifest still pinned the older net10 bindings. An app's implicit reference below the floor a core package declares is an NU1605 downgrade error. Move those groups, and Material 1.14.0.6, to the core versions for every TFM. Material 1.14.0.6 requires Activity >= 1.13.0.1 and, through AndroidX.Core 1.19, Collection >= 1.6.0.1, so those groups move to their net11 versions as well. validate-packages-json.ps1 reports both pin sets as coherent. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Hdrs4BnVJR4tkHrb1YMppc
Co-authored-by: MartinZikmund <[email protected]>
Co-authored-by: MartinZikmund <[email protected]>
Uno.WinRT, SamplesApp, Uno.UI.Foldable and Uno.UI.GooglePlay pinned their Android binding versions inline. Those pins now live only in the Android block of src/Directory.Build.targets, next to the other AndroidX pins. Uno.UI.GooglePlay moves to Play.Core 1.10.3.21 on both Android TFMs. It was 1.10.3.18 on net10.0-android, and 1.10.3.21 ships a net10.0-android36.0 asset. The Lifecycle.LiveData and SwipeRefreshLayout Update items are removed. No project references either package, so they changed nothing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01V8NDGTu5zEnZakiEsRuJV3
968e1b5 to
249eaa0
Compare
|
Claude finished @MartinZikmund's task in 2m 54s —— View job Claude's review of PR #24379
Verdict: ✅ ShipNo new inline findings on this pass. The two newest commits (
Not re-litigated (unchanged, already covered by CI/prior review evidence):
CI status: all GitHub Actions checks for this push ( |
The public-reference rules in AGENTS.md were written for committed specs and docs, but their wording also read as a ban on private links in pull requests. They now say explicitly that they apply to files committed to the repo. PR descriptions and comments may link private issues, pull requests and repositories. A PR's associated issue may live in a private repository, linked in owner/repo#N form, which matches the PR template's "GitHub issue or internal" guidance. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01V8NDGTu5zEnZakiEsRuJV3
|
Claude finished @MartinZikmund's task in 3m 0s —— View job Claude's review of PR #24379
Verdict: ✅ Ship — no inline findings on this pass. What's new since the last review: three commits landed in response to Copilot's outstanding threads, cleanly closing every gap that was previously flagged:
Not re-litigated (already covered and unaffected by this push): the Cross-cutting note (non-blocking): the branch also carries a CI status at review time: all GitHub Actions checks for this push are still in progress (none failed yet); no Azure DevOps Android-leg result has reported for this commit. As in every prior pass, the Android build/runtime legs remain the real gate for a binding-version change like this. |
🤖 Addressed PR comments up to this pointThe branch is rebased on the latest
|
There was a problem hiding this comment.
🟡 Changes recommended
Restore the missing Lifecycle.LiveData and SwipeRefreshLayout pins in src/Directory.Build.targets.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 1
- Review effort level: Lite
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24379/wasm-skia-net9/index.html |
morning4coffe-dev
left a comment
There was a problem hiding this comment.
Follow-up reviewed exact head 8a8c34e780911852d4bde81525ecef892600989a against approved 968e1b5abea499500e7265d0d5dd31a83f4e8332. The centralized Android package versions preserve Android-only target selection, dependency floors, and Uno.Sdk public override properties. Relevant exact-head Setup Validations, Android build, Managed Binaries, and Android+NativeAOT checks pass. No significant issue found.
morning4coffe-dev
left a comment
There was a problem hiding this comment.
Re-reviewed the exact current head. The latest AndroidX/Material delta preserves package mappings, target-specific overrides, dependency floors and build compatibility. No significant issue found.
|
The request to move package versions out of project files is taken further in #24537, which is stacked on this PR. It moves every version under |
|
The build 234203 found UI Test snapshots differences: Details
|
GitHub Issue: closes #24535
PR Type:
✨ Feature (dependency alignment)
What changed? 🚀
Core pins AndroidX in two TFM-conditional blocks in
src/Directory.Build.targets, and thenet10.0-androidone had rotted while thenet11.0-androidblock beside it moved on:AppCompatCore.SplashScreenRecyclerViewDocumentFilePlus
SamplesAppMaterial 1.14.0.5 → 1.14.0.6, andUno.UI.Foldable'sWindow.WindowJavaunified on 1.5.1.3 (it was 1.3.0.7 on net10 and 1.5.1.2 on net11).Two copies of the same pins are how this drifted apart. Every version here ships the same lib TFMs, so the split no longer did anything, and it has been collapsed into one Android-wide block (
GetTargetPlatformIdentifier(TargetFramework) == 'android').Uno.UI.Foldablegot the same treatment. A per-TFM split should come back only when a binding needs a newer .NET for Android.Xamarin.AndroidX.DocumentFilewas the last pin that still differed (1.0.1.33 on net10). It is now 1.1.0.4 on both.The block used to pin
Lifecycle.LiveDataandSwipeRefreshLayouttoo. No project references either package, so thoseUpdateitems changed nothing, and they have been removed.Versions out of project files
Some Android bindings were pinned inline in project files, with the version differing per TFM in places:
Uno.WinRTAndroidX.BrowserUno.UI.FoldableAndroidX.Window.WindowJavaUno.UI.GooglePlayGoogle.Android.Play.CoreSamplesAppAndroidX.Browser,Core.SplashScreen,Google.Android.MaterialThese pins now live only in the Android block of
src/Directory.Build.targets, and the projects reference the packages without a version.Play.Core 1.10.3.21ships anet10.0-android36.0asset.Agent instructions
AGENTS.md's public-reference rules now say explicitly that they cover committed files. Pull requests may link private issues, pull requests and repositories, and a PR's associated issue may be a private-repo issue linked asowner/repo#N.Uno.Sdk manifest
The
Uno.Sdkthat ships from this repo carries its ownsrc/Uno.Sdk/packages.json, and it still pinned the older net10 bindings. That is a hard failure, not just drift: core packages now declareAppCompat >= 1.8.0, so an app's implicitAppCompat 1.7.1.xreference would fail restore with NU1605 (package downgrade). The manifest groups now match core on every TFM, and thenet11.0overrides that became identical are dropped:AndroidXAppCompatAndroidXSplashScreenAndroidXRecyclerViewAndroidXSwipeRefreshLayoutAndroidMaterialAndroidXActivityAndroidXCollectionActivityandCollectionmoved becausevalidate-packages-json.ps1required it: Material 1.14.0.6 needsActivity >= 1.13.0.1, and through AndroidX.Core 1.19.0.1 it needsCollection >= 1.6.0.1. The validator passes for both pin sets. It also passes when core's other shipped floors (DocumentFile,Window.WindowJava) are added as extra pins.Why now
uno.templates#2246sweeps theUno.Sdkmanifest's AndroidX groups. Without this PR, core would build against older bindings than apps resolve at runtime — the manifest would ship AppCompat 1.8.0 to customers while core validated against 1.7.0.7.Every overlapping package was cross-checked between the two repos after the change, and all six agree exactly:
AppCompat,Browser,Core.SplashScreen,RecyclerView,SwipeRefreshLayout,Material.Window.WindowJavais core-only and was taken to current.Validation
Package metadata verified, not inferred. Each target version was checked on nuget.org for its lib TFMs —
AppCompat 1.8.0,Material 1.14.0.6,RecyclerView 1.4.0.6,Activity 1.13.0.1,LiveData 2.11.0.1andWindowJava 1.5.1.3all shipnet10.0-android36.0(andnet9.0-android35.0). So nothing here is blocked by binding TFM support; core was simply behind.dotnet msbuild -getItem:PackageReferencewas compared before and after moving the versions out of the project files, forUno.WinRT,Uno.UI.Foldable,Uno.UI.GooglePlay,SamplesAppandUno.UI.Runtime.Skia.Androidon both Android TFMs. The only difference is the intendedPlay.Corebump on net10, andUno.UI.GooglePlaybuilds fornet10.0-androidwith no warnings or errors.No Android app was built locally. Java/AndroidX misalignment is precisely the failure mode that surfaces at Android build or runtime rather than restore, and it is why the SDK updater refuses to move these packages automatically. The Android CI legs are the gate for this PR, and if they go red the right response is to bisect the set rather than lower individual versions.
PR Checklist ✅
Screenshots Compare Test Runresults.Breaking change: yes for Android consumers — a coordinated binding bump. Intentional for 7.0, and paired with uno.templates#2246.
🤖 Generated with Claude Code
https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6