Skip to content

Commit 7ae4218

Browse files
committed
Cleanup
1 parent 8318162 commit 7ae4218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/generate-cocoa-bindings.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ $Text = $Text -replace 'interface (SentryRRWebEvent) : SentrySerializable', 'int
265265
# Adjust protocols (some are models)
266266
$Text = $Text -replace '(?ms)(@protocol.+?)/\*.+?\*/', '$1'
267267
$Text = $Text -replace '(?ms)@protocol (SentrySerializable|SentrySpan).+?\[Protocol\]', "`$&`n[Model]"
268-
$Text = $Text -replace '(?ms)@protocol (SentryRedactOptions|SentryCurrentDateProvider).+?\[Protocol \(Name = \"\w+\"\)\]', "`$&`n[Model]"
268+
$Text = $Text -replace '(?ms)@protocol (SentryRedactOptions).+?\[Protocol \(Name = \"\w+\"\)\]', "`$&`n[Model]"
269269

270270
# Adjust base types
271-
$Text = $Text -replace 'interface (SentrySpan|SentryRedactOptions|SentryCurrentDateProvider)\b', "[BaseType (typeof(NSObject))]`n`$&"
271+
$Text = $Text -replace 'interface (SentrySpan|SentryRedactOptions)\b', "[BaseType (typeof(NSObject))]`n`$&"
272272

273273
# Fix string constants
274274
$Text = $Text -replace '(?m)(.*\n){2}^\s{4}NSString k.+?\n\n?', ''

0 commit comments

Comments
 (0)