Skip to content

Commit 19db620

Browse files
committed
Code Reviews applied
1 parent 6fc8146 commit 19db620

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

CHANGELOG.md

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

77
- Fail when building Blazor WASM with Profiling. We don't support profiling in Blazor WebAssembly projects. ([#4512](https://github.com/getsentry/sentry-dotnet/pull/4512))
88
- Do not overwrite user IP if it is set manually in ASP.NET sdk ([#4513](https://github.com/getsentry/sentry-dotnet/pull/4513))
9-
- In MAUI Android apps, generate and inject UUID to APK and upload Proguard to Sentry with the UUID ([#4532](https://github.com/getsentry/sentry-dotnet/pull/4532))
9+
- In MAUI Android apps, generate and inject UUID to APK and upload ProGuard mapping to Sentry with the UUID ([#4532](https://github.com/getsentry/sentry-dotnet/pull/4532))
1010
- Fix `SentryOptions.Native.SuppressSignalAborts` and `SuppressExcBadAccess` on iOS ([#4521](https://github.com/getsentry/sentry-dotnet/pull/4521))
1111

1212
## 5.15.0

src/Sentry/buildTransitive/Sentry.targets

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<PropertyGroup>
2020
<SentryAttributesFile>Sentry.Attributes$(MSBuildProjectExtension.Replace('proj', ''))</SentryAttributesFile>
21-
<ProguardUuid>$([System.Guid]::NewGuid())</ProguardUuid>
21+
<SentryProGuardUUID Condition="'$(SentryProGuardUUID)' == ''">$([System.Guid]::NewGuid())</SentryProGuardUUID>
2222
</PropertyGroup>
2323

2424
<Target Name="_SentryEnsureAndroidEnableAssemblyCompressionDisabled"
@@ -126,17 +126,14 @@
126126
<SentrySetCommitReleaseOptions Condition="'$(SentryOrg)' != ''">$(SentrySetCommitReleaseOptions) --org $(SentryOrg)</SentrySetCommitReleaseOptions>
127127
<SentrySetCommitReleaseOptions Condition="'$(SentryProject)' != ''">$(SentrySetCommitReleaseOptions) --project $(SentryProject)</SentrySetCommitReleaseOptions>
128128

129-
<SentryProguardOptions Condition="'$(ProguardUuid)' != ''">$(SentryProguardOptions) --uuid &quot;$(ProguardUuid)&quot;</SentryProguardOptions>
130-
<SentryProguardOptions Condition="'$(ApplicationId)' != ''">$(SentryProguardOptions) --app-id &quot;$(ApplicationId)&quot;</SentryProguardOptions>
131-
<SentryProguardOptions Condition="'$(ApplicationDisplayVersion)' != ''">$(SentryProguardOptions) --version &quot;$(ApplicationDisplayVersion)&quot;</SentryProguardOptions>
132-
<SentryProguardOptions Condition="'$(ApplicationVersion)' != ''">$(SentryProguardOptions) --version-code &quot;$(ApplicationVersion)&quot;</SentryProguardOptions>
133-
<SentryProguardOptions Condition="'$(SentryProguardOptions.Trim())' != ''">$(SentryProguardOptions.trim())</SentryProguardOptions>
129+
<_SentryCLIProGuardOptions Condition="'$(SentryProGuardUUID)' != ''">$(_SentryCLIProGuardOptions) --uuid &quot;$(SentryProGuardUUID)&quot;</_SentryCLIProGuardOptions>
130+
<_SentryCLIProGuardOptions Condition="'$(_SentryCLIProGuardOptions.Trim())' != ''">$(_SentryCLIProGuardOptions.Trim())</_SentryCLIProGuardOptions>
134131

135132
<SentryCLIUploadOptions Condition="'$(SentryOrg)' != ''">$(SentryCLIUploadOptions) --org $(SentryOrg)</SentryCLIUploadOptions>
136133
<SentryCLIUploadOptions Condition="'$(SentryProject)' != ''">$(SentryCLIUploadOptions) --project $(SentryProject)</SentryCLIUploadOptions>
137134
<SentryCLIDebugFilesUploadCommand>$(SentryCLIBaseCommand) debug-files upload</SentryCLIDebugFilesUploadCommand>
138135
<SentryCLIDebugFilesUploadCommand Condition="'$(SentryCLIUploadOptions.Trim())' != ''">$(SentryCLIDebugFilesUploadCommand) $(SentryCLIUploadOptions.Trim())</SentryCLIDebugFilesUploadCommand>
139-
<SentryCLIProGuardMappingUploadCommand>$(SentryCLIBaseCommand) upload-proguard $(SentryProguardOptions)</SentryCLIProGuardMappingUploadCommand>
136+
<SentryCLIProGuardMappingUploadCommand>$(SentryCLIBaseCommand) upload-proguard $(_SentryCLIProGuardOptions)</SentryCLIProGuardMappingUploadCommand>
140137
<SentryCLIProGuardMappingUploadCommand Condition="'$(SentryCLIUploadOptions.Trim())' != ''">$(SentryCLIProGuardMappingUploadCommand) $(SentryCLIUploadOptions.Trim())</SentryCLIProGuardMappingUploadCommand>
141138
</PropertyGroup>
142139

@@ -276,14 +273,13 @@
276273

277274
<Target Name="UpdateAndroidMetadata" BeforeTargets="GetAssemblyAttributes"
278275
Condition="
279-
'$(TargetFramework)' != ''
280-
and $(TargetFramework.Contains('-android'))
276+
$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'
281277
and '$(SentryUploadAndroidProguardMapping)' == 'true'">
282278

283279
<ItemGroup>
284280
<AssemblyAttribute Include="Android.App.MetaData">
285281
<_Parameter1>io.sentry.proguard-uuid</_Parameter1>
286-
<Value>$(ProguardUuid)</Value>
282+
<Value>$(SentryProGuardUUID)</Value>
287283
</AssemblyAttribute>
288284
</ItemGroup>
289285
</Target>

0 commit comments

Comments
 (0)