Skip to content

Commit

Permalink
Verify that test server recieves proguard mapping file (#2952)
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

* Merge main

commit de20b78
Author: Ivan Dlugos <[email protected]>
Date:   Wed Dec 6 14:37:19 2023 +0100

    Revert "Proguard upload test (#2947)" (#2951)

commit d7a04a8
Author: Ivan Dlugos <[email protected]>
Date:   Wed Dec 6 13:42:17 2023 +0100

    test: fix maui integration test (#2948)

commit 22e93a7
Author: Giorgi Dalakishvili <[email protected]>
Date:   Wed Dec 6 00:56:00 2023 +0400

    Proguard upload test (#2947)

    * Generate and upload mapping file for test app

    * Verify that test server recieves proguard mapping file

* Move server assets to dotnet project

* Revert "Move server assets to dotnet project"

This reverts commit 0aedcbd.
  • Loading branch information
Giorgi authored Dec 7, 2023
1 parent de181a0 commit e1054fc
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 @@ -152,6 +152,7 @@ Describe 'MAUI' -ForEach @(
'libxamarin-app.so',
'maui-app.pdb'
)
$result.ScriptOutput | Should -AnyElementMatch 'Uploaded a total of 1 new mapping files'
$result.ScriptOutput | Should -AnyElementMatch 'Found 17 debug information files \(1 with embedded sources\)'
}

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 e1054fc

Please sign in to comment.