From 503c56a19e8705ddf4b2fc0691ef7e80fa44854f Mon Sep 17 00:00:00 2001 From: NINI Date: Mon, 5 Oct 2026 11:48:42 +0900 Subject: [PATCH] Derive Android collection touch from the committed stage layout --- tools/android/exercise-persistence.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/android/exercise-persistence.ps1 b/tools/android/exercise-persistence.ps1 index 9d33efa..8dbbcd9 100644 --- a/tools/android/exercise-persistence.ps1 +++ b/tools/android/exercise-persistence.ps1 @@ -67,7 +67,9 @@ try { Step 'initial-home' @('shell','am','start','-W','-n',$activity) 6500 Step 'initial-selection' @('shell','input','tap','1200','616'); Step 'initial-locked-two' @('shell','input','tap','1200','691') $locked=Save 'locked-two'; Check 'new-save-only-one-unlocked' ($locked.puzzleStates.Count -eq 0 -and $locked.completedStageIds.Count -eq 0) 'Stage02 tap creates no puzzle before Stage01 completion' - Step 'one-start' @('shell','input','tap','1200','562'); Step 'one-collect' @('shell','input','swipe','1200','510','1280','510','650') + Step 'one-start' @('shell','input','tap','1200','562'); $oneInitial=Save 'one-initial' + $onePoint=BallPoint $oneInitial.puzzleStates[0] $oneInitial.puzzleStates[0].balls[0].id + Step 'one-collect' @('shell','input','swipe',"$($onePoint[0])","$($onePoint[1])","$($onePoint[0]+80)","$($onePoint[1])",'650') $one=Save 'one-collected'; TapBall 'one-count-success' $one.puzzleStates[0] $one.puzzleStates[0].balls[0].id $free=Save 'one-free'; Check 'one-completion-atomic' ($free.completedStageIds.Count -eq 1 -and $free.completedStageIds[0] -eq 1 -and $free.puzzleStates.Count -eq 0 -and $free.latestFreePlay.sourceStageId -eq 1) 'Completed1, removed puzzle1, latestFree1 in one file' Step 'one-home' @('shell','input','tap','312','108'); SelectStage 'two' 2