Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Apr 30, 2025

Help ensure we do not unintentionally add any additional non-NRT aware code to Xamarin.Android.Build.Tasks by switching $(Nullable) from annotation to enable. This will subject any new files to NRT analysis by default unless they opt out with #nullable disable.

To switch to this mode:

  • Add #nullable disable to any existing code files that have not been converted and currently have NRT warnings. (~200 files)
  • Remove #nullable enable from any existing code files that have already been converted. (~50 files)

@jpobst jpobst force-pushed the dev/jpobst/enable-xabt-nrt branch from 17d802b to b95b11c Compare April 30, 2025 19:59
@jpobst jpobst marked this pull request as ready for review April 30, 2025 21:30
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

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

This project has <WarningsAsErrors>Nullable</WarningsAsErrors>, so since the build is green it didn't add any new NRT warnings. 👍

@jpobst jpobst merged commit 395189c into main Apr 30, 2025
59 checks passed
@jpobst jpobst deleted the dev/jpobst/enable-xabt-nrt branch April 30, 2025 22:31
@github-actions github-actions bot locked and limited conversation to collaborators May 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants