Skip to content

Commit

Permalink
[introspection] Fix failures on older iOS/tvOS
Browse files Browse the repository at this point in the history
- Fixes dotnet#14905 by skipping with a link to dotnet#14802
  • Loading branch information
chamons authored and vs-mobiletools-engineering-service2 committed May 23, 2022
1 parent b02cfd9 commit a65fdd7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/introspection/ApiSelectorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,44 @@ protected virtual bool Skip (Type type, string selectorName)
}
#endif
break;
#if NET
// Incorrect attributes in inlined protocol selectors - https://github.com/xamarin/xamarin-macios/issues/14802
case "NSTextAttachment":
switch (selectorName) {
case "attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:":
case "imageForBounds:attributes:location:textContainer:":
case "viewProviderForParentView:location:textContainer:":
return true;
}
break;
// Incorrect attributes in get/set selectors - https://github.com/xamarin/xamarin-macios/issues/14802
case "CBManager":
switch (selectorName) {
case "authorization":
case "authorizations":
return true;
}
break;
case "NEAppProxyFlow":
switch (selectorName) {
case "networkInterface":
case "setNetworkInterface:":
return true;
}
break;
case "WKPreferences":
switch (selectorName) {
case "setTextInteractionEnabled:":
return true;
}
break;
case "MidiCISession":
switch (selectorName) {
case "midiDestination":
return true;
}
break;
#endif
}

// old binding mistake
Expand Down

0 comments on commit a65fdd7

Please sign in to comment.