chrisboyle / sgtpuzzles

Android port of Simon Tatham's Puzzles
https://chris.boyle.name/puzzles
Other
586 stars 167 forks source link

ActivityTestRule is deprecated #536

Closed chrisboyle closed 2 years ago

chrisboyle commented 2 years ago

I have a branch where I tried to use ActivityScenarioRule instead but it hangs during the first few games, failing to supply the specified input to complete the game. You can click around in the emulator and complete the game for it, and the same thing will happen a couple more times, and then it seemingly gets into the swing of things with the rest of the games. Sometimes it gets stuck on a blank black activity with a title starting with "androidx". If you comment out the offending game examples, the same thing will happen with the new first few.

I guess there is some critical difference between ActivityTestRule and ActivityScenarioRule that needs dealing with.