From 4a393dbd475d7cf9f85c26b42335713e7ae60f63 Mon Sep 17 00:00:00 2001 From: GitHub Date: Sat, 5 Sep 2026 03:01:14 +0000 Subject: [PATCH 1/3] chore: update modules/sentry-cocoa to 9.27.0 --- modules/sentry-cocoa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sentry-cocoa b/modules/sentry-cocoa index a00a9784ff..aaf96c4a41 160000 --- a/modules/sentry-cocoa +++ b/modules/sentry-cocoa @@ -1 +1 @@ -Subproject commit a00a9784fff7193cbb0f9fae509fec8107e07744 +Subproject commit aaf96c4a417d30208b3c25d90910d6156ddc973d From 7d1a658b081567df693ffa36b140ba68102f09de Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Mon, 7 Sep 2026 10:25:30 +1200 Subject: [PATCH 2/3] chore: regenerate Cocoa bindings for v9.27.0 Co-Authored-By: Claude Opus 5 --- src/Sentry.Bindings.Cocoa/ApiDefinitions.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs b/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs index 23ecde816c..4fe6e10b0e 100644 --- a/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs +++ b/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs @@ -1337,6 +1337,10 @@ interface SentryObjCOptions [Export("maxBreadcrumbs")] nuint MaxBreadcrumbs { get; set; } + // @property (nonatomic) NSUInteger maxFeatureFlags; + [Export("maxFeatureFlags")] + nuint MaxFeatureFlags { get; set; } + // @property (nonatomic) BOOL enableNetworkBreadcrumbs; [Export("enableNetworkBreadcrumbs")] bool EnableNetworkBreadcrumbs { get; set; } @@ -1750,6 +1754,18 @@ interface SentryObjCInternalScopeApi // -(NSDictionary *> * _Nonnull)serializedContexts; [Export("serializedContexts")] NSDictionary> SerializedContexts { get; } + + // -(void)withCurrentScope:(SentryObjCScope * _Nonnull)scope callback:(void (^ _Nonnull)(void))callback; + [Export("withCurrentScope:callback:")] + void WithCurrentScope(SentryObjCScope scope, Action callback); + + // -(SentryObjCScope * _Nonnull)createScope; + [Export("createScope")] + SentryObjCScope CreateScope { get; } + + // -(SentryObjCScope * _Nonnull)cloneScope:(SentryObjCScope * _Nonnull)scope; + [Export("cloneScope:")] + SentryObjCScope CloneScope(SentryObjCScope scope); } // @interface SentryObjCInternalSdkApi : NSObject From e8772446b3304a104024bc3ff7b6059340a1f21c Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Mon, 7 Sep 2026 13:14:58 +1200 Subject: [PATCH 3/3] chore: bind Cocoa createScope as a method rather than a property Co-Authored-By: Claude Opus 5 --- scripts/patch-cocoa-bindings.cs | 1 + src/Sentry.Bindings.Cocoa/ApiDefinitions.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/patch-cocoa-bindings.cs b/scripts/patch-cocoa-bindings.cs index ca206b0ee5..b8c2510916 100644 --- a/scripts/patch-cocoa-bindings.cs +++ b/scripts/patch-cocoa-bindings.cs @@ -41,6 +41,7 @@ .PropertyToMethod("Sentry*", "Serialize") .PropertyToMethod("SentryObjCSpan", "ToTraceHeader") .PropertyToMethod("SentryObjCTraceContext", "ToBaggage") + .PropertyToMethod("SentryObjCInternalScopeApi", "CreateScope") // Verify the rest .VerifyProperty("*Sentry*", "*", "MethodToProperty") // TODO: replace broad patterns with one-by-one verification .VerifyProperty("SentryObjCOptions", "*Targets", "StronglyTypedNSArray") diff --git a/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs b/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs index 4fe6e10b0e..3c304f29cf 100644 --- a/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs +++ b/src/Sentry.Bindings.Cocoa/ApiDefinitions.cs @@ -1761,7 +1761,7 @@ interface SentryObjCInternalScopeApi // -(SentryObjCScope * _Nonnull)createScope; [Export("createScope")] - SentryObjCScope CreateScope { get; } + SentryObjCScope CreateScope(); // -(SentryObjCScope * _Nonnull)cloneScope:(SentryObjCScope * _Nonnull)scope; [Export("cloneScope:")]