Skip to content

FileProvider iOS xcode13.0 beta4

Manuel de la Pena edited this page Jul 29, 2021 · 3 revisions

#FileProvider.framework https://github.com/xamarin/xamarin-macios/pull/12300

diff -ruN /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderItem.h /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderItem.h
--- /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderItem.h	2021-07-13 00:41:42.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderItem.h	2021-07-22 14:22:47.000000000 -0400
@@ -262,6 +262,14 @@
  that contentType is not available on iOS 13 and earlier, so typeIdentifier
  is required in order to target iOS 13 and earlier.
 
+ When using NSFileProviderReplicatedExtension, providers must be prepared
+ to handle the following contentType in the appropriate manner
+ when they are passed in itemTemplates contentType to createItem/modifyItem calls:
+ * UTType.symbolicLink
+ * UTType.folder
+ * UTType.package
+ * UTType.aliasFile
+
  Changing the contentType for a given item that would result in a transition to/from a folder
  or to/from a symlink is not supported.
  */
diff -ruN /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderReplicatedExtension.h /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderReplicatedExtension.h
--- /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderReplicatedExtension.h	2021-07-10 09:47:46.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderReplicatedExtension.h	2021-07-22 14:33:46.000000000 -0400
@@ -544,6 +544,11 @@
  set of stillPendingFields in its completion handler. In that case, the system will
  attempt to modify the item later by calling modifyItem with those fields.
 
+ Starting in macOS 12.0, if the set of stillPendingFields returned by the provider is
+ identical to the set of fields passed to modifyItem, then the system will consider that these fields
+ are not supported by the provider. The system will not send these fields to the provider again,
+ until the item is modified.
+
  If a field in the returned item does not match the itemTemplate, and is
  not in the list of stillPendingFields, the value from the item will be
  propagated to the disk. In case there is a content change and the content of
Clone this wiki locally