Skip to content
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

[build] Remove MONOANDROID, NET, and NETCOREAPP directives #8434

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

pjcollins
Copy link
Member

Removes the conditional compiler directives used to swap between .NET
and MonoAndroid. These are no longer needed in main as .NET is the
only supported target.

@pjcollins pjcollins force-pushed the monoandroid-directives branch 3 times, most recently from 0fff586 to c24c3c2 Compare October 17, 2023 21:31
Removes the conditional compiler directives used to swap between `.NET`
and `MonoAndroid`.  These are no longer needed in main as `.NET` is the
only supported target.
@@ -91,7 +89,7 @@ public bool FitsSystemWindows ()
}
#endif

#if NET && ANDROID_34
#if ANDROID_34
Copy link
Contributor

@jpobst jpobst Oct 19, 2023

Choose a reason for hiding this comment

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

I think ANDROID_34 could be deleted as well. We won't be making a net8.0-android33 or net9.0-android33, etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe we will want to go through and clean this up in a future PR? Given that main still allows you to build Mono.Android.csproj for ~any supported framework version I think it makes sense to leave these in for now.

@@ -4,7 +4,7 @@ namespace Android.Views
{
partial class WindowManagerLayoutParams
{
#if NET && ANDROID_34
#if ANDROID_34
Copy link
Contributor

Choose a reason for hiding this comment

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

ANDROID_34

@pjcollins pjcollins merged commit 2ff47e4 into dotnet:main Oct 20, 2023
47 checks passed
@pjcollins pjcollins deleted the monoandroid-directives branch October 20, 2023 18:11
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
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