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 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 23ecde816c..3c304f29cf 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(); + + // -(SentryObjCScope * _Nonnull)cloneScope:(SentryObjCScope * _Nonnull)scope; + [Export("cloneScope:")] + SentryObjCScope CloneScope(SentryObjCScope scope); } // @interface SentryObjCInternalSdkApi : NSObject