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

Nullable Reference Types support #2042

Closed
jonpryor opened this issue Aug 7, 2018 · 4 comments
Closed

Nullable Reference Types support #2042

jonpryor opened this issue Aug 7, 2018 · 4 comments

Comments

@jonpryor
Copy link
Member

jonpryor commented Aug 7, 2018

C# has a proposal for "nullable reference types": https://github.com/dotnet/csharplang/blob/master/proposals/nullable-reference-types.md

Under this proposal, a string value parameter could not be null, while a string? value parameter could be null.

As It Turns Out™, Android 9 is getting nullable information as well: https://android-developers.googleblog.com/2018/08/android-pie-sdk-is-now-more-kotlin.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29

We should figure out how the Kotlin nullable and non-nullable reference type information is stored (.class file attributes? XML files? other?) and update generator so that we can "forward" that information to a future Mono.Android.dll version.

@kyle-seongwoo-jun
Copy link
Contributor

any updates on here?

@jpobst
Copy link
Contributor

jpobst commented Apr 24, 2020

This was recently committed and will be available in 10.3 (16.7/8.7):

#4227

@jpobst jpobst closed this as completed Apr 24, 2020
@brendanzagaeski brendanzagaeski added this to the d16-7 milestone May 6, 2020
@brendanzagaeski
Copy link
Contributor

Release status update

A new Preview version has now been published that includes the new functionality for this item. The new functionality is not yet included in a Release version. I will update this again when a Release version is available that includes the feature.

New functionality included in Xamarin.Android 10.3.99.230.

New functionality included on Windows in Visual Studio 2019 version 16.7 Preview 1. To try the Preview version that includes the feature, check for the latest updates in Visual Studio Preview.

New functionality included on macOS in Visual Studio 2019 for Mac version 8.7 Preview 1. To try the Preview version that includes the feature, check for the latest updates on the Preview updater channel.

@brendanzagaeski
Copy link
Contributor

Release status update

A new Release version of Xamarin.Android has now been published that includes the new functionality for this item.

New functionality included in Xamarin.Android SDK version 11.0.0.3.

New functionality included on Windows in Visual Studio 2019 version 16.7. To get the new version that includes the feature, check for the latest updates or install the most recent release from https://visualstudio.microsoft.com/downloads/.

New functionality included on macOS in Visual Studio 2019 for Mac version 8.7. To get the new version that includes the feature, check for the latest updates on the Stable updater channel.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants