[src] Fix some breaking changes detected when bumping APIDIFF (#11567)

They were not visible (or handled differently in `main`) but
become _small_ breaking changes once we released xcode12.5 support.
This commit is contained in:
Sebastien Pouliot 2021-05-17 15:56:18 -04:00 коммит произвёл GitHub
Родитель c49c241f43
Коммит 63ad08ed44
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 11 добавлений и 8 удалений

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

@ -268,6 +268,8 @@ namespace AudioUnit
ParametersForOverview = 57, ParametersForOverview = 57,
[iOS (10,0), Mac (10,12)] [iOS (10,0), Mac (10,12)]
SupportsMpe = 58, SupportsMpe = 58,
[iOS (14,5), TV (14,5), Mac (11,3)]
LoadedOutOfProcess = 62,
#if MONOMAC #if MONOMAC
FastDispatch = 5, FastDispatch = 5,

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

@ -2468,11 +2468,11 @@ namespace UIKit {
[Field ("UIWindowSceneSessionRoleExternalDisplay")] [Field ("UIWindowSceneSessionRoleExternalDisplay")]
ExternalDisplay, ExternalDisplay,
#if HAS_CARPLAY
[NoTV][NoWatch] [NoTV][NoWatch]
#if HAS_CARPLAY
[Field ("CPTemplateApplicationSceneSessionRoleApplication", "CarPlay")] [Field ("CPTemplateApplicationSceneSessionRoleApplication", "CarPlay")]
CarTemplateApplication,
#endif #endif
CarTemplateApplication,
} }
[iOS (13,0), TV (13,0), NoWatch] [iOS (13,0), TV (13,0), NoWatch]

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

@ -49,14 +49,15 @@ namespace AuthenticationServices {
} }
[Partial] [Partial]
#if TVOS || WATCH
// The associated enum is not generated (which is normal)
// without this define the attributes would be duplicated
// on other platforms (where the enum exists)
[NoTV][NoWatch]
#endif
interface ASExtensionErrorCodeExtensions { interface ASExtensionErrorCodeExtensions {
#if TVOS || WATCH
// Type `ASExtensionErrorCode` is already decorated, so it becomes a duplicate (after code gen)
// on those platforms and intro tests complains (on other platforms, e.g. iOS, Catalyst)
// OTOH if we don't add them here then we'll get the extra, not really usable, extension type
// on tvOS and watchOS (which is incorrect)
[NoTV][NoWatch]
#endif
[NoMac, iOS (14,0)] [NoMac, iOS (14,0)]
[Field ("ASExtensionLocalizedFailureReasonErrorKey")] [Field ("ASExtensionLocalizedFailureReasonErrorKey")]
NSString LocalizedFailureReasonErrorKey { get; } NSString LocalizedFailureReasonErrorKey { get; }