[src] Add back manual NewsstandKitLibrary constant for backwards compatibility. (#18841)

This commit is contained in:
Rolf Bjarne Kvinge 2023-08-30 19:27:13 +02:00 коммит произвёл GitHub
Родитель 07d77bf131
Коммит 6c06feea40
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 0 удалений

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

@ -19,5 +19,10 @@ namespace ObjCRuntime {
// iOS 9 // iOS 9
public const string libcompressionLibrary = "/usr/lib/libcompression.dylib"; public const string libcompressionLibrary = "/usr/lib/libcompression.dylib";
#if !XAMCORE_5_0
// Apple removed the NewsstandKit framework from iOS in Xcode 15.
public const string NewsstandKitLibrary = "/System/Library/Frameworks/NewsstandKit.framework/NewsstandKit";
#endif
} }
} }

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

@ -1064,6 +1064,10 @@ namespace Introspection {
case "SdkVersion": case "SdkVersion":
Assert.True (Version.TryParse (s, out _), fi.Name); Assert.True (Version.TryParse (s, out _), fi.Name);
break; break;
#if !XAMCORE_5_0
case "NewsstandKitLibrary": // Removed from iOS, but we have to keep the constant around for binary compatibility.
break;
#endif
#if !NET #if !NET
#if __TVOS__ #if __TVOS__
case "PassKitLibrary": // not part of tvOS case "PassKitLibrary": // not part of tvOS