[FileProvider] Adopt XAMCORE_4_0 changes in .NET. (#14012)
This commit is contained in:
Родитель
b9037da426
Коммит
4b1738826f
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче