Skip to content

Contacts iOS xcode13.0 beta1

Manuel de la Pena edited this page Jun 16, 2021 · 3 revisions

#Contacts.framework https://github.com/xamarin/xamarin-macios/pull/11962

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNChangeHistoryEvent.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNChangeHistoryEvent.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNChangeHistoryEvent.h	2021-03-16 09:54:53.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNChangeHistoryEvent.h	2021-06-02 12:47:21.000000000 -0400
@@ -13,7 +13,7 @@
 @class CNContact;
 @class CNGroup;
 
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryEvent : NSObject <NSCopying, NSSecureCoding>
 
 - (void)acceptEventVisitor:(id<CNChangeHistoryEventVisitor>)visitor;
@@ -21,78 +21,78 @@
 @end
 
 /// Drop all cached information your app has persisted
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryDropEverythingEvent : CNChangeHistoryEvent
 @end
 
 /// A contact was added
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryAddContactEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) CNContact * contact;
 @property (readonly, strong, nonatomic, nullable) NSString * containerIdentifier;
 @end
 
 /// A contact was updated
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryUpdateContactEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) CNContact * contact;
 @end
 
 /// A contact was removed
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryDeleteContactEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) NSString * contactIdentifier;
 @end
 
 /// A group was added
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryAddGroupEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) CNGroup * group;
 @property (readonly, strong, nonatomic) NSString * containerIdentifier;
 @end
 
 /// A group was updated
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryUpdateGroupEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) CNGroup * group;
 @end
 
 /// A group was deleted
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryDeleteGroupEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) NSString * groupIdentifier;
 @end
 
 /// A contact was added to a group
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryAddMemberToGroupEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) CNContact * member;
 @property (readonly, strong, nonatomic) CNGroup * group;
 @end
 
 /// A contact was removed from a group
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryRemoveMemberFromGroupEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) CNContact * member;
 @property (readonly, strong, nonatomic) CNGroup * group;
 @end
 
 /// A subgroup was added to a group
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryAddSubgroupToGroupEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) CNGroup * subgroup;
 @property (readonly, strong, nonatomic) CNGroup * group;
 @end
 
 /// A subgroup was removed from a group
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @interface CNChangeHistoryRemoveSubgroupFromGroupEvent : CNChangeHistoryEvent
 @property (readonly, strong, nonatomic) CNGroup * subgroup;
 @property (readonly, strong, nonatomic) CNGroup * group;
 @end
 
 
-API_AVAILABLE(macosx(10.15), ios(13.0), watchos(6.0))
+API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0))
 @protocol CNChangeHistoryEventVisitor <NSObject>
 
 - (void)visitDropEverythingEvent:(CNChangeHistoryDropEverythingEvent *)event;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNError.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNError.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNError.h	2021-03-16 08:47:47.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNError.h	2021-06-02 12:47:22.000000000 -0400
@@ -43,7 +43,8 @@
     CNErrorCodeClientIdentifierCollision = 602,
     CNErrorCodeChangeHistoryExpired = 603,
     CNErrorCodeChangeHistoryInvalidAnchor = 604,
-    
+    CNErrorCodeChangeHistoryInvalidFetchRequest = 605,
+
     CNErrorCodeVCardMalformed NS_ENUM_AVAILABLE(10_13, 11_0) = 700,
     CNErrorCodeVCardSummarizationError NS_ENUM_AVAILABLE(10_14, 12_0) = 701,
     
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNSaveRequest.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNSaveRequest.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNSaveRequest.h	2021-03-16 08:44:55.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNSaveRequest.h	2021-06-02 07:36:05.000000000 -0400
@@ -22,8 +22,7 @@
  * If updating/deleting an object (contact, group, container) and it is not in the contact store then the executing save request will fail to update/delete that object and will return the error CNErrorCodeRecordDoesNotExist with CNErrorUserInfoAffectedRecordsKey value as an array containing that object.
  *
  */
-NS_CLASS_AVAILABLE(10_11, 9_0)
-__WATCHOS_PROHIBITED
+API_AVAILABLE(macos(10.11), ios(9)) __WATCHOS_PROHIBITED
 @interface CNSaveRequest : NSObject
 
 /*!
@@ -114,6 +113,14 @@
  */
 - (void)removeMember:(CNContact *)contact fromGroup:(CNGroup *)group;
 
+/*!
+ * @abstract    The author of this transaction.
+ *
+ * @discussion  Use this, in conjunction with @c CNChangeHistoryFetchRequest.excludedTransactionAuthors,
+ *              to suppress fetching of changes the author already knows about.
+ */
+@property (copy, nonatomic, nullable) NSString *transactionAuthor API_AVAILABLE(macos(12), ios(15));
+
 @end
 
 NS_ASSUME_NONNULL_END
Clone this wiki locally