|
18 | 18 |
|
19 | 19 | <PropertyGroup> |
20 | 20 | <SentryAttributesFile>Sentry.Attributes$(MSBuildProjectExtension.Replace('proj', ''))</SentryAttributesFile> |
21 | | - <ProguardUuid>$([System.Guid]::NewGuid())</ProguardUuid> |
| 21 | + <SentryProGuardUUID Condition="'$(SentryProGuardUUID)' == ''">$([System.Guid]::NewGuid())</SentryProGuardUUID> |
22 | 22 | </PropertyGroup> |
23 | 23 |
|
24 | 24 | <Target Name="_SentryEnsureAndroidEnableAssemblyCompressionDisabled" |
|
126 | 126 | <SentrySetCommitReleaseOptions Condition="'$(SentryOrg)' != ''">$(SentrySetCommitReleaseOptions) --org $(SentryOrg)</SentrySetCommitReleaseOptions> |
127 | 127 | <SentrySetCommitReleaseOptions Condition="'$(SentryProject)' != ''">$(SentrySetCommitReleaseOptions) --project $(SentryProject)</SentrySetCommitReleaseOptions> |
128 | 128 |
|
129 | | - <SentryProguardOptions Condition="'$(ProguardUuid)' != ''">$(SentryProguardOptions) --uuid "$(ProguardUuid)"</SentryProguardOptions> |
130 | | - <SentryProguardOptions Condition="'$(ApplicationId)' != ''">$(SentryProguardOptions) --app-id "$(ApplicationId)"</SentryProguardOptions> |
131 | | - <SentryProguardOptions Condition="'$(ApplicationDisplayVersion)' != ''">$(SentryProguardOptions) --version "$(ApplicationDisplayVersion)"</SentryProguardOptions> |
132 | | - <SentryProguardOptions Condition="'$(ApplicationVersion)' != ''">$(SentryProguardOptions) --version-code "$(ApplicationVersion)"</SentryProguardOptions> |
133 | | - <SentryProguardOptions Condition="'$(SentryProguardOptions.Trim())' != ''">$(SentryProguardOptions.trim())</SentryProguardOptions> |
| 129 | + <_SentryCLIProGuardOptions Condition="'$(SentryProGuardUUID)' != ''">$(_SentryCLIProGuardOptions) --uuid "$(SentryProGuardUUID)"</_SentryCLIProGuardOptions> |
| 130 | + <_SentryCLIProGuardOptions Condition="'$(_SentryCLIProGuardOptions.Trim())' != ''">$(_SentryCLIProGuardOptions.Trim())</_SentryCLIProGuardOptions> |
134 | 131 |
|
135 | 132 | <SentryCLIUploadOptions Condition="'$(SentryOrg)' != ''">$(SentryCLIUploadOptions) --org $(SentryOrg)</SentryCLIUploadOptions> |
136 | 133 | <SentryCLIUploadOptions Condition="'$(SentryProject)' != ''">$(SentryCLIUploadOptions) --project $(SentryProject)</SentryCLIUploadOptions> |
137 | 134 | <SentryCLIDebugFilesUploadCommand>$(SentryCLIBaseCommand) debug-files upload</SentryCLIDebugFilesUploadCommand> |
138 | 135 | <SentryCLIDebugFilesUploadCommand Condition="'$(SentryCLIUploadOptions.Trim())' != ''">$(SentryCLIDebugFilesUploadCommand) $(SentryCLIUploadOptions.Trim())</SentryCLIDebugFilesUploadCommand> |
139 | | - <SentryCLIProGuardMappingUploadCommand>$(SentryCLIBaseCommand) upload-proguard $(SentryProguardOptions)</SentryCLIProGuardMappingUploadCommand> |
| 136 | + <SentryCLIProGuardMappingUploadCommand>$(SentryCLIBaseCommand) upload-proguard $(_SentryCLIProGuardOptions)</SentryCLIProGuardMappingUploadCommand> |
140 | 137 | <SentryCLIProGuardMappingUploadCommand Condition="'$(SentryCLIUploadOptions.Trim())' != ''">$(SentryCLIProGuardMappingUploadCommand) $(SentryCLIUploadOptions.Trim())</SentryCLIProGuardMappingUploadCommand> |
141 | 138 | </PropertyGroup> |
142 | 139 |
|
|
276 | 273 |
|
277 | 274 | <Target Name="UpdateAndroidMetadata" BeforeTargets="GetAssemblyAttributes" |
278 | 275 | Condition=" |
279 | | - '$(TargetFramework)' != '' |
280 | | - and $(TargetFramework.Contains('-android')) |
| 276 | + $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' |
281 | 277 | and '$(SentryUploadAndroidProguardMapping)' == 'true'"> |
282 | 278 |
|
283 | 279 | <ItemGroup> |
284 | 280 | <AssemblyAttribute Include="Android.App.MetaData"> |
285 | 281 | <_Parameter1>io.sentry.proguard-uuid</_Parameter1> |
286 | | - <Value>$(ProguardUuid)</Value> |
| 282 | + <Value>$(SentryProGuardUUID)</Value> |
287 | 283 | </AssemblyAttribute> |
288 | 284 | </ItemGroup> |
289 | 285 | </Target> |
|
0 commit comments