[CoreFoundation] Add support for xcode 13 beta 5. (#12552)

This commit is contained in:
Manuel de la Pena 2021-08-27 10:59:08 -04:00 коммит произвёл GitHub
Родитель 74b161ae74
Коммит 8eab757b39
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 36 добавлений и 12 удалений

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

@ -3,6 +3,7 @@
//
using System;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using ObjCRuntime;
using CoreFoundation;
@ -603,13 +604,23 @@ namespace CoreFoundation {
}
}
#if MONOMAC
#if MONOMAC || __MACCATALYST__
#if !NET
[Introduced (PlatformName.MacOSX, 11, 0)]
[MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("macos11.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[DllImport (Constants.CoreFoundationLibrary)]
[return: MarshalAs (UnmanagedType.I1)]
extern static bool CFBundleIsExecutableLoadable (IntPtr bundle);
#if !NET
[Introduced (PlatformName.MacOSX, 11, 0)]
[MacCatalyst (15,0)]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), SupportedOSPlatform ("macos11.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
public static bool IsExecutableLoadable (CFBundle bundle)
{
if (bundle == null)
@ -620,12 +631,22 @@ namespace CoreFoundation {
return CFBundleIsExecutableLoadable (bundle.Handle);
}
#if !NET
[Introduced (PlatformName.MacOSX, 11, 0)]
[MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("macos11.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[DllImport (Constants.CoreFoundationLibrary)]
[return: MarshalAs (UnmanagedType.I1)]
extern static bool CFBundleIsExecutableLoadableForURL (IntPtr bundle);
#if !NET
[Introduced (PlatformName.MacOSX, 11, 0)]
[MacCatalyst (15,0)]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), SupportedOSPlatform ("macos11.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
public static bool IsExecutableLoadable (NSUrl url)
{
if (url == null)
@ -634,12 +655,22 @@ namespace CoreFoundation {
return CFBundleIsExecutableLoadableForURL (url.Handle);
}
#if !NET
[Introduced (PlatformName.MacOSX, 11, 0)]
[MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("macos11.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[DllImport (Constants.CoreFoundationLibrary)]
[return: MarshalAs (UnmanagedType.I1)]
extern static bool CFBundleIsArchitectureLoadable (/*cpu_type_t => integer_t => int*/ Architecture architecture);
#if !NET
[Introduced (PlatformName.MacOSX, 11, 0)]
[MacCatalyst (15,0)]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), SupportedOSPlatform ("macos11.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
public static bool IsArchitectureLoadable (Architecture architecture) => CFBundleIsArchitectureLoadable (architecture);
#endif

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

@ -1,8 +1,7 @@
# all of the are ignored on mac os x.
!missing-field! kCFURLApplicationIsScriptableKey not bound
!missing-field! kCFURLQuarantinePropertiesKey not bound
!missing-field! kCFURLTagNamesKey not bound
!missing-field! kCFURLVolumeAvailableCapacityForImportantUsageKey not bound
!missing-field! kCFURLVolumeAvailableCapacityForOpportunisticUsageKey not bound
!missing-field! kCFUserNotificationAlertHeaderKey not bound
!missing-field! kCFUserNotificationAlertMessageKey not bound
!missing-field! kCFUserNotificationAlertTopMostKey not bound
@ -20,9 +19,6 @@
!missing-field! kCFUserNotificationTextFieldTitlesKey not bound
!missing-field! kCFUserNotificationTextFieldValuesKey not bound
!missing-pinvoke! CFBundleCloseBundleResourceMap is not bound
!missing-pinvoke! CFBundleIsArchitectureLoadable is not bound
!missing-pinvoke! CFBundleIsExecutableLoadable is not bound
!missing-pinvoke! CFBundleIsExecutableLoadableForURL is not bound
!missing-pinvoke! CFBundleOpenBundleResourceFiles is not bound
!missing-pinvoke! CFBundleOpenBundleResourceMap is not bound
!missing-pinvoke! CFURLCreateBookmarkDataFromAliasRecord is not bound

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

@ -5,6 +5,8 @@
!missing-field! kCFURLFileProtectionKey not bound
!missing-field! kCFURLFileProtectionNone not bound
!missing-field! kCFURLVolumeSupportsFileProtectionKey not bound
!missing-field! kCFURLVolumeAvailableCapacityForImportantUsageKey not bound
!missing-field! kCFURLVolumeAvailableCapacityForOpportunisticUsageKey not bound
@ -980,6 +982,7 @@
!unknown-pinvoke! dispatch_write bound
!unknown-pinvoke! open bound
!unknown-pinvoke! write bound
!unknown-pinvoke! uname bound
!missing-field! kCFStreamErrorDomainSOCKS not bound
!missing-field! kCFStreamErrorDomainSSL not bound
!missing-field! kCFStreamPropertyShouldCloseNativeSocket not bound

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

@ -1,3 +0,0 @@
!missing-field! kCFURLVolumeAvailableCapacityForImportantUsageKey not bound
!missing-field! kCFURLVolumeAvailableCapacityForOpportunisticUsageKey not bound
!unknown-pinvoke! uname bound

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

@ -18,8 +18,6 @@
!missing-field! kCFURLApplicationIsScriptableKey not bound
!missing-field! kCFURLQuarantinePropertiesKey not bound
!missing-field! kCFURLTagNamesKey not bound
!missing-field! kCFURLVolumeAvailableCapacityForImportantUsageKey not bound
!missing-field! kCFURLVolumeAvailableCapacityForOpportunisticUsageKey not bound
!missing-field! kCFUserNotificationAlertHeaderKey not bound
!missing-field! kCFUserNotificationAlertMessageKey not bound
!missing-field! kCFUserNotificationAlternateButtonTitleKey not bound

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

@ -1 +0,0 @@
!unknown-pinvoke! uname bound