Skip to content

fix(android): Use Play Review instead of deprecated Play Core - #26695

Open
Xiaoy312 wants to merge 3 commits into
masterfrom
dev/xygu/20261124/googleplay-play-review
Open

Xiaoy312 wants to merge 3 commits into
masterfrom
dev/xygu/20261124/googleplay-play-review

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #24948

PR Type:

🐞 Bugfix

What changed? 🚀

Uno.WinUI.GooglePlay (the GooglePlay UnoFeature) depended on Xamarin.Google.Android.Play.Core 1.10.3.21, the monolithic Play Core library that Play Console flags as incompatible with targetSdk 34+ and eventually blocks from publishing.

It now depends on the split Xamarin.Google.Android.Play.Review 2.0.2.10 (com.google.android.play:review):

  • src/Directory.Packages.props / Uno.UI.GooglePlay.netcoremobile.csproj: swap the package.
  • StoreContextExtension: the review types live in Google.Android.Play.Core.Review[.Testing] in this binding (not Xamarin.Google.Android.Play.Core.Review), and tasks become Play Services tasks (Android.Gms.Tasks.Task / IOnCompleteListener). These are qualified rather than imported, since Android.Gms.Tasks also defines a CancellationToken.

No Uno.Sdk change is needed: Play.Review 2.0.2.10 → GooglePlayServices.Basement 118.10.0.3 requires AndroidX.Fragment 1.9.0 and Collection 1.6.0.1, which match the versions already in the SDK's packages.json.

Validation

  • Compile: Uno.UI.GooglePlay builds for net10.0-android and net11.0-android, no new warnings.
  • Restore/build: an Uno.Sdk app with UnoFeatures=GooglePlay (net10.0-android, Uno 7.0.65) referencing the locally packed add-in no longer has Xamarin.Google.Android.Play.Core in its graph (dotnet nuget why), restores without NU1605, and builds in Release. The APK contains com.google.android.play.core.review.* and none of the monolithic Play Core classes (splitinstall, appupdate, play.core.tasks).
  • Runtime (Android emulator, API 35, Release): the same app with StoreContext.TestMode = true calling RequestRateAndReviewAppAsync() returns Succeeded with no exceptions. That status is only reached after RequestReviewFlow() → OnComplete → GetResult(ReviewInfo) → LaunchReviewFlow() → second OnComplete, so the new binding and the Android.Gms.Tasks listener path run end to end.
  • Not validated: Google's real review dialog (test mode uses FakeReviewManager, which shows no UI; the real dialog needs an internal test track install).

PR Checklist ✅

Docs: a 7.1 note in migrating-from-previous-releases.md, and a "Testing on Android" section (StoreContext.TestMode, internal test track) in windows-ui-storecontext.md.

No public API change. Apps that relied on Xamarin.Google.Android.Play.Core arriving transitively through Uno.WinUI.GooglePlay (e.g. for in-app updates) will need to reference the corresponding split package themselves.

🤖 Generated with Claude Code

@mergify

mergify Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 248838 found UI Test snapshots differences: skia-linux-screenshots: 255, skia-windows-screenshots: 270

Details
  • skia-linux-screenshots: 255 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png-dark
    • AppWindowTitleBar Properties.png-dark
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • AnimatedBackVisualSourceSamplePage.png
    • Accessibility_Showcase.png
    • AnimatedVisualsTestbedPage.png-dark
    • AnimatedVisualsTestbedPage.png
    • AppWindowTitleBar Properties.png
    • Basics.png-dark
    • Basics.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • Buttons.png-dark
    • ClipboardTests.png
  • skia-windows-screenshots: 270 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png
    • AppWindowTitleBar Properties.png
    • AutomationProperties_AutomationId.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationProperties_StructureAndProps.png
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • ClipboardTests.png-dark
    • Basics.png-dark
    • Basics.png
    • Buttons.png-dark

@Xiaoy312

Xiaoy312 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

CI blocked by #26702...

Uno.WinUI.GooglePlay depended on the monolithic Play Core 1.10.3, which
Play Console flags as incompatible with targetSdk 34+ and blocks from
publishing. Switch to the split Xamarin.Google.Android.Play.Review
binding; the review API moves to Google.Android.Play.Core.Review and
tasks to Android.Gms.Tasks.

Fixes #24948

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20261124/googleplay-play-review branch from 77ea292 to de064b3 Compare November 24, 2026 23:56
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 248956 found UI Test snapshots differences: skia-linux-screenshots: 219, skia-windows-screenshots: 284

Details
  • skia-linux-screenshots: 219 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AppWindowTitleBar Properties.png-dark
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Accessibility_Showcase.png-dark
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • ClipboardTests.png-dark
    • BasicAcrylicBrushTest.png-dark
  • skia-windows-screenshots: 284 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • Basics.png-dark
    • Basics.png
    • AnimatedVisualsTestbedPage.png-dark
    • AppWindowTitleBar Properties.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_AutomationId.png-dark
    • BasicAcrylicBrushTest2.png-dark

@Xiaoy312 Xiaoy312 added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 25, 2026
Add a 7.1 migration note for Uno.WinUI.GooglePlay moving from Play Core
to Play Review, and document StoreContext.TestMode and Google's test
tracks for checking in-app reviews on Android.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@Xiaoy312 Xiaoy312 removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 25, 2026
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 249065 found UI Test snapshots differences: skia-linux-screenshots: 240, skia-windows-screenshots: 290

Details
  • skia-linux-screenshots: 240 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AppWindowTitleBar Properties.png-dark
    • Basics.png-dark
    • Basics.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • ButtonClippingTestsControl.png-dark
  • skia-windows-screenshots: 290 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • Basics Pivot Test.png-dark
    • BenchmarkDotNet.png-dark
    • Basics Pivot Test.png
    • BenchmarkDotNet.png
    • BreadcrumbBarPage.png-dark
    • ButtonClippingTestsControl.png-dark
    • BreadcrumbBarPage.png
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • CompositionNineGridBrush_Source_Changes.png-dark

@Xiaoy312
Xiaoy312 enabled auto-merge November 25, 2026 19:52
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 249122 found UI Test snapshots differences: skia-linux-screenshots: 248, skia-windows-screenshots: 261

Details
  • skia-linux-screenshots: 248 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • Accessibility_Showcase.png-dark
    • AppWindowTitleBar Properties.png
    • Basics.png-dark
    • Basics.png
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • AnimatedVisualsTestbedPage.png
    • AnimatedVisualsTestbedPage.png-dark
  • skia-windows-screenshots: 261 changed over 2504

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AppWindowTitleBar Properties.png
    • AutomationProperties_AutomationId.png-dark
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AnimatedVisualsTestbedPage.png-dark
    • AnimatedVisualsTestbedPage.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • ButtonClippingTestsControl.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_AutomationId.png
    • BasicAcrylicBrushTest2.png-dark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] Uno.WinUI.GooglePlay depends on the deprecated Play Core 1.10.3, which Play Console flags as incompatible with targetSdk 34+

5 participants