Skip to content

Commit f83537b

Browse files
github-actions[bot]web-flowjpnurmi
authored
chore(deps): update Cocoa SDK to v9.9.0 (#5115)
* chore: update modules/sentry-cocoa.properties to 9.9.0 * Update bindings Adds "#nullable enable" to silence the following warning: ``` ApiDefinitions.cs(1755,44): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. ``` --------- Co-authored-by: GitHub <noreply@github.com> Co-authored-by: J-P Nurmi <jpnurmi@gmail.com>
1 parent ae0dc99 commit f83537b

4 files changed

Lines changed: 31 additions & 1 deletion

File tree

modules/sentry-cocoa.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = 9.8.0
1+
version = 9.9.0
22
repo = https://github.com/getsentry/sentry-cocoa

scripts/patch-cocoa-bindings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
// If changes are required, update the script instead.
1919
// -----------------------------------------------------------------------------
2020
21+
#nullable enable
22+
2123
";
2224
var code = Header + File.ReadAllText(args[0]);
2325

src/Sentry.Bindings.Cocoa/ApiDefinitions.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// If changes are required, update the script instead.
55
// -----------------------------------------------------------------------------
66

7+
#nullable enable
8+
79
using System;
810
using CoreFoundation;
911
using CoreGraphics;
@@ -1778,6 +1780,10 @@ interface SentryOptions
17781780
[Export("attachStacktrace")]
17791781
bool AttachStacktrace { get; set; }
17801782

1783+
// @property (nonatomic) BOOL attachAllThreads;
1784+
[Export("attachAllThreads")]
1785+
bool AttachAllThreads { get; set; }
1786+
17811787
// @property (nonatomic) NSUInteger maxAttachmentSize;
17821788
[Export("maxAttachmentSize")]
17831789
nuint MaxAttachmentSize { get; set; }
@@ -2645,6 +2651,11 @@ interface SentrySDK
26452651
[Export("captureEvent:withScopeBlock:")]
26462652
SentryId CaptureEvent(SentryEvent @event, Action<SentryScope> block);
26472653

2654+
// +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event attachAllThreads:(BOOL)attachAllThreads;
2655+
[Static]
2656+
[Export("captureEvent:attachAllThreads:")]
2657+
SentryId CaptureEvent(SentryEvent @event, bool attachAllThreads);
2658+
26482659
// +(id<SentrySpan> _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation;
26492660
[Static]
26502661
[Export("startTransactionWithName:operation:")]
@@ -2690,6 +2701,11 @@ interface SentrySDK
26902701
[Export("captureError:withScopeBlock:")]
26912702
SentryId CaptureError(NSError error, Action<SentryScope> block);
26922703

2704+
// +(SentryId * _Nonnull)captureError:(NSError * _Nonnull)error attachAllThreads:(BOOL)attachAllThreads;
2705+
[Static]
2706+
[Export("captureError:attachAllThreads:")]
2707+
SentryId CaptureError(NSError error, bool attachAllThreads);
2708+
26932709
// +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception;
26942710
[Static]
26952711
[Export("captureException:")]
@@ -2705,6 +2721,11 @@ interface SentrySDK
27052721
[Export("captureException:withScopeBlock:")]
27062722
SentryId CaptureException(NSException exception, Action<SentryScope> block);
27072723

2724+
// +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception attachAllThreads:(BOOL)attachAllThreads;
2725+
[Static]
2726+
[Export("captureException:attachAllThreads:")]
2727+
SentryId CaptureException(NSException exception, bool attachAllThreads);
2728+
27082729
// +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message;
27092730
[Static]
27102731
[Export("captureMessage:")]
@@ -2720,6 +2741,11 @@ interface SentrySDK
27202741
[Export("captureMessage:withScopeBlock:")]
27212742
SentryId CaptureMessage(string message, Action<SentryScope> block);
27222743

2744+
// +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message attachAllThreads:(BOOL)attachAllThreads;
2745+
[Static]
2746+
[Export("captureMessage:attachAllThreads:")]
2747+
SentryId CaptureMessage(string message, bool attachAllThreads);
2748+
27232749
// +(void)captureFeedback:(SentryFeedback * _Nonnull)feedback;
27242750
[Static]
27252751
[Export("captureFeedback:")]

src/Sentry.Bindings.Cocoa/StructsAndEnums.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// If changes are required, update the script instead.
55
// -----------------------------------------------------------------------------
66

7+
#nullable enable
8+
79
using System.Runtime.InteropServices;
810
using Foundation;
911
using ObjCRuntime;

0 commit comments

Comments
 (0)