From 800774ccfe84847afcaa15c61b14a786ed0377ef Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 6 Jun 2024 08:45:40 +0200 Subject: [PATCH] chore(deps): update Cocoa SDK to v8.27.0 (#3408) --- CHANGELOG.md | 3 ++ modules/sentry-cocoa | 2 +- scripts/generate-cocoa-bindings.ps1 | 12 ++++- src/Sentry.Bindings.Cocoa/ApiDefinitions.cs | 12 +++++ src/Sentry.Bindings.Cocoa/StructsAndEnums.cs | 52 +++++++++++--------- 5 files changed, 57 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df138d36ea..f36843c3fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ - Bump Native SDK from v0.7.4 to v0.7.5 ([#3399](https://github.com/getsentry/sentry-dotnet/pull/3399)) - [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#075) - [diff](https://github.com/getsentry/sentry-native/compare/0.7.4...0.7.5) +- Bump Cocoa SDK from v8.26.0 to v8.27.0 ([#3408](https://github.com/getsentry/sentry-dotnet/pull/3408)) + - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8270) + - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.26.0...8.27.0) ## 4.7.0 diff --git a/modules/sentry-cocoa b/modules/sentry-cocoa index 7fc7ca4396..e6f9da251a 160000 --- a/modules/sentry-cocoa +++ b/modules/sentry-cocoa @@ -1 +1 @@ -Subproject commit 7fc7ca43967e2980d8691a8e017c118a84133aac +Subproject commit e6f9da251a4696eec602dd8da8fc689af0a4d8f7 diff --git a/scripts/generate-cocoa-bindings.ps1 b/scripts/generate-cocoa-bindings.ps1 index e15af644b9..0e1a6f6c54 100644 --- a/scripts/generate-cocoa-bindings.ps1 +++ b/scripts/generate-cocoa-bindings.ps1 @@ -204,6 +204,7 @@ $interfacesToRemove = @( 'HTTPHeaderSanitizer', 'LocalMetricsAggregator', 'NSURLSessionTask', + 'SentryBaggageSerialization', 'SentryCurrentDateProvider', 'SentryEnabledFeaturesBuilder', 'SentryExperimentalOptions', @@ -215,10 +216,19 @@ $interfacesToRemove = @( 'SentryMetricsClient', 'SentryOnDemandReplay', 'SentryReplayOptions', + 'SentryRRWebEvent', + 'SentryRRWebCustomEvent', + 'SentryRRWebBreadcrumbEvent', + 'SentryRRWebMetaEvent', + 'SentryRRWebSpanEvent', + 'SentryRRWebVideoEvent', + 'SentryReplayBreadcrumbConverter', + 'SentryReplayRecording', 'SentryVideoInfo', 'SentryViewPhotographer', 'SwiftDescriptor', - 'UrlSanitized' + 'UrlSanitized', + 'URLSessionTaskHelper' ) foreach ($interface in $interfacesToRemove) { diff --git a/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs b/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs index 425d2aa6fa..6b9ccfc1c8 100644 --- a/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs +++ b/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs @@ -30,6 +30,10 @@ namespace Sentry.CocoaSdk; [return: NullAllowed] delegate SentryEvent SentryBeforeSendEventCallback (SentryEvent @event); +// typedef BOOL (^SentryBeforeCaptureScreenshotCallback)(SentryEvent * _Nonnull); +[Internal] +delegate bool SentryBeforeCaptureScreenshotCallback (SentryEvent @event); + // typedef void (^SentryOnCrashedLastRunCallback)(SentryEvent * _Nonnull); [Internal] delegate void SentryOnCrashedLastRunCallback (SentryEvent @event); @@ -1233,6 +1237,10 @@ interface SentryOptions [Export ("enableCrashHandler")] bool EnableCrashHandler { get; set; } + // @property (assign, nonatomic) BOOL enableSigtermReporting; + [Export ("enableSigtermReporting")] + bool EnableSigtermReporting { get; set; } + // @property (assign, nonatomic) NSUInteger maxBreadcrumbs; [Export ("maxBreadcrumbs")] nuint MaxBreadcrumbs { get; set; } @@ -1253,6 +1261,10 @@ interface SentryOptions [NullAllowed, Export ("beforeBreadcrumb", ArgumentSemantic.Copy)] SentryBeforeBreadcrumbCallback BeforeBreadcrumb { get; set; } + // @property (copy, nonatomic) SentryBeforeCaptureScreenshotCallback _Nullable beforeCaptureScreenshot; + [NullAllowed, Export ("beforeCaptureScreenshot", ArgumentSemantic.Copy)] + SentryBeforeCaptureScreenshotCallback BeforeCaptureScreenshot { get; set; } + // @property (copy, nonatomic) SentryOnCrashedLastRunCallback _Nullable onCrashedLastRun; [NullAllowed, Export ("onCrashedLastRun", ArgumentSemantic.Copy)] SentryOnCrashedLastRunCallback OnCrashedLastRun { get; set; } diff --git a/src/Sentry.Bindings.Cocoa/StructsAndEnums.cs b/src/Sentry.Bindings.Cocoa/StructsAndEnums.cs index 03681a8931..faf3161598 100644 --- a/src/Sentry.Bindings.Cocoa/StructsAndEnums.cs +++ b/src/Sentry.Bindings.Cocoa/StructsAndEnums.cs @@ -19,28 +19,6 @@ internal enum SentryLogLevel : long Verbose } -[Native] -internal enum SentryLevel : ulong -{ - None = 0, - Debug = 1, - Info = 2, - Warning = 3, - Error = 4, - Fatal = 5 -} - -[Native] -internal enum SentryTransactionNameSource : long -{ - Custom = 0, - Url, - Route, - View, - Component, - Task -} - [Native] internal enum SentryError : long { @@ -87,3 +65,33 @@ internal enum SentrySpanStatus : ulong OutOfRange, DataLoss } + +[Native] +internal enum SentryLevel : ulong +{ + None = 0, + Debug = 1, + Info = 2, + Warning = 3, + Error = 4, + Fatal = 5 +} + +[Native] +internal enum SentryRRWebEventType : long +{ + None = 0, + Meta = 4, + Custom = 5 +} + +[Native] +internal enum SentryTransactionNameSource : long +{ + Custom = 0, + Url = 1, + Route = 2, + View = 3, + Component = 4, + Task = 5 +}