Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Foundation/Enum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,10 @@ public enum NSIso8601DateFormatOptions : ulong {
public enum NSUrlSessionTaskMetricsResourceFetchType : long {
Unknown,
NetworkLoad,
[Deprecated (PlatformName.iOS, 18, 4, message: "Not supported in iOS 17+.")] // message mentions one OS version and the actual deprecation OS version don't match, but that's what the headers do.
[Deprecated (PlatformName.TvOS, 18, 4, message: "Not supported in tvOS 17+.")] // message mentions one OS version and the actual deprecation OS version don't match, but that's what the headers do.
[Deprecated (PlatformName.MacCatalyst, 18, 4, message: "Not supported in Mac Catalyst 17+.")] // message mentions one OS version and the actual deprecation OS version don't match, but that's what the headers do.
[Deprecated (PlatformName.MacOSX, 15, 4, message: "Not supported in macOS 14+.")] // message mentions one OS version and the actual deprecation OS version don't match, but that's what the headers do.
ServerPush,
LocalCache,
}
Expand Down
33 changes: 33 additions & 0 deletions src/foundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,14 @@ interface NSCoder {
[Export ("decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:")]
[return: NullAllowed]
NSDictionary DecodeDictionary (NSSet<Class> keyClasses, NSSet<Class> objectClasses, string key);

[TV (18, 4), iOS (18, 4), MacCatalyst (18, 4), Mac (15, 4)]
[Export ("decodeBytesWithMinimumLength:")]
IntPtr DecodeBytes (nuint minimumLength);

[TV (18, 4), iOS (18, 4), MacCatalyst (18, 4), Mac (15, 4)]
[Export ("decodeBytesForKey:minimumLength:")]
IntPtr DecodeBytes (string key, nuint minimumLength);
}

[BaseType (typeof (NSPredicate))]
Expand Down Expand Up @@ -8262,6 +8270,10 @@ ProxyConfigurationDictionary StrongConnectionProxyDictionary {
[Export ("TLSMaximumSupportedProtocolVersion", ArgumentSemantic.Assign)]
TlsProtocolVersion TlsMaximumSupportedProtocolVersion { get; set; }

[Deprecated (PlatformName.iOS, 18, 4, message: "Use HTTP/2 or HTTP/3 instead. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.TvOS, 18, 4, message: "Use HTTP/2 or HTTP/3 instead. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.MacCatalyst, 18, 4, message: "Use HTTP/2 or HTTP/3 instead. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.MacOSX, 15, 4, message: "Use HTTP/2 or HTTP/3 instead. Only supported when the classic loader is enabled.")]
[Export ("HTTPShouldUsePipelining")]
bool HttpShouldUsePipelining { get; set; }

Expand Down Expand Up @@ -8304,6 +8316,10 @@ ProxyConfigurationDictionary StrongConnectionProxyDictionary {
[Static, Export ("backgroundSessionConfigurationWithIdentifier:")]
NSUrlSessionConfiguration _CreateBackgroundSessionConfiguration (string identifier);

[Deprecated (PlatformName.iOS, 18, 4, message: "Not supported anymore.")]
[Deprecated (PlatformName.TvOS, 18, 4, message: "Not supported anymore.")]
[Deprecated (PlatformName.MacCatalyst, 18, 4, message: "Not supported anymore.")]
[Deprecated (PlatformName.MacOSX, 15, 4, message: "Not supported anymore.")]
[MacCatalyst (13, 1)]
[Export ("shouldUseExtendedBackgroundIdleMode")]
bool ShouldUseExtendedBackgroundIdleMode { get; set; }
Expand Down Expand Up @@ -8335,6 +8351,10 @@ ProxyConfigurationDictionary StrongConnectionProxyDictionary {
[Internal]
[Export ("proxyConfigurations", ArgumentSemantic.Copy)]
IntPtr _ProxyConfigurations { get; set; }

[iOS (18, 4), TV (18, 4), MacCatalyst (18, 4), Mac (15, 4)]
[Export ("usesClassicLoadingMode")]
bool UsesClassicLoadingMode { get; set; }
}

[MacCatalyst (13, 1)]
Expand Down Expand Up @@ -8668,9 +8688,17 @@ interface NSUrlProtectionSpace : NSSecureCoding, NSCopying {
[Field ("NSURLProtectionSpaceHTTPS")]
NSString HTTPS { get; }

[Deprecated (PlatformName.iOS, 18, 4, message: "FTP is deprecated. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.TvOS, 18, 4, message: "FTP is deprecated. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.MacCatalyst, 18, 4, message: "FTP is deprecated. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.MacOSX, 15, 4, message: "FTP is deprecated. Only supported when the classic loader is enabled.")]
[Field ("NSURLProtectionSpaceFTP")]
NSString FTP { get; }

[Deprecated (PlatformName.iOS, 18, 4, message: "FTP is deprecated. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.TvOS, 18, 4, message: "FTP is deprecated. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.MacCatalyst, 18, 4, message: "FTP is deprecated. Only supported when the classic loader is enabled.")]
[Deprecated (PlatformName.MacOSX, 15, 4, message: "FTP is deprecated. Only supported when the classic loader is enabled.")]
[Field ("NSURLProtectionSpaceHTTPProxy")]
NSString HTTPProxy { get; }

Expand Down Expand Up @@ -11023,6 +11051,11 @@ partial interface NSBundle {
[Notification]
[Field ("NSBundleDidLoadNotification")]
NSString BundleDidLoadNotification { get; }

// bound using NSString instead of string, because often localized NSString has extra information we can't marshal to a C# string
[TV (18, 4), iOS (18, 4), MacCatalyst (18, 4), Mac (15, 4)]
[Export ("localizedStringForKey:value:table:localizations:")]
NSString GetLocalizedString (NSString key, [NullAllowed] NSString value, [NullAllowed] NSString tableName, NSString [] localizations);
}

[NoMac]
Expand Down
4 changes: 4 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29373,6 +29373,7 @@ M:Foundation.NSAttributedStringDocumentAttributes.#ctor(Foundation.NSDictionary)
M:Foundation.NSBindingSelectionMarker.GetDefaultPlaceholder(Foundation.NSBindingSelectionMarker,ObjCRuntime.Class,System.String)
M:Foundation.NSBindingSelectionMarker.SetDefaultPlaceholder(Foundation.NSObject,Foundation.NSBindingSelectionMarker,ObjCRuntime.Class,System.String)
M:Foundation.NSBundle.GetContextHelp(System.String)
M:Foundation.NSBundle.GetLocalizedString(Foundation.NSString,Foundation.NSString,Foundation.NSString,Foundation.NSString[])
M:Foundation.NSBundle.GetLocalizedString(System.String,System.String,System.String)
M:Foundation.NSBundle.GetUrlForImageResource(System.String)
M:Foundation.NSBundle.ImageForResource(System.String)
Expand All @@ -29395,7 +29396,9 @@ M:Foundation.NSCache.SetObjectForKey(Foundation.NSObject,Foundation.NSObject)
M:Foundation.NSCacheDelegate_Extensions.WillEvictObject(Foundation.INSCacheDelegate,Foundation.NSCache,Foundation.NSObject)
M:Foundation.NSCalendar.#ctor(Foundation.NSCalendarType)
M:Foundation.NSCoder.DecodeBytes
M:Foundation.NSCoder.DecodeBytes(System.String,System.UIntPtr)
M:Foundation.NSCoder.DecodeBytes(System.String)
M:Foundation.NSCoder.DecodeBytes(System.UIntPtr)
M:Foundation.NSCoder.DecodeTopLevelObject(System.Type,System.String,Foundation.NSError@)
M:Foundation.NSCoder.DecodeTopLevelObject(System.Type[],System.String,Foundation.NSError@)
M:Foundation.NSCoder.Encode(System.Byte[],System.Int32,System.Int32,System.String)
Expand Down Expand Up @@ -54363,6 +54366,7 @@ P:Foundation.NSUrlSessionConfiguration.EphemeralSessionConfiguration
P:Foundation.NSUrlSessionConfiguration.ProxyConfigurations
P:Foundation.NSUrlSessionConfiguration.SessionType
P:Foundation.NSUrlSessionConfiguration.StrongConnectionProxyDictionary
P:Foundation.NSUrlSessionConfiguration.UsesClassicLoadingMode
P:Foundation.NSUrlSessionDataTaskRequest.Data
P:Foundation.NSUrlSessionDataTaskRequest.Response
P:Foundation.NSUrlSessionDownloadDelegate.TaskResumeDataKey
Expand Down

This file was deleted.

9 changes: 0 additions & 9 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo

This file was deleted.

This file was deleted.

This file was deleted.

Loading