-
Notifications
You must be signed in to change notification settings - Fork 514
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
[UIKit] Correct nullability attributes for parts of UIKit #15200
[UIKit] Correct nullability attributes for parts of UIKit #15200
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Thanks!
That's correct, since spouliot wrote those instructions, we have a different set if xtro files for the .NET assemblies, and you'll have to remove the same entries from those files as well. I've updated the instructions in that comment accordingly. |
This comment has been minimized.
This comment has been minimized.
Looks like some of the CI choked on the build:
@mandel-macaque - Can this go in? I think that's signing stuff and this is fine, but I'm out of the loop here. |
Results seem ok, but I have merge with main and will re-trigger a build. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
❌ [PR Build] Tests on macOS Mac Catalina (10.15) failed ❌Failed tests are:
Pipeline on Agent |
📋 [PR Build] API Diff 📋API diff (for current PR)ℹ️ API Diff (from PR only) (please review changes) .NETXamarin vs .NETAPI diff (vs stable)✅ API Diff from stable .NETXamarin vs .NETGenerator diffℹ️ Generator Diff (please review changes) Pipeline on Agent XAMBOT-1109.Monterey |
💻 [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) passed 💻✅ All tests on macOS M1 - Mac Big Sur (11.5) passed. Pipeline on Agent |
Great work! Thanks a lot! |
These changes correct some of the nullability attributes for the UIKit bindings. Although UIKit has several hundred lines of xtro-sharpie ignores related to nullability, this PR only fixes a few of them.
I wasn't sure where to draw the line, but in the end, I essentially fixed most of
UIViewController
and all ofUITableView
andUICollectionView
. These classes were the ones that led to the most// ReSharper disable
comments being added in my team's codebase, and/or that led to crashes being introduced by devs following ReSharper's suggestions to remove "unnecessary" null-checks.These changes were largely based on the instructions given by @spouliot in #6154. However, I noticed the xtro-sharpie ignore files have been duplicated in the
api-annotations-dotnet
directory since then, so I updated the .ignore and .todo files in that directory as well.If the process has changed since that comment was written, I can make any additional changes that are needed.