Skip to content
Open
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
2 changes: 1 addition & 1 deletion modules/sentry-cocoa.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = 9.8.0
version = 9.9.0
repo = https://github.com/getsentry/sentry-cocoa
2 changes: 2 additions & 0 deletions scripts/patch-cocoa-bindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
// If changes are required, update the script instead.
// -----------------------------------------------------------------------------

#nullable enable

";
var code = Header + File.ReadAllText(args[0]);

Expand Down
26 changes: 26 additions & 0 deletions src/Sentry.Bindings.Cocoa/ApiDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// If changes are required, update the script instead.
// -----------------------------------------------------------------------------

#nullable enable

using System;
using CoreFoundation;
using CoreGraphics;
Expand Down Expand Up @@ -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; }
Expand Down Expand Up @@ -2645,6 +2651,11 @@ interface SentrySDK
[Export("captureEvent:withScopeBlock:")]
SentryId CaptureEvent(SentryEvent @event, Action<SentryScope> block);

// +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event attachAllThreads:(BOOL)attachAllThreads;
[Static]
[Export("captureEvent:attachAllThreads:")]
SentryId CaptureEvent(SentryEvent @event, bool attachAllThreads);

// +(id<SentrySpan> _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation;
[Static]
[Export("startTransactionWithName:operation:")]
Expand Down Expand Up @@ -2690,6 +2701,11 @@ interface SentrySDK
[Export("captureError:withScopeBlock:")]
SentryId CaptureError(NSError error, Action<SentryScope> 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:")]
Expand All @@ -2705,6 +2721,11 @@ interface SentrySDK
[Export("captureException:withScopeBlock:")]
SentryId CaptureException(NSException exception, Action<SentryScope> 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:")]
Expand All @@ -2720,6 +2741,11 @@ interface SentrySDK
[Export("captureMessage:withScopeBlock:")]
SentryId CaptureMessage(string message, Action<SentryScope> 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:")]
Expand Down
2 changes: 2 additions & 0 deletions src/Sentry.Bindings.Cocoa/StructsAndEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// If changes are required, update the script instead.
// -----------------------------------------------------------------------------

#nullable enable

using System.Runtime.InteropServices;
using Foundation;
using ObjCRuntime;
Expand Down
Loading