Skip to content

feat!: Align the AndroidX and Material bindings - #24379

Merged
MartinZikmund merged 9 commits into
masterfrom
dev/mazi/androidx-core-align
Sep 17, 2026
Merged

MartinZikmund merged 9 commits into
masterfrom
dev/mazi/androidx-core-align

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

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 the net10.0-android one had rotted while the net11.0-android block beside it moved on:

Package net10 was net11 was both now
AppCompat 1.7.0.7 1.7.1.4 1.8.0
Core.SplashScreen 1.0.1.16 1.2.0.3 1.2.0.3
RecyclerView 1.4.0.2 1.4.0.6 1.4.0.6
DocumentFile 1.0.1.33 1.1.0.4 1.1.0.4

Plus SamplesApp Material 1.14.0.5 → 1.14.0.6, and Uno.UI.Foldable's Window.WindowJava unified 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.Foldable got the same treatment. A per-TFM split should come back only when a binding needs a newer .NET for Android.

Xamarin.AndroidX.DocumentFile was 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.LiveData and SwipeRefreshLayout too. No project references either package, so those Update items 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:

Project Package net10 was net11 was now
Uno.WinRT AndroidX.Browser 1.0.0 1.10.0 1.10.0.1
Uno.UI.Foldable AndroidX.Window.WindowJava 1.3.0.7 1.5.1.2 1.5.1.3
Uno.UI.GooglePlay Google.Android.Play.Core 1.10.3.18 1.10.3.21 1.10.3.21
SamplesApp AndroidX.Browser, Core.SplashScreen, Google.Android.Material unchanged

These 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.21 ships a net10.0-android36.0 asset.

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 as owner/repo#N.

Uno.Sdk manifest

The Uno.Sdk that ships from this repo carries its own src/Uno.Sdk/packages.json, and it still pinned the older net10 bindings. That is a hard failure, not just drift: core packages now declare AppCompat >= 1.8.0, so an app's implicit AppCompat 1.7.1.x reference would fail restore with NU1605 (package downgrade). The manifest groups now match core on every TFM, and the net11.0 overrides that became identical are dropped:

Group net10 was net11 was both now
AndroidXAppCompat 1.7.1.1 1.7.1.4 1.8.0
AndroidXSplashScreen 1.0.1.14 1.2.0.3 1.2.0.3
AndroidXRecyclerView 1.4.0.5 1.4.0.6 1.4.0.6
AndroidXSwipeRefreshLayout 1.2.0.2 1.2.0.3 1.2.0.3
AndroidMaterial 1.12.0.5 1.14.0.5 1.14.0.6
AndroidXActivity 1.12.4.1 1.13.0.1 1.13.0.1
AndroidXCollection 1.5.0.5 1.6.0.1 1.6.0.1

Activity and Collection moved because validate-packages-json.ps1 required it: Material 1.14.0.6 needs Activity >= 1.13.0.1, and through AndroidX.Core 1.19.0.1 it needs Collection >= 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#2246 sweeps the Uno.Sdk manifest'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.WindowJava is 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.1 and WindowJava 1.5.1.3 all ship net10.0-android36.0 (and net9.0-android35.0). So nothing here is blocked by binding TFM support; core was simply behind.

dotnet msbuild -getItem:PackageReference was compared before and after moving the versions out of the project files, for Uno.WinRT, Uno.UI.Foldable, Uno.UI.GooglePlay, SamplesApp and Uno.UI.Runtime.Skia.Android on both Android TFMs. The only difference is the intended Play.Core bump on net10, and Uno.UI.GooglePlay builds for net10.0-android with 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 ✅

  • 🧪 Added Runtime tests (n/a — dependency alignment)
  • 📚 Docs
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests

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

@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 57s —— View job


Claude's review of PR #24379

  • Gather context (PR diff, AGENTS.md rules)
  • Understand the request (code review against AGENTS.md)
  • Review src/Directory.Build.targets version pins
  • Review Uno.UI.Foldable.netcoremobile.csproj change
  • Review SamplesApp.csproj change
  • Check for inline findings
  • Post summary

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

  • The two net10.0-android / net11.0-android ItemGroups in src/Directory.Build.targets are now byte-identical, matching the PR's stated goal.
  • Uno.UI.Foldable.netcoremobile.csproj's Window.WindowJava is unified at 1.5.1.3 on both TFM blocks.
  • SamplesApp.csproj's Material bump (1.14.0.5 → 1.14.0.6) is a simple patch bump, no other content affected.
  • Most of the standard review checklist (DependencyProperty correctness, async/cancellation, XAML/theming, SOLID, test coverage, allocations) doesn't apply — this touches only MSBuild package-version pins, no C#/XAML logic.
  • Commit/PR title (feat!: ...) correctly uses Conventional Commits with the breaking-change marker, and the PR checklist correctly leaves "no breaking changes" unchecked and "tests" marked n/a for a pure version bump.

Cross-cutting concern (not blocking, worth a follow-up issue)
The exact drift pattern this PR fixes for AppCompat/RecyclerView/etc. still exists, unaddressed, for Xamarin.AndroidX.Browser:

  • src/Uno.WinRT/Uno.WinRT.netcoremobile.csproj:39 pins Browser to 1.0.0 on net10.0-android, while src/Uno.WinRT/Uno.WinRT.netcoremobile.csproj:44 pins it to 1.10.0 on net11.0-android — and neither matches SamplesApp.csproj's 1.10.0.1 (untouched, but the PR body claims Browser "agrees exactly" across the two repos, which isn't true for this file).
  • These are hardcoded Include="..." Version="..." references rather than routed through the centralized Directory.Build.targets Update= mechanism this PR relies on — so they're invisible to the alignment sweep and will drift again exactly the same way AppCompat did.
  • Worth a fast-follow to move Browser onto the central pin (or at least align the two TFM blocks) rather than expanding this PR's scope.

On the duplicated ItemGroup blocks: the PR description already flags that the two conditional blocks in Directory.Build.targets are now identical and asks the reviewer to weigh in on collapsing them. I don't see a functional reason to keep them split given every value matches, but I'd defer to the author/maintainers on whether the split is intentionally kept for future Java-alignment divergence — this is a judgment call, not a defect.

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.

@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Sep 3, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia labels Sep 4, 2026
@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 53s —— View job


Claude's review of PR #24379

  • Gather context (PR diff, AGENTS.md rules)
  • Review src/Directory.Build.targets version pins
  • Review Uno.UI.Foldable.netcoremobile.csproj change
  • Review SamplesApp.csproj change
  • Review UnoExploreByTouchHelper.cs change (new since last review)
  • Post inline findings
  • Post summary

Verdict: ✅ Ship, with one item to confirm before merge — this update adds a second commit (fix(android): Drop the NET11 guards...) on top of the previously-reviewed version-alignment commit. It's a coherent, mechanical follow-up.

Findings: 1 informational (non-blocking)

The inline comment on UnoExploreByTouchHelper.cs:174 flags that removing the NET11_0_OR_GREATER compile guards (unifying on AddLabeledBy/nullable-param OnPopulateNodeForVirtualView) is correct only if net10.0-android now transitively resolves the same AndroidX.Core version as net11.0-android, now that AppCompat is pinned to 1.8.0 on both TFMs. The reasoning is plausible — this same file already carries a precedent for exactly this kind of AndroidX.Core 1.17 API drift (the SetChecked JNI workaround referencing #22999) — but it isn't independently verifiable from the diff alone (no NuGet restore/Android build available in this review environment). Any mismatch would fail the net10.0-android compile outright rather than cause a silent runtime bug, so it should self-report via CI; at review time the Android CI legs hadn't reported yet, so worth explicitly confirming that leg is green (not just net11) before merging.

Not re-litigated: the version-pin table, the duplicated ItemGroup blocks question, and the Xamarin.AndroidX.Browser drift in Uno.WinRT.netcoremobile.csproj were already covered by the prior automated review on this PR and are unchanged by this push.
· Branch

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 232095 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • ClipboardTests.png-dark
    • ImageIconPage.png-dark
    • Buttons.png-dark
    • Buttons.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • Focus_FocusVisual_Properties.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
  • skia-windows-screenshots: 2310 changed over 2402

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png
    • ApplicationViewSpanningRectsPage.png
    • AuthenticationBroker_Demo.png-dark
    • AutomationProperties_AutomationId.png-dark
    • AutoSuggestBox_Reason.png-dark
    • BasicThemeResources.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • BorderTopwithmargins.png-dark
    • Border_AntiAlias.png-dark
    • Border_AntiAlias.png
    • Border_CornerRadius_Toggle.png-dark
    • Border_CornerRadius_Toggle.png
    • Border_With_Off_Centre_RotateTransform.png
    • Border_With_Off_Centre_ScaleTransform.png-dark
    • Button_Inside_Border.png-dark
    • Button_Inside_Border.png
    • Canvas_In_Canvas.png
    • Canvas_With_Outer_Clip.png-dark
    • Clipping4273.png-dark
    • Clipping4273.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Uno_Web.Http.CookieManagerTests

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 232095 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/androidx-core-align branch from 71638b0 to b4fec1a Compare September 10, 2026 06:38
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 11s —— View job


Claude's review of PR #24379

  • Gather context (PR diff, AGENTS.md rules)
  • Understand the request (code review against AGENTS.md)
  • Review src/Directory.Build.targets version pins
  • Review Uno.UI.Foldable.netcoremobile.csproj change
  • Review SamplesApp.csproj change
  • Review UnoExploreByTouchHelper.cs change
  • Check CI status
  • Post inline findings
  • Post summary

Verdict: ✅ Ship — no new commits since the last automated pass on this PR (HEAD is still b4fec1a0 / 9fa6f7f3, the same two commits already reviewed). The diff is unchanged, so there's nothing new to flag.

Findings: 0 new (no inline comments posted this pass)

Everything from the earlier reviews still holds and isn't being re-litigated here:

  • The net10.0-android / net11.0-android ItemGroups in src/Directory.Build.targets are now identical, matching the PR's stated goal — versions verified against the diff.
  • Uno.UI.Foldable.netcoremobile.csproj's Window.WindowJava is unified at 1.5.1.3.
  • SamplesApp.csproj's Material bump (1.14.0.5 → 1.14.0.6) is a simple patch bump.
  • UnoExploreByTouchHelper.cs: the NET11_0_OR_GREATER guard removal (unifying on AddLabeledBy / nullable-param OnPopulateNodeForVirtualView) is correct if net10.0-android now resolves the same AndroidX.Core transitive version as net11.0-android post-AppCompat 1.8.0 pin — this is already flagged as an existing inline comment on this PR and is a compile-time coupling (a mismatch fails the net10.0-android build outright, so CI is the gate).
  • Xamarin.AndroidX.Browser drift in Uno.WinRT.netcoremobile.csproj (hardcoded per-TFM versions, not routed through the central Directory.Build.targets pin) remains unaddressed — still a good fast-follow candidate, out of scope for this PR.

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.
· Branch

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 232897 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • DisplayInformation.png-dark
    • ExpanderColorValidationPage.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png
    • AppBar_KeyBoard.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowPresenters.png-dark
    • ArcSegment.png
    • AutoBorderStretchwithbottommargin.png-dark
    • AutoBorderStretchwithrightmargin.png
    • AutoSizedPathCentered.png-dark
    • AutoSuggestBox_Description.png
    • AutoSuggestBox_Icons.png-dark
    • BackGesture.png-dark
    • BackGesture.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • BeginTime_MultipleAnimations.png-dark
    • BeginTime_MultipleAnimations.png
    • BindableDrawerLayout_ChangePane.png-dark
    • BindableDrawerLayout_ChangePane.png
    • BitmapIcon_Monochromatic.png-dark
    • BitmapIcon_Monochromatic.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 12s —— View job


Claude's review of PR #24379

  • Gather context (PR diff, AGENTS.md rules)
  • Review new commit af588c66 ("Align DocumentFile across both Android TFMs")
  • Review previously-covered files for any changes
  • Check CI status
  • Post inline findings (none new)
  • Post summary

Verdict: ✅ Ship — the new commit (af588c66) is a clean, mechanical completion of the alignment work already reviewed on this PR.

Findings: 0 new (no inline comments posted this pass)

What changed since the last review: a single line in src/Directory.Build.targets — Xamarin.AndroidX.DocumentFile on the net10.0-android block moves 1.0.1.33 → 1.1.0.4, matching what net11.0-android already pinned. This was the last package where the two TFM blocks still disagreed; with this change, every PackageReference Update in the two blocks (AppCompat, Core.SplashScreen, DocumentFile, RecyclerView, Lifecycle.LiveData, SwipeRefreshLayout) is now byte-for-byte identical. That reinforces the "should these two ItemGroups be collapsed into one?" question raised earlier in the PR description and prior reviews — still a judgment call for the author/maintainers, not a defect.

Not re-litigated (unchanged by this commit, already covered in earlier passes on this PR):

  • The UnoExploreByTouchHelper.cs NET11_0_OR_GREATER guard removal — correctness is coupled to AndroidX.Core resolving identically across TFMs post-AppCompat 1.8.0; a mismatch would fail the net10.0-android compile, so CI is the gate.
  • The Xamarin.AndroidX.Browser drift in src/Uno.WinRT/Uno.WinRT.netcoremobile.csproj (hardcoded per-TFM Include/Version, not routed through the central pin) — still an open fast-follow candidate, out of scope here.

New related observation (non-blocking, pre-existing, not introduced by this PR): that same file, src/Uno.WinRT/Uno.WinRT.netcoremobile.csproj:37-46, only declares an explicit PackageReference Include="Xamarin.AndroidX.DocumentFile" in the net11.0-android block — there's no matching entry in the net10.0-android block above it. Uno.WinRT's SAF storage code (StorageFile.saf.Android.cs, StorageFolder.saf.Android.cs, SafHelpers.Android.cs) uses AndroidX.DocumentFile.Provider unconditionally across both TFMs, so if this doesn't already resolve transitively for net10.0-android, that build would fail. This asymmetry predates this PR (landed in 1af4b902) and isn't something af588c66 touches, but it's the exact same "explicit Include+Version outside the central alignment mechanism" pattern already flagged for Browser — worth folding into the same fast-follow rather than treating as a new issue here.

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 net10.0-android compile referenced above.
· Branch

@MartinZikmund
MartinZikmund marked this pull request as ready for review September 10, 2026 09:28
Copilot AI lite review requested due to automatic review settings September 10, 2026 09:28
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 7s —— View job


Claude's review of PR #24379

  • Gather context (PR diff, AGENTS.md rules)
  • Identify new commit since last review (af588c66)
  • Review src/Directory.Build.targets DocumentFile version change
  • Cross-check DocumentFile usage sites for API-surface risk
  • Check CI status
  • Post summary

Verdict: ✅ Ship — no new inline findings.

What's new since the last pass: a third commit, af588c66 ("feat(android)!: Align DocumentFile across both Android TFMs"), bumps Xamarin.AndroidX.DocumentFile on net10.0-android from 1.0.1.33 to 1.1.0.4, matching the value already in place on net11.0-android. This was the one package left un-aligned after the first two commits; the two ItemGroups in src/Directory.Build.targets (lines 203–219) are now fully byte-identical across every package, which resolves the drift concern flagged in the earlier reviews on this PR.

Risk assessment: DocumentFile is consumed in production (not just test) code — StorageFile.saf.Android.cs, StorageFolder.saf.Android.cs, SafHelpers.Android.cs — so a binding version bump here isn't inert. However, since net11.0-android has already been building/running against 1.1.0.4, this change only extends an already-exercised version to the second TFM rather than introducing an unvalidated one, so the incremental risk is low. I was not able to independently pull the nuget.org package metadata to re-verify the net10.0-android36.0 lib-TFM claim in the commit message (no outbound web-fetch permission in this session), consistent with the same limitation noted on earlier passes.

Not re-litigated (unchanged from prior reviews, already flagged and still standing):

  • The UnoExploreByTouchHelper.cs NET11_0_OR_GREATER guard removal is still coupled to AppCompat/AndroidX.Core resolving identically per TFM — a mismatch would fail the net10.0-android compile, so CI is the gate.
  • Xamarin.AndroidX.Browser drift in Uno.WinRT.netcoremobile.csproj (hardcoded per-TFM versions bypassing the central Directory.Build.targets pin) remains unaddressed — good fast-follow candidate, out of scope here.

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 (feat(android)!: Align DocumentFile across both Android TFMs) follows Conventional Commits with the breaking-change marker, consistent with the rest of the PR.
· Branch

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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.targets to the same versions for both net10.0-android and net11.0-android.
  • Bumped Xamarin.Google.Android.Material in SamplesApp and unified Xamarin.AndroidX.Window.WindowJava in 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.

Comment thread src/Directory.Build.targets Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 232918 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • DisplayInformation.png-dark
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AppBarButtonWithIconTest.png
    • ApplicationViewSizing.png
    • AppWindowPositionAndSize.png-dark
    • AppWindowTitleBar Properties.png
    • Attributed_text_FontSize_Changing.png-dark
    • AuthenticationBroker_Demo.png
    • AutoBorderStretchwithrightmargin.png
    • AutoSizedPathCentered.png-dark
    • AutoSizedPathCentered.png
    • AutoSuggestBox_SoftKeboard.png-dark
    • AutoSuggestBox_SoftKeboard.png
    • Basics_Automated.png-dark
    • Basics_Automated.png
    • BezierSegment.png-dark
    • BezierSegment.png
    • BitmapIcon_Monochromatic.png-dark
    • BitmapIcon_Monochromatic.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • BitmapImage_vs_SvgImageSource.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 232918 has failed on Uno.UI - CI.

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot AI review requested due to automatic review settings September 16, 2026 14:06
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/androidx-core-align branch from af588c6 to 4995e3f Compare September 16, 2026 14:06
@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 59s —— View job


Claude's review of PR #24379

  • Gather context (PR diff, AGENTS.md rules)
  • Review new commit 4995e3fd ("Collapse the per-TFM AndroidX pins")
  • Cross-check Directory.Build.targets collapse for correctness
  • Cross-check Uno.UI.Foldable.netcoremobile.csproj collapse
  • Check CI status
  • Post inline findings (none — see below)
  • Post summary

Verdict: ✅ Ship — no inline findings on this pass.

What's new since the last review: commit 4995e3fd collapses the two now-identical per-TFM ItemGroups (net10.0-android / net11.0-android) into a single Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' " block, in both src/Directory.Build.targets:205 and src/AddIns/Uno.UI.Foldable/Uno.UI.Foldable.netcoremobile.csproj:32. This is exactly the cleanup that the PR description, Copilot, and morning4coffe-dev all flagged as worth doing once every pin matched — it's now done.

Findings: 0

  • GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' is the established repo convention for TFM-family conditions (already used identically in src/Directory.Build.props:178 for IsAndroid, and dozens of other places across Uno.Sdk/Uno.Common.targets) — not a novel pattern, so no MSBuild-behavior risk.
  • No version numbers changed in this commit — purely a structural collapse, so it doesn't reopen the version-alignment questions already settled and verified in earlier reviews/comments on this PR.
  • The added comment (Shared by every Android TFM; only split per TFM when a binding requires a newer .NET for Android) documents the intended escape hatch for future legitimate divergence, addressing the "two blocks is how this drifted" root cause called out in the PR body.
  • Uno.UI.Foldable's block collapse mirrors the same pattern 1:1.

Not re-litigated (already covered and unaffected by this commit):

  • The UnoExploreByTouchHelper.cs NET11_0_OR_GREATER guard removal — correctness is coupled to AndroidX.Core resolving identically per TFM; a mismatch fails the net10.0-android compile, so CI is the gate. morning4coffe-dev's approval already reports a successful net10.0-android/arm64 build/link probe against this exact commit range confirming the resolved graph compiles.
  • Xamarin.AndroidX.Browser drift in src/Uno.WinRT/Uno.WinRT.netcoremobile.csproj (hardcoded per-TFM versions, not routed through the central pin) remains unaddressed — still an open fast-follow candidate, out of scope for this PR.

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.
· Branch

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 234143 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Focus_FocusVisual_Properties.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • Examples.png-dark
    • Examples.png
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AppBarButtonTest.png
    • ApplicationViewSizing.png-dark
    • AppWindowFeatures.png-dark
    • AppWindowTitleBar Properties.png
    • Attributed_text_FontSize_Changing.png-dark
    • AuthenticationBroker_Demo.png
    • AutoBorderStretchwithtopmargin.png
    • AutomationProperties_Name.png
    • AutoSizedPathCentered.png-dark
    • AutoSuggestBox_SoftKeboard.png
    • BackGesture.png-dark
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • Battery.png-dark
    • Battery.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • BitmapIcon_Monochromatic.png
    • BitmapIcon_Sizing.png-dark
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation
    • UITests.Uno_Web.Http.CookieManagerTests

MartinZikmund and others added 8 commits September 17, 2026 08:24
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
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
Copilot AI review requested due to automatic review settings September 17, 2026 06:39
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/androidx-core-align branch from 968e1b5 to 249eaa0 Compare September 17, 2026 06:39
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 54s —— View job


Claude's review of PR #24379

  • Gather context (PR diff, AGENTS.md rules)
  • Review src/Directory.Build.targets collapse + pin changes
  • Review Uno.Sdk/packages.json manifest changes
  • Review Uno.WinRT.netcoremobile.csproj Browser/DocumentFile alignment
  • Review Uno.UI.Foldable / Uno.UI.GooglePlay csproj collapses
  • Review UnoExploreByTouchHelper.cs guard removal
  • Check CI status
  • Post inline findings (none — see below)
  • Post summary

Verdict: ✅ Ship

No new inline findings on this pass. The two newest commits (2083b618 "align remaining AndroidX pins" and 249eaa0d "Move binding versions out of project files") resolve every open item from the prior review rounds on this PR:

  • Browser drift (Xamarin.AndroidX.Browser split 1.0.0/1.10.0 in Uno.WinRT.netcoremobile.csproj, mismatched with the manifest) — fixed. Uno.WinRT now has a single Android-wide ItemGroup with an unversioned Include, resolving 1.10.0.1 from the central Update pin in Directory.Build.targets:207, which matches packages.json's AndroidXBrowser group exactly.
  • DocumentFile missing on net10 in Uno.WinRT — fixed; now a single unversioned Include shared by both TFMs.
  • No-op Update pins — I independently grepped the whole repo and confirmed Xamarin.AndroidX.Lifecycle.LiveData and Xamarin.AndroidX.SwipeRefreshLayout have no direct PackageReference Include anywhere in src/, so the Update items for them in Directory.Build.targets were dead code. 249eaa0d removes both, with a commit message that states this explicitly — correct call, matching Copilot's earlier finding.
  • Duplicated per-TFM ItemGroups in Uno.WinRT, SamplesApp, Uno.UI.Foldable, and now also Uno.UI.GooglePlay — all collapsed to a single GetTargetPlatformIdentifier(...) == 'android' block with unversioned Includes, consistent with the repo's central-pin convention (Directory.Build.targets Update items, per .claude/rules/build-system.md).
  • Xamarin.Google.Android.Play.Core split (1.10.3.18 net10 / 1.10.3.21 net11 in Uno.UI.GooglePlay) — aligned to 1.10.3.21 on both, moved to the central pin.
  • packages.json groups — verified every AndroidX/Material group (AppCompat, SplashScreen, RecyclerView, Activity, Browser, SwipeRefreshLayout, Leanback, CarApp, Wear, WearTiles, Navigation, Collection) is now a single version with no net11.0 override, matching Directory.Build.targets where applicable.

Not re-litigated (unchanged, already covered by CI/prior review evidence):

  • UnoExploreByTouchHelper.cs's NET11_0_OR_GREATER guard removal — per commit 198ea20d's own explanation, this unifies net10 onto the AddLabeledBy/nullable-param behavior net11.0-android already shipped in production; CI (build 232918) and morning4coffe-dev's build/link probe already confirmed net10.0-android compiles against the resulting AndroidX.Core 1.19.0.1 graph.
  • Copilot's AddLabeledBy vs SetLabeledBy minSdk-24 concern is about behavior that already existed on net11.0-android before this PR (not newly introduced) — worth a follow-up if it's a real TalkBack regression, but out of scope for a dependency-alignment PR.

CI status: all GitHub Actions checks for this push (249eaa0d) are in progress, none failed yet. As in every prior pass, the external Azure DevOps Android build legs are the real gate for a binding-version change like this and haven't reported for this commit yet.
· Branch

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
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 3m 0s —— View job


Claude's review of PR #24379

  • Gather context (PR diff, AGENTS.md rules)
  • Review src/Directory.Build.targets collapse + pin changes
  • Review Uno.Sdk/packages.json manifest changes
  • Review Uno.WinRT.netcoremobile.csproj Browser/DocumentFile alignment
  • Review Uno.UI.Foldable / Uno.UI.GooglePlay csproj collapses
  • Review UnoExploreByTouchHelper.cs guard removal
  • Check CI status
  • Post inline findings (none — see below)
  • Post summary

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:

  • fix(android): align Browser binding pins / fix(android): align remaining AndroidX pins — Xamarin.AndroidX.Browser is now pinned centrally at 1.10.0.1 and packages.json's AndroidXBrowser group dropped its net11.0 override to match, resolving the "Browser still split" thread. AndroidXLeanback, AndroidXCarApp, AndroidXWear(.Tiles), AndroidXNavigation also lost their now-redundant net11.0 overrides in packages.json, matching the "go through all the AndroidX packages" request.
  • refactor(android): Move binding versions out of project files — AppCompat, Browser, Core.SplashScreen, DocumentFile, RecyclerView, Window.WindowJava, Material, and Play.Core are now pinned in one Android-wide ItemGroup in src/Directory.Build.targets:205-214 (condition: GetTargetPlatformIdentifier(TargetFramework) == 'android'), and every consumer (Uno.WinRT.netcoremobile.csproj, SamplesApp.csproj, Uno.UI.Foldable, Uno.UI.GooglePlay) now uses version-less PackageReference Include. This is the repo's established pattern for this file (Central Package Management is intentionally not enabled — see .claude/rules/build-system.md), so it's not a novel mechanism, and it directly fixes the two remaining Copilot threads: the missing net10.0-android DocumentFile reference in Uno.WinRT, and the duplicate ItemGroups that were still drift-prone in that same file.
  • The dead Xamarin.AndroidX.Lifecycle.LiveData / Xamarin.AndroidX.SwipeRefreshLayout Update entries were removed from the shared block — verified neither package has a direct Include anywhere under src/ (LiveData: none at all; SwipeRefreshLayout: only injected transitively via Uno.Sdk's implicit-package targets for consumers, a separate mechanism already covered by the packages.json manifest), so those Updates were no-ops. Correct cleanup, not a functional change.
  • Confirmed no other file in the repo still hardcodes a version for Browser/Material/WindowJava/Play.Core that could now conflict with the central pin, and that the only Android TFMs actually built in this repo are net10.0-android/net11.0-android (other net8/net9-android strings in the tree are stale comments, not active TFMs), so widening the condition to GetTargetPlatformIdentifier(...) == 'android' doesn't inadvertently touch an unrelated build.

Not re-litigated (already covered and unaffected by this push): the UnoExploreByTouchHelper.cs NET11_0_OR_GREATER guard removal (confirmed compiling on net10.0-android via CI and a build probe in earlier rounds).

Cross-cutting note (non-blocking): the branch also carries a docs(agents): Allow PRs to link private repos commit touching AGENTS.md, unrelated to the AndroidX alignment work — harmless documentation clarification, likely picked up via rebase, not a concern for this review.

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.
· Branch

@MartinZikmund

Copy link
Copy Markdown
Member Author

🤖 Addressed PR comments up to this point

The branch is rebased on the latest master, now at 8a8c34e.

  • Android versions inside project files (author request): fixed in 249eaa0. Uno.WinRT (Browser), SamplesApp (Browser, SplashScreen, Material), Uno.UI.Foldable (WindowJava) and Uno.UI.GooglePlay (Play.Core) now reference these packages without a version, and the versions live only in the Android block of src/Directory.Build.targets. dotnet msbuild -getItem:PackageReference gives the same result before and after for those projects and Uno.UI.Runtime.Skia.Android on both Android TFMs, with one intended exception: Play.Core on net10 moves from 1.10.3.18 to 1.10.3.21, the version net11 already used, and that version ships a net10.0-android36.0 asset. Uno.UI.GooglePlay builds for net10.0-android with no warnings or errors.
  • Copilot: Lifecycle.LiveData / SwipeRefreshLayout Update items match nothing. Agreed, and removed in 249eaa0. No project references either package, and evaluation output is unchanged without them.
  • Copilot: AddLabeledBy loses LabeledBy on older platforms. No change needed. AccessibilityNodeInfoCompat.addLabeledBy(View, int) calls setLabeledBy below API 36 and only uses the multi-label platform API on 36+, so older devices keep the single label.
  • Copilot: Browser alignment, the Material manifest value, and the missing net10 DocumentFile reference. Already fixed in 94a37a3, f0b9d5b and 2083b61.
  • Copilot: Package pins in core drift from each other and from the shipped Uno.Sdk manifest #24376 does not describe this change. Agreed. The PR now closes Align AndroidX and Material binding versions across Android TFMs and the Uno.Sdk manifest #24535, which covers the AndroidX/Material binding drift.
  • Agent instructions (author request): 8a8c34e clarifies in AGENTS.md that the public-reference rules cover committed files. PRs may link private issues, pull requests and repositories.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread src/Directory.Build.targets Resolved
Copilot AI review requested due to automatic review settings September 17, 2026 06:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Coordinated Android dependency and binding changes require final human review and Android CI validation.

Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@unodevops

Copy link
Copy Markdown
Contributor

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@MartinZikmund

Copy link
Copy Markdown
Member Author

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 src/ to Central Package Management (src/Directory.Packages.props). This PR only moves the Android binding pins, using the existing src/Directory.Build.targets block.

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 234203 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • Buttons.png-dark
    • Buttons.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • ImageIconPage.png-dark
    • Image_AnimatedWebP.png-dark
  • skia-windows-screenshots: 2310 changed over 2408

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • ApplicationViewMode.png-dark
    • AppWindowPositionAndSize.png-dark
    • Arrange_Performance01.png
    • Attributed_text_Supserscript.png
    • AutoBorderStretchwithtopmargin.png-dark
    • AutomationProperties_Name.png
    • AutoSuggestBoxChosenSuggestion.png-dark
    • BackGesture.png-dark
    • BackGesture.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • BeginTime_MultipleAnimations.png-dark
    • BeginTime_MultipleAnimations.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • BitmapImage_vs_SvgImageSource.png
    • BorderLeftwithmargins.png-dark
    • BorderLeftwithmargins.png
    • BorderVersusPanelClipping.png-dark
    • BorderVersusPanelClipping.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

@MartinZikmund
MartinZikmund merged commit 3c39e26 into master Sep 17, 2026
63 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/androidx-core-align branch September 17, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align AndroidX and Material binding versions across Android TFMs and the Uno.Sdk manifest

8 participants