You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[generator] Support //interface/@no-alternatives (#601)
Context: #509
In 105d544 we began cleaning up our existing "alternative" hacks for
bindings that use the new C#8 DIM features. However, as we add new
API interfaces we will continue to generate new `[Obsolete]`
"alternative" classes.
We do not need to add new already-obsolete API to our bindings.
Update `generator` so that Metadata.xml files can now add a
`//interface/@no-alternatives` attribute. When this attribute is
`true`, the alternative types won't be emitted.
This will be used in `Mono.Android.dll` like this:
<attr api-since="30" path="/api/package/interface[contains(@merge.SourceFile,'api-30.xml.in')]" name="no-alternatives">true</attr>
which will prevent any interfaces added in API-R+ from creating
`[Obsolete]` alternative classes.
0 commit comments