Skip to content

Commit

Permalink
Proguard upload test (#2947)
Browse files Browse the repository at this point in the history
* Generate and upload mapping file for test app

* Verify that test server recieves proguard mapping file
  • Loading branch information
Giorgi authored Dec 5, 2023
1 parent 649c74c commit 22e93a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration-test/cli.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Describe 'MAUI' -ForEach @(
'maui-app.pdb'
)
$result.ScriptOutput | Should -AnyElementMatch 'Found 1 debug information file \(1 with embedded sources\)'
$result.ScriptOutput | Should -AnyElementMatch 'Uploaded a total of 1 new mapping files'
}

It "uploads symbols and sources for an iOS build" -Skip:(!$IsMacOS) {
Expand Down
13 changes: 13 additions & 0 deletions integration-test/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,19 @@ BeforeAll {
throw "Failed to create the test app '$name' from template '$type'."
}

if ($type -eq 'maui')
{
@"
<Project>
<PropertyGroup>
<SentryUploadAndroidProguardMapping>true</SentryUploadAndroidProguardMapping>
<AndroidLinkTool Condition=`" '`$(AndroidLinkTool)' == '' `">r8</AndroidLinkTool>
<AndroidDexTool Condition=`" '`$(AndroidDexTool)' == '' `">d8</AndroidDexTool>
</PropertyGroup>
</Project>
"@ | Out-File $name/Directory.Build.props
}

if ($type -eq 'console')
{
AddPackageReference $name 'Sentry'
Expand Down

0 comments on commit 22e93a7

Please sign in to comment.