[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.
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
UIViewControllerand all ofUITableViewandUICollectionView. These classes were the ones that led to the most// ReSharper disablecomments 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-dotnetdirectory 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.