[xtro] Update legacy annotations to talk about .NET instead of XAMCORE_4_0. (#14094)

This makes the XAMCORE_4_0 list in our source code substantially smaller.
This commit is contained in:
Rolf Bjarne Kvinge 2022-02-09 08:27:46 +01:00 коммит произвёл GitHub
Родитель 305ecde2cd
Коммит 06100d8dca
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
27 изменённых файлов: 35 добавлений и 37 удалений

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

@ -79,5 +79,5 @@
# adding abstract member to an existing type would be a breaking change
!incorrect-protocol-member! AVQueuedSampleBufferRendering::hasSufficientMediaDataForReliablePlaybackStart is REQUIRED and should be abstract
# added for XAMCORE_4_0 since it is part of a new breaking change in a notification
# added for .NET since it is part of a new breaking change in a notification
!missing-field! AVPlayerItemTimeJumpedOriginatingParticipantKey not bound

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

@ -12,7 +12,7 @@
## https://bugzilla.xamarin.com/show_bug.cgi?id=35021
!missing-selector! NSFileWrapper::initWithSerializedRepresentation: not bound
## the API exists but is [Sealed], until XAMCORE_4_0, to keep compatible with iOS/Mac profiles
## the API exists but is [Sealed], until .NET, to keep compatible with iOS/Mac profiles
!missing-selector! NSURLSession::getTasksWithCompletionHandler: not bound
# missing - pending decision for implementation
@ -41,10 +41,10 @@
# fixed in XAMCORE_3_0 - API break
!incorrect-protocol-member! NSProgressReporting::progress is REQUIRED and should be abstract
## should not have been [Native] it's 32bits only values -> XAMCORE_4_0
## should not have been [Native] it's 32bits only values -> .NET
!unknown-native-enum! NSBundleExecutableArchitecture bound
## enum was [re]named to NSCalendarOptions - excluding from XAMCORE_4_0
## enum was [re]named to NSCalendarOptions - excluding from .NET
!unknown-native-enum! NSDateComponentsWrappingBehavior bound
## collections - many are special

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

@ -1,4 +1,4 @@
## Fixed in XAMCORE_4_0
## Fixed in .NET
!incorrect-protocol-member! GKGameModelPlayer::playerId is REQUIRED and should be abstract
## no generator support for FastEnumeration - https://bugzilla.xamarin.com/show_bug.cgi?id=4391

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

@ -1,4 +1,4 @@
## new Apple abstract member (breaking change) fixed in XAMCORE_4_0
## new Apple abstract member (breaking change) fixed in .NET
!incorrect-protocol-member! MTLRenderCommandEncoder::setDepthClipMode: is REQUIRED and should be abstract
# fixed in XAMCORE_3_0 - API break
@ -11,7 +11,7 @@
!incorrect-protocol-member! MTLRenderCommandEncoder::setStencilFrontReferenceValue:backReferenceValue: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLTexture::newTextureViewWithPixelFormat:textureType:levels:slices: is REQUIRED and should be abstract
# fixed in XAMCORE_4_0 - API Break
# fixed in .NET - API Break
!incorrect-protocol-member! MTLBlitCommandEncoder::updateFence: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLBlitCommandEncoder::waitForFence: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLCommandBuffer::GPUEndTime is REQUIRED and should be abstract

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

@ -1,4 +1,4 @@
# fixed in XAMCORE_4_0 - API break
# fixed in .NET - API break
!incorrect-protocol-member! MDLObjectContainerComponent::count is REQUIRED and should be abstract
!incorrect-protocol-member! MDLObjectContainerComponent::objectAtIndexedSubscript: is REQUIRED and should be abstract
!incorrect-protocol-member! MDLTransformComponent::keyTimes is REQUIRED and should be abstract

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

@ -1,4 +1,4 @@
## Breaking changes fixed in XAMCORE_4_0
## Breaking changes fixed in .NET
## we cannot add abstract members to existing SCNSceneRenderer or SCNAnimatable protocols (breaking changes)
!incorrect-protocol-member! SCNAnimatable::addAnimationPlayer:forKey: is REQUIRED and should be abstract
!incorrect-protocol-member! SCNAnimatable::animationPlayerForKey: is REQUIRED and should be abstract
@ -27,7 +27,7 @@
!incorrect-protocol-member! SCNSceneRenderer::usesReverseZ is REQUIRED and should be abstract
!incorrect-protocol-member! SCNSceneRenderer::currentRenderPassDescriptor is REQUIRED and should be abstract
## same for SCNActionable, it is required member of a protocol added to XAMCORE_4_0
## same for SCNActionable, it is required member of a protocol added to .NET
!incorrect-protocol-member! SCNActionable::actionKeys is REQUIRED and should be abstract
## We have managed counterparts that comes from OpenTK code

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

@ -34,6 +34,6 @@
## extra value for initialization
!extra-enum-value! Managed value -1 for SslSessionState.Invalid not found in native headers
## enum moved from long to ulong -> breaking change under XAMCORE_4_0
## enum moved from long to ulong -> breaking change under .NET
!extra-enum-value! Managed value -2147483648 for SecAccessControlCreateFlags.ApplicationPassword not found in native headers
!missing-enum-value! SecAccessControlCreateFlags native value kSecAccessControlApplicationPassword = 2147483648 not bound

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

@ -53,7 +53,7 @@
## it's technically optional but there's no point in adopting the protocol if you do not provide the implemenation
!incorrect-protocol-member! UIInputViewAudioFeedback::enableInputClicksWhenVisible is OPTIONAL and should NOT be abstract
## fixed in XAMCORE_4_0 - API break
## fixed in .NET - API break
!incorrect-protocol-member! UIDynamicAnimatorDelegate::dynamicAnimatorDidPause: is OPTIONAL and should NOT be abstract
!incorrect-protocol-member! UIDynamicAnimatorDelegate::dynamicAnimatorWillResume: is OPTIONAL and should NOT be abstract
!incorrect-protocol-member! UILayoutSupport::bottomAnchor is REQUIRED and should be abstract
@ -151,7 +151,7 @@
!missing-selector! NSObject::setShouldGroupAccessibilityChildren: not bound
!missing-selector! NSObject::shouldGroupAccessibilityChildren not bound
## @required members added to exixting interfaces (breaking change), fixed on XAMCORE_4_0
## @required members added to exixting interfaces (breaking change), fixed on .NET
!incorrect-protocol-member! UIFocusEnvironment::preferredFocusEnvironments is REQUIRED and should be abstract
!incorrect-protocol-member! UITextDocumentProxy::documentInputMode is REQUIRED and should be abstract
!incorrect-protocol-member! UITextDocumentProxy::documentIdentifier is REQUIRED and should be abstract
@ -167,7 +167,7 @@
!missing-enum! NSTextAlignment not bound
## It got renamed from UITextWritingDirection to NSWritingDirection but it is a breaking change
## Fixed in XAMCORE_4_0
## Fixed in .NET
!unknown-native-enum! UITextWritingDirection bound
## macro is used in UIBarCommon.h: #define UIToolbarPosition UIBarPosition

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

@ -1,4 +1,4 @@
## breaking change -> XAMCORE_4_0
## breaking change -> .NET
!incorrect-protocol-member! NFCReaderSessionDelegate::readerSession:didDetectTags: is OPTIONAL and should NOT be abstract
!incorrect-protocol-member! NFCISO15693Tag::customCommandWithRequestFlag:customCommandCode:customRequestParameters:completionHandler: is REQUIRED and should be abstract
!incorrect-protocol-member! NFCISO15693Tag::extendedLockBlockWithRequestFlags:blockNumber:completionHandler: is REQUIRED and should be abstract

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

@ -1,2 +1,2 @@
## Apple made this protocol member optional in iOS 11 but it is a breaking change for us. Added to XAMCORE_4_0.
## Apple made this protocol member optional in iOS 11 but it is a breaking change for us. Added to .NET.
!incorrect-protocol-member! INUIHostedViewControlling::configureWithInteraction:context:completion: is OPTIONAL and should NOT be abstract

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

@ -1,4 +1,4 @@
## [Native] available on XAMCORE_4_0
## [Native] available on .NET
!missing-enum-native! MessageComposeResult
!missing-enum-native! MFMailComposeErrorCode
!missing-enum-native! MFMailComposeResult

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

@ -1,4 +1,4 @@
## fixed for XAMCORE_4_0
## fixed for .NET
!incorrect-protocol-member! QLPreviewItem::previewItemTitle is OPTIONAL and should NOT be abstract
## the pointer (ref) can't be `nil` but it UIView can be (documented as such) so assuming `ref UIView` to be nullable is actually fine

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

@ -15,7 +15,7 @@
## exception name, not clear if useful
!missing-field! UIApplicationInvalidInterfaceOrientationException not bound
## fixed for XAMCORE_4_0
## fixed for .NET
!incorrect-protocol-member! UIDocumentPickerDelegate::documentPicker:didPickDocumentAtURL: is OPTIONAL and should NOT be abstract
!incorrect-protocol-member! UIFocusItem::frame is REQUIRED and should be abstract
!incorrect-protocol-member! UIFocusEnvironment::focusItemContainer is REQUIRED and should be abstract
@ -29,7 +29,7 @@
!extra-protocol-member! unexpected selector UITableViewDelegate::tableView:accessoryTypeForRowWithIndexPath: found
!extra-protocol-member! unexpected selector UIImagePickerControllerDelegate::imagePickerController:didFinishPickingImage:editingInfo: found
# fixed in XAMCORE_4_0 - API break
# fixed in .NET - API break
!incorrect-protocol-member! UIDocumentMenuDelegate::documentMenuWasCancelled: is OPTIONAL and should NOT be abstract
## the category name is clear enough: UIPrintPaper_Deprecated_Nonfunctional

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

@ -1,3 +1,3 @@
## Extra API fixed in XAMCORE_4_0
## Extra API fixed in .NET
!unknown-field! AVKitErrorDomain bound
!unknown-native-enum! AVKitError bound

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

@ -308,7 +308,7 @@
## NSGlyphStorage protocol not bound
!missing-protocol-conformance! NSLayoutManager should conform to NSGlyphStorage (defined in 'NSGlyphGeneration' category)
## Fixed in XAMCORE_4_0
## Fixed in .NET
!missing-protocol-conformance! NSController should conform to NSEditor
!missing-protocol-conformance! NSDocument should conform to NSUserInterfaceValidations
!missing-protocol-conformance! NSDocumentController should conform to NSUserInterfaceValidations

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

@ -3,4 +3,4 @@
!missing-protocol-member! CLLocationManagerDelegate::locationManager:rangingBeaconsDidFailForRegion:withError: not found
!missing-selector! CLBeaconRegion::initWithUUID:identifier: not bound
# Fixed in XAMCORE_4_0
# Fixed in .NET

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

@ -10,7 +10,7 @@
!missing-selector! NSXPCCoder::encodeXPCObject:forKey: not bound
!missing-protocol-conformance! NSXPCConnection should conform to NSXPCProxyCreating
## The AppKit version will be removed in XAMCORE_4_0.
## The AppKit version will be removed in .NET.
## See https://github.com/xamarin/xamarin-macios/issues/6573
!duplicate-type-name! NSWritingDirection enum exists as both Foundation.NSWritingDirection and AppKit.NSWritingDirection

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

@ -5,10 +5,10 @@
!incorrect-protocol-member! GKTurnBasedMatchmakerViewControllerDelegate::turnBasedMatchmakerViewController:didFindMatch: is OPTIONAL and should NOT be abstract
!incorrect-protocol-member! GKTurnBasedMatchmakerViewControllerDelegate::turnBasedMatchmakerViewController:playerQuitForMatch: is OPTIONAL and should NOT be abstract
# Used to remove hard to kill delegate API until XAMCORE_4_0
# Used to remove hard to kill delegate API until .NET
!extra-protocol-member! unexpected selector GKMatchDelegate::xamarin:selector:removed: found
# Fixed in XAMCORE_4_0
# Fixed in .NET
!extra-protocol-member! unexpected selector GKTurnBasedEventListener::player:didRequestMatchWithPlayers: found
# The parent enum GKVoiceChatService is not available in macOS

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

@ -2,7 +2,7 @@
!unknown-native-enum! INSetMessageAttributeIntentResponseCode bound
## Fixed in XAMCORE_4_0 but with a conditional TODO check in code
## Fixed in .NET but with a conditional TODO check in code
## API_AVAILABLE(macosx(10.12), ios(10.0)); This is supposed to be there according to availability (Last Review: Feb 2018)
!unknown-protocol! INCallsDomainHandling bound
@ -39,7 +39,7 @@
!missing-type! INTicketedEvent not bound
!missing-type! INTicketedEventReservation not bound
## Apple fixed API availability fixed in XAMCORE_4_0
## Apple fixed API availability fixed in .NET
!unknown-field! INPersonRelationshipAssistant bound
!unknown-field! INPersonRelationshipBrother bound
!unknown-field! INPersonRelationshipChild bound

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

@ -1,4 +1,4 @@
## Removed in XAMCORE_4_0
## Removed in .NET
!unknown-field! NEFilterProviderRemediationMapRemediationButtonTexts bound
!unknown-field! NEFilterProviderRemediationMapRemediationURLs bound

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

@ -1,3 +1,3 @@
# Fixed in XAMCORE_4_0
# Fixed in .NET
!incorrect-protocol-member! QLPreviewItem::previewItemURL is REQUIRED and should be abstract
!incorrect-protocol-member! QLPreviewingController::preparePreviewOfSearchableItemWithIdentifier:queryString:completionHandler: is OPTIONAL and should NOT be abstract

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

@ -1,2 +1,2 @@
## type not part of macOS, fixed in XAMCORE_4_0
## type not part of macOS, fixed in .NET
!unknown-native-enum! SLComposeViewControllerResult bound

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

@ -1 +0,0 @@
## Fixed in .NET (A.K.A XAMCORE_4_0)

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

@ -1,4 +1,4 @@
## XAMCORE_4_0 - not exposed in any API (and now excluded in Xcode11)
## .NET - not exposed in any API (and now excluded in Xcode11)
!unknown-native-enum! GKPeerPickerConnectionType bound
# API removed by Apple, marked as deprecated

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

@ -16,7 +16,7 @@
!missing-enum! UIImpactFeedbackStyle not bound
!missing-enum! UINotificationFeedbackType not bound
## Marked as not in tvOS in Xcode 8.2 beta 1 but it's a breaking change and it's fixed only in XAMCORE_4_0
## Marked as not in tvOS in Xcode 8.2 beta 1 but it's a breaking change and it's fixed only in .NET
!unknown-native-enum! UICloudSharingPermissionOptions bound
## headers are unclear (added in iOS9.1) but Apple web documentation does not show those members
@ -58,7 +58,7 @@
## https://github.com/xamarin/xamarin-macios/issues/3213 should be fixed before conformance to 'UIStateRestoring' is restored.
!missing-protocol-conformance! UIViewController should conform to UIStateRestoring (defined in 'UIStateRestoration' category)
## fixed for XAMCORE_4_0
## fixed for .NET
!incorrect-protocol-member! UIFocusItem::frame is REQUIRED and should be abstract
!incorrect-protocol-member! UIFocusEnvironment::focusItemContainer is REQUIRED and should be abstract
!incorrect-protocol-member! UIFocusEnvironment::parentFocusEnvironment is REQUIRED and should be abstract

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

@ -1 +0,0 @@
## Fixed in .NET (A.K.A XAMCORE_4_0)

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

@ -1,5 +1,5 @@
## stuff removed in Xcode 12 -> XAMCORE_4_0
## stuff removed in Xcode 12 -> .NET
!unknown-field! MPMediaEntityPropertyPersistentID bound
!unknown-protocol! MPMediaPlayback bound
!unknown-type! MPMediaEntity bound