-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: debug images for Portable PDB (#2050)
- Loading branch information
Showing
94 changed files
with
3,914 additions
and
677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ docs/docfx.zip | |
*.received.* | ||
mono_crash.*.json | ||
test_output/ | ||
test/**/*.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Similar to `dotnet verify accept` but doesn't create new runtime-specific ".verified" files if a common one exists. | ||
param([switch] $DryRun) | ||
|
||
Set-StrictMode -Version Latest | ||
$ErrorActionPreference = "Stop" | ||
|
||
$receivedFiles = Get-ChildItem . -Recurse -File -Include "*.received.txt" | ||
|
||
$receivedFiles | ForEach-Object { | ||
$nameWithRuntime = ($_.BaseName.Split(".") | Select-Object -SkipLast 1) -join "." | ||
$nameWithoutRuntime = ($_.BaseName.Split(".") | Select-Object -SkipLast 2) -join "." | ||
$ext = ".verified.txt" | ||
|
||
$targetFile = (Test-Path "$($_.Directory)/$nameWithoutRuntime$ext") ` | ||
? "$($_.Directory)/$nameWithoutRuntime$ext" ` | ||
: "$($_.Directory)/$nameWithRuntime$ext" | ||
|
||
Write-Host "Updating $($targetFile.Replace((Get-Item .).FullName, ''))" | ||
if (-not ($DryRun)) | ||
{ | ||
Move-Item $_ $targetFile -Force | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
param([switch] $IfNotExist) | ||
|
||
Set-StrictMode -Version Latest | ||
$ErrorActionPreference = "Stop" | ||
|
||
$repoRoot = "$PSScriptRoot/.." | ||
$apkDir = "$repoRoot/test/Sentry.Android.Tests/TestAPKs" | ||
|
||
New-Item -ItemType Directory -Force -Path $apkDir | Out-Null | ||
$apkDir = Resolve-Path $apkDir | ||
|
||
function BuildAndroidSample([bool] $UseAssemblyStore, [bool] $UseAssemblyCompression) | ||
{ | ||
$testAppDir = "$repoRoot/test/AndroidTestApp" | ||
$outputApk = "$apkDir/android-Store=$UseAssemblyStore-Compressed=$UseAssemblyCompression.apk" | ||
|
||
if ($IfNotExist -and (Test-Path $outputApk)) | ||
{ | ||
Write-Host "$outputApk already exists, skipping build" | ||
return | ||
} | ||
|
||
Push-Location -Verbose $testAppDir | ||
try | ||
{ | ||
# Need to do a clean build otherwise some DLLs would end up being compressed even if it's disabled on this run. | ||
dotnet build --configuration Release --no-incremental ` | ||
--property:AndroidUseAssemblyStore=$UseAssemblyStore ` | ||
--property:AndroidEnableAssemblyCompression=$UseAssemblyCompression ` | ||
| Out-Host | ||
if ($LASTEXITCODE -ne 0) | ||
{ | ||
exit $LASTEXITCODE | ||
} | ||
} | ||
finally | ||
{ | ||
Pop-Location | ||
} | ||
|
||
Move-Item "$testAppDir/bin/Release/*/*-signed.apk" $outputApk | ||
} | ||
|
||
if (!$IfNotExist) | ||
{ | ||
Remove-Item "$apkDir/*.apk" | ||
} | ||
|
||
BuildAndroidSample $true $true | ||
BuildAndroidSample $true $false | ||
BuildAndroidSample $false $true | ||
BuildAndroidSample $false $false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.