Skip to content
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
2 changes: 1 addition & 1 deletion modules/sentry-cocoa
Submodule sentry-cocoa updated 417 files
12 changes: 11 additions & 1 deletion scripts/patch-cocoa-bindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@

// Fix broken multi-line comments
code = Regex.Replace(code, @"(DEPRECATED_MSG_ATTRIBUTE\()\n\s*", "$1");
code = Regex.Replace(code, @"(DEPRECATED_MSG_ATTRIBUTE\([^)]*?)""\s*\r?\n\s*""", "$1 ");
// A single message can be split over three or more adjacent string literals. The pattern is
// anchored on DEPRECATED_MSG_ATTRIBUTE( and scanning resumes past each match, so one pass joins
// only the first pair - repeat to a fixed point or the tail stays on its own uncommented line.
for (string previous = ""; previous != code;)
{
previous = code;
code = Regex.Replace(code, @"(DEPRECATED_MSG_ATTRIBUTE\([^)]*?)""\s*\r?\n\s*""", "$1 ");
}

var tree = CSharpSyntaxTree.ParseText(code);
var nodes = tree.GetCompilationUnitRoot()
Expand Down Expand Up @@ -72,6 +79,9 @@
.RemoveProperty("SentryObjCOptions", "BeforeSendLog")
.RemoveProperty("SentryObjCOptions", "BeforeSendMetric")
.RemoveProperty("SentryObjCOptions", "ConfigureUserFeedback")
.RemoveProperty("SentryObjCOptions", "BeforeSendWithHint")
.RemoveProperty("SentryObjCOptions", "BeforeBreadcrumbWithHint")
.RemoveProperty("SentryObjCOptions", "ConfigureProfiling")
// SentryObjCSDK is both the public entry point and the hybrid-SDK gateway (via `internal`).
// Keep the public members the .NET SDK calls plus the `internal` accessor; drop the rest, whose
// signatures reference SentryObjC* types we don't whitelist.
Expand Down
7 changes: 7 additions & 0 deletions src/Sentry.Bindings.Cocoa/StructsAndEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ internal enum SentryObjCLogLevel : long
Fatal
}

[Native]
internal enum SentryObjCProfileLifecycle : long
{
Manual = 0,
Trace
}

[Native]
internal enum SentryObjCReplayQuality : long
{
Expand Down
Loading