Skip to content

Remove PlatformWrapperView.java setHasShadow #28245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 21, 2025
Merged

Conversation

jfversluis
Copy link
Member

Description of Change

Resolves a todo in code by removing the setHasShadow method from PlatformWrapperView.java, which was already marked as deprecated.

@jfversluis jfversluis added t/breaking 💥 platform/android 🤖 area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing labels Mar 7, 2025
@jfversluis jfversluis added this to the .NET 10.0-preview3 milestone Mar 7, 2025
@Copilot Copilot AI review requested due to automatic review settings March 7, 2025 14:03
@jfversluis jfversluis requested a review from a team as a code owner March 7, 2025 14:03
@jfversluis jfversluis moved this from Todo to Ready To Review in MAUI SDK Ongoing Mar 7, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR resolves a TODO by removing the deprecated setHasShadow method from PlatformWrapperView.java.

  • Removed the deprecated setHasShadow method.
  • The removal cleans up the API as part of deprecation in preparation for .NET10.

Reviewed Changes

File Description
src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformWrapperView.java Removed deprecated setHasShadow method

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@jfversluis
Copy link
Member Author

/azp run

Copy link
Contributor

🚨 API change(s) detected @davidbritch FYI

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

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

Requires changes in the PublicAPI:

C:\a\_work\1\s\src\Core\src\PublicAPI\net-android\PublicAPI.Shipped.txt(1862,1): error RS0017: Symbol 'Microsoft.Maui.PlatformWrapperView.SetHasShadow(bool hasShadow) -> void' is part of the declared API, but is either not public or could not be found (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md) [C:\a\_work\1\s\src\Core\src\Core.csproj::TargetFramework=net10.0-android35.0]
    1 Error(s)

@github-project-automation github-project-automation bot moved this from Ready To Review to Changes Requested in MAUI SDK Ongoing Mar 10, 2025
@jfversluis jfversluis requested a review from jsuarezruiz March 10, 2025 14:15
@jfversluis jfversluis moved this from Changes Requested to Approved in MAUI SDK Ongoing Mar 10, 2025
@jfversluis jfversluis moved this from Approved to Ready To Review in MAUI SDK Ongoing Mar 10, 2025
Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

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

I think you don t remove it from the shipped API , you leave that line there too no?

@github-project-automation github-project-automation bot moved this from Ready To Review to Changes Requested in MAUI SDK Ongoing Mar 10, 2025
@rmarinho rmarinho self-assigned this Mar 11, 2025
@rmarinho rmarinho self-requested a review March 11, 2025 16:42
@rmarinho rmarinho moved this from Changes Requested to Ready To Review in MAUI SDK Ongoing Mar 11, 2025
@rmarinho
Copy link
Member

/rebase

@github-actions github-actions bot force-pushed the remove-java-setHasShadow branch from 4b8669b to 12d9dcc Compare March 20, 2025 18:14
@jsuarezruiz
Copy link
Contributor

The failed UITests are unrelated with the changes.

@github-project-automation github-project-automation bot moved this from Ready To Review to Approved in MAUI SDK Ongoing Mar 21, 2025
@rmarinho rmarinho merged commit f963636 into net10.0 Mar 21, 2025
125 of 128 checks passed
@rmarinho rmarinho deleted the remove-java-setHasShadow branch March 21, 2025 11:08
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing Mar 21, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/android 🤖 t/breaking 💥
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants