Remove dead-code survivors from census REC-027/REC-106

REC-027: delete scripts/capture-android-screenshot.ps1. EveFlutter's copy
(F:/Projects/EveFlutter/scripts/capture-android-screenshot.ps1) matches
byte-for-byte (sha256 75abf61227a12f760d277a3995b0170e2aac74d362940ba6cb109053aabe0f24,
3774 bytes) and is the only caller found, invoked by
EveFlutter/scripts/capture-android-flutter-parity.ps1:58. Kill-attempt
searches (rg -F "capture-android-screenshot.ps1", excluding
node_modules/.git/obj/bin) came back empty in Eve, EveConformance, EveTui,
EveElectron, EveUnity, and EvePlugins.

REC-106 (partial): delete web/fixtures/fensalir-client-surface.json, an
unused Fensalir fixture. Kill-attempt searches (rg -F
"fensalir-client-surface.json") came back empty in both Eve (re-verifying
the census) and Fensalir.

Not touched in this pass: the stale GameCult.Eve.Surface.0.3.2.nupkg and the
other reproducible ignored/gitignored outputs (artifacts/, bin~/, obj~/,
test obj/, node_modules/) — untracked and out of git's purview, reported to
the coordinator rather than deleted.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-13 14:02:02 +02:00
commit 9d7364714d
2 changed files with 0 additions and 190 deletions

View file

@ -1,102 +0,0 @@
param(
[string] $OutputPath = "artifacts\parity\android-periwinkle.png",
[string] $ApkPath = "artifacts\android\eve-debug.apk",
[string] $PackageName = "org.gamecult.eve",
[string] $ActivityName = ".MainActivity",
[int] $LaunchDelaySeconds = 3,
[int] $Width = 0,
[int] $Height = 0,
[ValidateSet("portrait", "landscape", "natural")]
[string] $Orientation = "natural",
[switch] $UseFixture,
[switch] $ForceInstall
)
$ErrorActionPreference = "Stop"
$projectRoot = Split-Path -Parent $PSScriptRoot
$absoluteOutput = if ([System.IO.Path]::IsPathRooted($OutputPath)) { $OutputPath } else { Join-Path $projectRoot $OutputPath }
$absoluteApk = if ([System.IO.Path]::IsPathRooted($ApkPath)) { $ApkPath } else { Join-Path $projectRoot $ApkPath }
New-Item -ItemType Directory -Force (Split-Path -Parent $absoluteOutput) | Out-Null
$devices = adb devices | Select-String -Pattern "device$"
if (-not $devices) {
throw "No adb device is connected for Android parity capture."
}
if (-not (Test-Path $absoluteApk)) {
throw "Android APK not found: $absoluteApk"
}
$overrideSize = $Width -gt 0 -and $Height -gt 0
$overrideRotation = $Orientation -ne "natural"
$previousWindowUserRotation = $null
$previousIgnoreOrientationRequest = $null
try {
if ($overrideRotation) {
$previousWindowUserRotation = (adb shell cmd window user-rotation).Trim()
$previousIgnoreOrientationRequest = (adb shell cmd window get-ignore-orientation-request).Trim()
$rotation = if ($Orientation -eq "landscape") { "1" } else { "0" }
adb shell cmd window set-ignore-orientation-request true | Out-Host
adb shell cmd window user-rotation lock $rotation | Out-Host
}
if ($overrideSize -or $overrideRotation) {
adb shell am force-stop $PackageName | Out-Host
}
if ($overrideSize) {
$wmWidth = if ($Orientation -eq "landscape") { $Height } else { $Width }
$wmHeight = if ($Orientation -eq "landscape") { $Width } else { $Height }
adb shell wm size "${wmWidth}x${wmHeight}" | Out-Host
if ($LASTEXITCODE -ne 0) {
throw "adb wm size failed with exit code $LASTEXITCODE"
}
}
$installed = adb shell pm path $PackageName
if ($ForceInstall -or -not $installed) {
adb install -r $absoluteApk | Out-Host
if ($LASTEXITCODE -ne 0) {
throw "adb install failed with exit code $LASTEXITCODE"
}
}
$launchArgs = @("shell", "am", "start", "-n", "$PackageName/$ActivityName")
if ($UseFixture) {
$launchArgs += @("--ez", "org.gamecult.eve.PARITY_FIXTURE", "true")
}
adb @launchArgs | Out-Host
if ($LASTEXITCODE -ne 0) {
throw "adb launch failed with exit code $LASTEXITCODE"
}
Start-Sleep -Seconds $LaunchDelaySeconds
cmd /c "adb exec-out screencap -p > `"$absoluteOutput`""
if ($LASTEXITCODE -ne 0) {
throw "adb screencap failed with exit code $LASTEXITCODE"
}
} finally {
if ($overrideSize) {
adb shell wm size reset | Out-Host
}
if ($overrideRotation) {
if ($previousWindowUserRotation -match "^free") {
adb shell cmd window user-rotation free | Out-Host
} elseif ($previousWindowUserRotation -match "^lock\s+(\d+)") {
adb shell cmd window user-rotation lock $Matches[1] | Out-Host
}
if ($previousIgnoreOrientationRequest -match "true") {
adb shell cmd window set-ignore-orientation-request true | Out-Host
} elseif ($previousIgnoreOrientationRequest -match "false") {
adb shell cmd window set-ignore-orientation-request false | Out-Host
}
}
}
if (-not (Test-Path $absoluteOutput) -or (Get-Item $absoluteOutput).Length -le 0) {
throw "adb screencap did not produce a PNG: $absoluteOutput"
}
Write-Host $absoluteOutput