-
Notifications
You must be signed in to change notification settings - Fork 511
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
[xtro] Report missing-protocol-conformance when protocols are defined… #3187
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d9c3c68
[xtro] Report missing-protocol-conformance when protocols are defined…
VincentDondain d9ce8eb
Fix indentation
VincentDondain 0f00cb1
Fix encodeWithCoder not found
VincentDondain b641107
Remove Internal check from VisitObjCCategoryDecl and VisitObjCInterfa…
VincentDondain 75e4646
Ignore NSSecureCoding missing-protocol-conformance (not available on …
VincentDondain a391212
Fix GKSavedGameListener
VincentDondain 9b80dc8
Ignore previewItemTitle failure (normal since it's optional)
VincentDondain 90d1d8e
Only skip UIStateRestoring for subclasses of UIViewController
VincentDondain 6996ac0
Ignore UIStateRestoring test on watchOS (UIViewController not available)
VincentDondain 6268870
Properly implement NSSecureCoding for MKMapItem (ignore encodeWithCod…
VincentDondain ac6346e
Cleanup MapKit.ignore files
VincentDondain cd007c3
Fix newline noise
VincentDondain 57ef7c4
Remove protocol conformances that generated wrong availability attrib…
VincentDondain fc3aee5
Avoid new virtual or virtual when adding protocol conformance
VincentDondain e942535
Removed objectRestorationClass and restorationParent (optional)
VincentDondain 4fe8324
Fix indentation in webkit
VincentDondain 94bb764
Add XAMCORE_4_0 to previewItemTitle case
VincentDondain 0f89482
Revert "Fix GKSavedGameListener"
VincentDondain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -280,11 +280,14 @@ interface MKDirectionsRequest { | |
[TV (9,2)] | ||
[Mac (10,9, onlyOn64 : true)] | ||
interface MKMapItem | ||
#if !MONOMAC | ||
: NSSecureCoding | ||
#if IOS // #if TARGET_OS_IOS | ||
, NSItemProviderReading, NSItemProviderWriting | ||
: NSItemProviderReading, NSItemProviderWriting | ||
#if ARCH_64 // [FAIL] Selector not found for MapKit.MKMapItem : encodeWithCoder: on 32-bit iOS | ||
, NSSecureCoding | ||
#endif | ||
#endif | ||
#if WATCH || TVOS || MONOMAC && ARCH_64 | ||
: NSSecureCoding | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
#endif | ||
{ | ||
[Export ("placemark", ArgumentSemantic.Retain)] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't do that in public API, e.g. if 32bits and 64bits signatures are different then this leaks into user code
It also becomes impossible (or at least harder) to de-duplicate the platform assemblies (for fat apps)
This needs to be considered a OS version change (which it is) e.g. when a new version of iOS adds conformance then we add the API (and fix up introspection not to report it for older versions)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess is that it's actually tied to the OS version (it works in iOS 11 (64-bit only), but not iOS 10.3 (where we run our 32-bit tests))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That explains why I couldn't find many
ARCH_64
, thought I was being clever here :PBut yes I now remember how we usually handle
NSSecureCoding
, I was distracted.