Skip to content

CloudKit macOS xcode14.0 beta2

TJ Lambert edited this page Jul 25, 2022 · 3 revisions

#CloudKit.framework https://github.com/xamarin/xamarin-macios/pull/15546

diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKFetchRecordZoneChangesOperation.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKFetchRecordZoneChangesOperation.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKFetchRecordZoneChangesOperation.h	2022-06-03 18:09:28.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKFetchRecordZoneChangesOperation.h	2022-06-17 14:28:49.000000000 -0400
@@ -28,7 +28,7 @@
 @property (nonatomic, copy, nullable) NSArray<CKRecordZoneID *> *recordZoneIDs;
 @property (nonatomic, copy, nullable) NSDictionary<CKRecordZoneID *, CKFetchRecordZoneChangesConfiguration *> *configurationsByRecordZoneID API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0));
 
-/*! @abstract Determines if the opertaion should fetch all changes from the server before completing.
+/*! @abstract Determines if the operation should fetch all changes from the server before completing.
  *
  *  @discussion When set to YES, this operation will send repeated requests to the server until all record changes have been fetched. @c recordZoneChangeTokensUpdatedBlock will be invoked periodically, to give clients an updated change token so that already-fetched record changes don't need to be re-fetched on a subsequent operation. @c recordZoneFetchCompletionBlock will only be called once and @c moreComing will always be NO.
  *
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKSystemSharingUIObserver.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKSystemSharingUIObserver.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKSystemSharingUIObserver.h	2022-05-31 15:03:37.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKSystemSharingUIObserver.h	2022-06-17 11:26:06.000000000 -0400
@@ -37,15 +37,12 @@
  */
 @property (atomic, copy, nullable) void (^systemSharingUIDidStopSharingBlock)(CKRecordID *recordID, NSError * _Nullable error) NS_REFINED_FOR_SWIFT;
 
-/*!
- * Will be removed soon. Please adopt systemSharingUIDidSaveShareBlock.
- */
-@property (atomic, copy, nullable) void (^systemUIDidSaveShareBlock)(CKRecordID *recordID, CKShare * _Nullable share, NSError * _Nullable error) NS_REFINED_FOR_SWIFT;
 
 /*!
- * Will be removed soon. Please adopt systemSharingUIDidStopSharingBlock.
+ * Will be removed soon. Please adopt systemSharingUIDidSaveShareBlock and systemSharingUIDidStopSharingBlock.
  */
-@property (atomic, copy, nullable) void (^systemUIDidStopSharingBlock)(CKRecordID *recordID, NSError * _Nullable error) NS_REFINED_FOR_SWIFT;
+@property (atomic, copy, nullable) void (^systemUIDidSaveShareBlock)(CKRecordID *recordID, CKShare * _Nullable share, NSError * _Nullable error) NS_REFINED_FOR_SWIFT API_DEPRECATED_WITH_REPLACEMENT("systemSharingUIDidSaveShareBlock", macos(13.0, 13.0), ios(16.0, 16.0));
+@property (atomic, copy, nullable) void (^systemUIDidStopSharingBlock)(CKRecordID *recordID, NSError * _Nullable error) NS_REFINED_FOR_SWIFT API_DEPRECATED_WITH_REPLACEMENT("systemSharingUIDidStopSharingBlock", macos(13.0, 13.0), ios(16.0, 16.0));
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/NSItemProvider+CKSharingSupport.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/NSItemProvider+CKSharingSupport.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/NSItemProvider+CKSharingSupport.h	2022-05-31 15:03:36.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/NSItemProvider+CKSharingSupport.h	2022-06-17 11:26:05.000000000 -0400
@@ -30,34 +30,5 @@
 
 @end
 
-#pragma mark - Deprecated API
-
-// Will be deprecated soon. Please use CKAllowedSharingOptions.
-typedef NS_OPTIONS(NSUInteger, CKSharingOptions) {
-    /*! Allow the user to configure the share with the standard set of options. */
-    CKSharingOptionsStandard = 0,
-
-    /*! If specified, the system UI will allow the user to share publicly i.e. anyone with the link has access. */
-    CKSharingOptionsAllowPublic = 1 << 0,
-
-    /*! If specified, the system UI will allow the user to share privately to specified recipients. */
-    CKSharingOptionsAllowPrivate = 1 << 1,
-
-    /*! If specified, the system UI will allow the user to grant participants read-only permissions. */
-    CKSharingOptionsAllowReadOnly = 1 << 4,
-
-    /*! If specified, the system UI will allow the user to grant participants read/write permissions. */
-    CKSharingOptionsAllowReadWrite = 1 << 5,
-} API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos, tvos);
-
-@interface NSItemProvider (Deprecated_CKSharingSupport)
-
-// Will be deprecated soon. Please use -[NSItemProvider registerCKShareWithContainer:allowedSharingOptions:preparationHandler:]
-- (void)registerCKShareWithContainer:(CKContainer *)container sharingOptions:(CKSharingOptions)sharingOptions preparationHandler:(CKSharePreparationHandler)preparationHandler API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos, tvos) NS_REFINED_FOR_SWIFT;
-
-// Will be deprecated soon. Please use -[NSItemProvider registerCKShare:container:allowedSharingOptions:]
-- (void)registerCKShare:(CKShare *)share container:(CKContainer *)container sharingOptions:(CKSharingOptions)sharingOptions API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos, tvos) NS_REFINED_FOR_SWIFT;
-@end
-
 NS_ASSUME_NONNULL_END
 
Clone this wiki locally