Skip to content

Commit ce8c1f4

Browse files
committed
Add AndroidApp Check for Android Metadata injection
1 parent ad849d4 commit ce8c1f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Sentry/buildTransitive/Sentry.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@
271271
<Warning Condition="'$(_SentryCLIExitCode)' != '0'" Text="Sentry CLI could not upload debug files." />
272272
</Target>
273273

274-
<Target Name="UpdateAndroidMetadata" BeforeTargets="GetAssemblyAttributes"
275-
Condition="
276-
$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'
274+
<Target Name="UpdateAndroidMetadata"
275+
BeforeTargets="GetAssemblyAttributes"
276+
Condition="'$(AndroidApplication)' == 'true'
277+
and $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'
277278
and '$(SentryUploadAndroidProGuardMapping)' == 'true'">
278-
279279
<ItemGroup>
280280
<AssemblyAttribute Include="Android.App.MetaData">
281281
<_Parameter1>io.sentry.proguard-uuid</_Parameter1>

0 commit comments

Comments
 (0)