From 6e990c5e75ddb585f0936c795dd8e28e94b76ff2 Mon Sep 17 00:00:00 2001 From: Alex Soto Date: Tue, 8 Aug 2017 15:07:27 -0500 Subject: [PATCH] [Contacts] Update to Xcode 9 Beta 5 --- src/Contacts/CNEnums.cs | 2 ++ src/contacts.cs | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Contacts/CNEnums.cs b/src/Contacts/CNEnums.cs index c64ff889965c..d1ef6a26a155 100644 --- a/src/Contacts/CNEnums.cs +++ b/src/Contacts/CNEnums.cs @@ -99,6 +99,8 @@ public enum CNErrorCode : nint { ClientIdentifierInvalid = 600, [iOS (11,0), Mac (10,13)] ClientIdentifierDoesNotExist = 601, + [iOS (11,0), Mac (10,13)] + VCardMalformed = 700, } // NSInteger -> CNPostalAddressFormatter.h diff --git a/src/contacts.cs b/src/contacts.cs index 02c996eef779..a4508804d32c 100644 --- a/src/contacts.cs +++ b/src/contacts.cs @@ -12,6 +12,7 @@ using XamCore.ObjCRuntime; using XamCore.Foundation; + namespace XamCore.Contacts { #if XAMCORE_2_0 // The Contacts framework uses generics heavily, which is only supported in Unified (for now at least) @@ -26,7 +27,12 @@ interface CNKeyDescriptor : NSObjectProtocol, NSSecureCoding, NSCopying { [iOS (9,0), Mac (10,11, onlyOn64: true)] [BaseType (typeof (NSObject))] - interface CNContact : NSCopying, NSMutableCopying, NSSecureCoding { + interface CNContact : NSCopying, NSMutableCopying, NSSecureCoding, NSItemProviderReading +#if IOS_NOT_BOUND_YET + // https://bugzilla.xamarin.com/show_bug.cgi?id=58203 + , NSItemProviderWriting +#endif + { [Export ("identifier")] string Identifier { get; }