[FileProvider] Adopt XAMCORE_4_0 changes in .NET. (#14012)

This commit is contained in:
Rolf Bjarne Kvinge 2022-02-02 08:01:06 +01:00 коммит произвёл GitHub
Родитель b9037da426
Коммит 4b1738826f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -19,7 +19,7 @@ using UniformTypeIdentifiers;
using NativeHandle = System.IntPtr;
#endif
#if IOS && !XAMCORE_4_0 && !__MACCATALYST__
#if IOS && !NET && !__MACCATALYST__
using FileProvider;
// This is the original (iOS 8) location of `NSFileProviderExtension`
@ -262,7 +262,7 @@ namespace FileProvider {
ExcludingFromSync = 1 << 7,
AddingSubItems = Writing,
ContentEnumerating = Reading,
#if !XAMCORE_4_0
#if !NET
[Obsolete ("This enum value is not constant across OS and versions.")]
#if MONOMAC
All = Reading | Writing | Reparenting | Renaming | Trashing | Deleting | Evicting,
@ -492,7 +492,7 @@ namespace FileProvider {
[Export ("favoriteRank", ArgumentSemantic.Copy)]
NSNumber GetFavoriteRank ();
#if XAMCORE_4_0 // Not available in mac
#if NET // Not available in mac
[NoMac]
#elif MONOMAC
[Obsolete ("'IsTrashed' is not available in macOS and will be removed in the future.")]

Просмотреть файл

@ -1,9 +1,5 @@
## the only member is not available on the macOS
!missing-protocol! NSFileProviderItemDecorating not bound
## This member is not available on mac
## https://developer.apple.com/documentation/fileprovider/nsfileprovideritem/2879552-trashed?language=objc
!extra-protocol-member! unexpected selector NSFileProviderItem::isTrashed found
## when deprecated (xcode12 beta 3) this member was marked as not available on macOS (but it was before)
!extra-protocol-member! unexpected selector NSFileProviderItem::typeIdentifier found