Skip to content

Commit

Permalink
fix: cocoa bindings generated code line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Nov 27, 2024
1 parent 3d1e1e2 commit 739b3b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/generate-cocoa-bindings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ internal enum SentryTransactionNameSource : long
}
'@

$Text += "`r`n$SentryLevel"
$Text += "`r`n$SentryTransactionNameSource"
$Text += "`n$SentryLevel"
$Text += "`n$SentryTransactionNameSource"

# Add header and output file
$Text = "$Header`n`n$Text"
Expand Down Expand Up @@ -296,7 +296,7 @@ interface SentryId
}
'@

$Text += "`r`n$SentryId"
$Text += "`n$SentryId"

# Add header and output file
$Text = "$Header`n`n$Text"
Expand Down
2 changes: 1 addition & 1 deletion src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<!-- Generate bindings -->
<Target Name="_GenerateSentryCocoaBindings" AfterTargets="SetupCocoaSDK"
Condition="$([MSBuild]::IsOSPlatform('OSX')) and Exists('$(SentryCocoaFrameworkHeaders)')"
Inputs="../../modules/sentry-cocoa.properties"
Inputs="../../modules/sentry-cocoa.properties;../../scripts/generate-cocoa-bindings.ps1"
Outputs="ApiDefinitions.cs;StructsAndEnums.cs">
<MSBuild Projects="$(MSBuildProjectFile)" Targets="_InnerGenerateSentryCocoaBindings" Properties="TargetFramework=once" />
</Target>
Expand Down

0 comments on commit 739b3b1

Please sign in to comment.