Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Clean up unnecessary modifications for CS0108 (disabled)
  • Loading branch information
jpnurmi committed Sep 16, 2025
commit e7b1919faf524bd36fa32a72b6e444a740ff65a9
3 changes: 0 additions & 3 deletions scripts/generate-cocoa-bindings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,6 @@ $Text = $Text -replace '([\[,] )iOS \(', '$1Introduced (PlatformName.iOS, '
# Make interface partial if we need to access private APIs. Other parts will be defined in PrivateApiDefinitions.cs
$Text = $Text -replace '(?m)^interface SentryScope', 'partial $&'

# Prefix SentryBreadcrumb.Serialize and SentryScope.Serialize with new (since these hide the base method)
$Text = $Text -replace '(?m)(^\s*\/\/[^\r\n]*$\s*\[Export \("serialize"\)\]$\s*)(NSDictionary)', '${1}new $2'

$Text = $Text -replace '.*SentryEnvelope .*?[\s\S]*?\n\n', ''
$Text = $Text -replace '.*typedef.*SentryOnAppStartMeasurementAvailable.*?[\s\S]*?\n\n', ''

Expand Down
4 changes: 2 additions & 2 deletions src/Sentry.Bindings.Cocoa/ApiDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ interface SentryBreadcrumb : SentrySerializable

// -(NSDictionary<NSString *,id> * _Nonnull)serialize;
[Export ("serialize")]
new NSDictionary<NSString, NSObject> Serialize();
NSDictionary<NSString, NSObject> Serialize();

// -(BOOL)isEqualToBreadcrumb:(SentryBreadcrumb * _Nonnull)breadcrumb;
[Export ("isEqualToBreadcrumb:")]
Expand Down Expand Up @@ -1873,7 +1873,7 @@ partial interface SentryScope : SentrySerializable

// -(NSDictionary<NSString *,id> * _Nonnull)serialize;
[Export ("serialize")]
new NSDictionary<NSString, NSObject> Serialize();
NSDictionary<NSString, NSObject> Serialize();

// -(void)setContextValue:(NSDictionary<NSString *,id> * _Nonnull)value forKey:(NSString * _Nonnull)key __attribute__((swift_name("setContext(value:key:)")));
[Export ("setContextValue:forKey:")]
Expand Down
Loading