Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update Cocoa SDK to v8.27.0 #3408

Merged
merged 2 commits into from
Jun 6, 2024
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,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

Expand Down
2 changes: 1 addition & 1 deletion modules/sentry-cocoa
Submodule sentry-cocoa updated 187 files
12 changes: 11 additions & 1 deletion scripts/generate-cocoa-bindings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ $interfacesToRemove = @(
'HTTPHeaderSanitizer',
'LocalMetricsAggregator',
'NSURLSessionTask',
'SentryBaggageSerialization',
'SentryCurrentDateProvider',
'SentryEnabledFeaturesBuilder',
'SentryExperimentalOptions',
Expand All @@ -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) {
Expand Down
12 changes: 12 additions & 0 deletions src/Sentry.Bindings.Cocoa/ApiDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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; }
Expand All @@ -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; }
Expand Down
52 changes: 30 additions & 22 deletions src/Sentry.Bindings.Cocoa/StructsAndEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
}
Loading