Skip to content

Commit 084e3b4

Browse files
authored
fix: rename DisableSentryNative to SentryNative (#4134)
1 parent 5ba1e2b commit 084e3b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Features
66

7-
- Option to disable the SentryNative integration ([#4107](https://github.com/getsentry/sentry-dotnet/pull/4107))
7+
- Option to disable the SentryNative integration ([#4107](https://github.com/getsentry/sentry-dotnet/pull/4107), [#4134](https://github.com/getsentry/sentry-dotnet/pull/4134))
88
- Reintroduced experimental support for Session Replay on Android ([#4097](https://github.com/getsentry/sentry-dotnet/pull/4097))
99

1010
### Fixes

src/Sentry/Platforms/Native/buildTransitive/Sentry.Native.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
<Project>
1010

1111
<ItemGroup>
12-
<!-- When user sets <DisableSentryNative>true</DisableSentryNative> in their project -->
12+
<!-- When user sets <SentryNative>false</SentryNative> or <SentryNative>disable</SentryNative> in their project -->
1313
<!-- SentryNative.IsEnabled should result in compile-time constant for trimmed applications -->
1414
<!-- Effectively disabling native library -->
1515
<RuntimeHostConfigurationOption Include="Sentry.Native.IsEnabled"
16-
Condition="'$(DisableSentryNative)' != 'true'"
16+
Condition="'$(SentryNative)' != 'false' and '$(SentryNative)' != 'disable'"
1717
Value="true"
1818
Trim="true" />
1919
</ItemGroup>
@@ -22,7 +22,7 @@
2222
<!-- net8.0 or greater -->
2323
<FrameworkSupportsNative Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) and ('$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe')">true</FrameworkSupportsNative>
2424
<!-- Make it opt-out -->
25-
<FrameworkSupportsNative Condition="'$(DisableSentryNative)' == 'true'">false</FrameworkSupportsNative>
25+
<FrameworkSupportsNative Condition="'$(SentryNative)' == 'false' or '$(SentryNative)' == 'disable'">false</FrameworkSupportsNative>
2626
</PropertyGroup>
2727

2828
<ItemGroup Condition="'$(FrameworkSupportsNative)' == 'true' and '$(RuntimeIdentifier)' == 'win-x64'">

0 commit comments

Comments
 (0)