diff --git a/modules/sentry-cocoa.properties b/modules/sentry-cocoa.properties index c953972b29..da9cf27949 100644 --- a/modules/sentry-cocoa.properties +++ b/modules/sentry-cocoa.properties @@ -1,2 +1,2 @@ -version = 9.8.0 +version = 9.9.0 repo = https://github.com/getsentry/sentry-cocoa diff --git a/scripts/patch-cocoa-bindings.cs b/scripts/patch-cocoa-bindings.cs index a6639fe8a2..46cab0a6d7 100644 --- a/scripts/patch-cocoa-bindings.cs +++ b/scripts/patch-cocoa-bindings.cs @@ -18,6 +18,8 @@ // If changes are required, update the script instead. // ----------------------------------------------------------------------------- +#nullable enable + "; var code = Header + File.ReadAllText(args[0]); diff --git a/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs b/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs index f00a6f2df1..cef90c1033 100644 --- a/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs +++ b/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs @@ -4,6 +4,8 @@ // If changes are required, update the script instead. // ----------------------------------------------------------------------------- +#nullable enable + using System; using CoreFoundation; using CoreGraphics; @@ -1778,6 +1780,10 @@ interface SentryOptions [Export("attachStacktrace")] bool AttachStacktrace { get; set; } + // @property (nonatomic) BOOL attachAllThreads; + [Export("attachAllThreads")] + bool AttachAllThreads { get; set; } + // @property (nonatomic) NSUInteger maxAttachmentSize; [Export("maxAttachmentSize")] nuint MaxAttachmentSize { get; set; } @@ -2645,6 +2651,11 @@ interface SentrySDK [Export("captureEvent:withScopeBlock:")] SentryId CaptureEvent(SentryEvent @event, Action block); + // +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event attachAllThreads:(BOOL)attachAllThreads; + [Static] + [Export("captureEvent:attachAllThreads:")] + SentryId CaptureEvent(SentryEvent @event, bool attachAllThreads); + // +(id _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation; [Static] [Export("startTransactionWithName:operation:")] @@ -2690,6 +2701,11 @@ interface SentrySDK [Export("captureError:withScopeBlock:")] SentryId CaptureError(NSError error, Action block); + // +(SentryId * _Nonnull)captureError:(NSError * _Nonnull)error attachAllThreads:(BOOL)attachAllThreads; + [Static] + [Export("captureError:attachAllThreads:")] + SentryId CaptureError(NSError error, bool attachAllThreads); + // +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception; [Static] [Export("captureException:")] @@ -2705,6 +2721,11 @@ interface SentrySDK [Export("captureException:withScopeBlock:")] SentryId CaptureException(NSException exception, Action block); + // +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception attachAllThreads:(BOOL)attachAllThreads; + [Static] + [Export("captureException:attachAllThreads:")] + SentryId CaptureException(NSException exception, bool attachAllThreads); + // +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message; [Static] [Export("captureMessage:")] @@ -2720,6 +2741,11 @@ interface SentrySDK [Export("captureMessage:withScopeBlock:")] SentryId CaptureMessage(string message, Action block); + // +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message attachAllThreads:(BOOL)attachAllThreads; + [Static] + [Export("captureMessage:attachAllThreads:")] + SentryId CaptureMessage(string message, bool attachAllThreads); + // +(void)captureFeedback:(SentryFeedback * _Nonnull)feedback; [Static] [Export("captureFeedback:")] diff --git a/src/Sentry.Bindings.Cocoa/StructsAndEnums.cs b/src/Sentry.Bindings.Cocoa/StructsAndEnums.cs index 67e8a8a1ae..d8d6b45634 100644 --- a/src/Sentry.Bindings.Cocoa/StructsAndEnums.cs +++ b/src/Sentry.Bindings.Cocoa/StructsAndEnums.cs @@ -4,6 +4,8 @@ // If changes are required, update the script instead. // ----------------------------------------------------------------------------- +#nullable enable + using System.Runtime.InteropServices; using Foundation; using ObjCRuntime;