xamarin-macios/tests/xtro-sharpie/iOS-Foundation.ignore

32 строки
3.7 KiB
Plaintext
Исходник Обычный вид История

!missing-selector! +NSURLConnection::sendSynchronousRequest:returningResponse:error: not bound
!missing-selector! NSFileProviderService::getFileProviderConnectionWithCompletionHandler: not bound
Add bindings for NSXpcConnection and related types (#7001) * Add bindings for NSXpcConnection and related types * Re-add accidentally deleted file * Typo fix * Add NSXpcInterface.CreateForType() * Add MethodInfo-taking overloads to NSXpcInterface * Add null check * Mark methods with wrappers as internal Also fixed a formatting bug that I didn't catch earlier. * Change NSXPCProxyCreating methods to be strongly typed I got rid of the NSXpcProxyCreating interface in this change, because its only user was NSXpcConnection, and I needed to inline the protocol methods into the class definition so I could mark them as [Internal]. * Add missing casts * Add NSXpcConnectionOptions enum * Convert NSXpcConnection constructor to use new enum * Remove now-unneeded manual constructor * Fix bgen warning * Typo fix * Fix selector * Remove incorrect use of BindAsAttribute Per the docs, this only works for enums backed by NSNumber and NSValue, not for enums passed directly as integers. * Fix duplicated selector errors * Throw ArgumentException instead of InvalidOperationException * Extend AppExtension targets to produce XPC services Rather than create an entirely new set of targets (that would require VS and VSMac updates to properly consume), I have decided to use the existing AppExtension build targets to produce XPC services as well. All the user must do is set the $(IsXPCService) property to true in their project file, and the targets will do The Right Thing™. Note that this support is Mac-only for now; I may need a bit of help adjusting them to work on for iOS/watchOS/tvOS, as I am not as familiar with those platforms. * Copy XPC service bundles into the correct location * Move IsXPCService property definition to props file * Don't pass /extension to mmp for XPC service targets This would cause the XPC service binary to be linked incorrectly. * Add NSXpcConnection/NSXpcInterface.cs files to the build * Fix build * Fix build * Add required type parameter requirements * Fix type parameter requirements * Fix return type * Fix return type of NSXpcInterface.CreateForProtocol () * Take ownership of the returned object types * Adjust XPC service mmp invocation I need to link the XPC service bundle as if it is an app extension, but I must not use xamarin_mac_extension_main. I added a new flag to make this possible. * Change mmp to correctly construct XPC service bundle * Set the MonoBundleExecutable Info.plist key for XPC services * Use the runtime to get the protocol * Make NSXpcInterface.CreateForProtocol() public The static registrar must be used for Cocoa to accept the protocol as a valid XPC interface, but that then seems to break resolving the protocol from the type. I must therefore hard-code the protocol name in my code, and that requires I make this constructor public. * Add XpcInterfaceAttribute See the doc comment in XpcInterfaceAttribute.cs for why this type is required. The referenced mmp optimizations will be added in future commits. * Add XpcInterfaceAttribute to generator build * Add support for XpcInterfaceAttribute to the generator * Force static generation of protocols decorated with XpcInterfaceAttribute * Change how static registrar translates block parameters Previously, they would always be marshalled as "id". This would throw off the XPC subsystem, which parses the block signature to determine the communication protocol. * Undo whitespace noise * Remove unneeded casts * Add trailing comma * Use HasAttribute instead of GetCustomAttribute * Fix style issues * Bind NSXpcConnection.auditSessionIdentifier * Address naming feedback * Make Get/SetAllowedClasses public IMHO, passing the selector as a string is just as usable as passing a MethodInfo, and is also less verbose if you copy/paste the selector string from the ExportAttribute. There is no reason why we cannot have both overloads be public. * Update overload names to match * Update more overload names to match * Make mmp --xpc imply --extension * Reformat if statement * Fix build * Conditionalize creation of PlugIns and XPCServices directories * Add AutoGeneratedName Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com> * Get rid of ProtocolizeAttribute * Update availability attributes to please xharness I actually think xharness is wrong here, since the NSXPCConnection header lists these types as being available starting in macOS 10.8. * Update sharpie ignore files to reflect changes This should fix the xtro-sharpie test failures CI has been reporting. * Fix MM4105 error generation * Adjust error message in test to match mmp I had to change the error text slightly, because the type of the parameter cannot be determined where the error is thrown anymore. However, the newer exception message IMO is just as clear. * Make exception message match test exactly * Remove outdated copyright header text * Remove more outdated copyright header text * Revert changes to MM4105 error generation I have a more elegant way of fixing this test now. * Return "id" if Invoke method cannot be found This fixes the MM4105 error unit test, without requiring modification to that test. * Remove redundant availability attributes * Add DesignatedInitializerAttribute * Re-add required code to macOS-Foundation.ignore * Put DesignatedInitializer on the right constructor * Update xtro-sharpie ignore files
2019-10-22 16:38:01 +03:00
!missing-protocol-conformance! NSXPCConnection should conform to NSXPCProxyCreating
!missing-selector! NSXPCInterface::interfaceForSelector:argumentIndex:ofReply: not bound
!missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound
## does not exists in iOS as a type - but some API refers to it (messy)
!unknown-type! NSPortMessage bound
# Initial result from new rule missing-null-allowed
!missing-null-allowed! 'Foundation.NSCharacterSet Foundation.NSMutableCharacterSet::FromFile(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData Foundation.NSNetService::GetTxtRecordData()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData[] Foundation.NSNetService::get_Addresses()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1
!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrlConnection Foundation.NSUrlConnection::FromRequest(Foundation.NSUrlRequest,Foundation.INSUrlConnectionDelegate)' is missing an [NullAllowed] on parameter #1
!missing-null-allowed! 'Foundation.NSUrlConnection Foundation.NSUrlConnection::FromRequest(Foundation.NSUrlRequest,Foundation.INSUrlConnectionDelegate)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.Boolean Foundation.NSNetService::SetTxtRecordData(Foundation.NSData)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.String Foundation.NSNetService::get_HostName()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0
!missing-null-allowed! 'System.Void Foundation.NSUrlConnection::.ctor(Foundation.NSUrlRequest,Foundation.INSUrlConnectionDelegate)' is missing an [NullAllowed] on parameter #1
!missing-null-allowed! 'System.Void Foundation.NSUrlConnection::.ctor(Foundation.NSUrlRequest,Foundation.INSUrlConnectionDelegate,System.Boolean)' is missing an [NullAllowed] on parameter #1