diff --git a/scripts/test.sh b/scripts/test.sh index 5be21733..d86cffe2 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -112,7 +112,6 @@ case "$TARGET" in npm install open_chrome react-native start & - unlock_device ./run-android.sh # Despite the docs claiming -c to work, it doesn't, so `-T 1` alleviates that. diff --git a/tests/react-test-app/run-android.sh b/tests/react-test-app/run-android.sh index 4f61ac73..122e69a4 100755 --- a/tests/react-test-app/run-android.sh +++ b/tests/react-test-app/run-android.sh @@ -10,7 +10,9 @@ npm install realm realm-tests cp ../../src/object-store/parser/queryTests.json node_modules/realm-tests/query-tests.json +echo "Reversing port for physical device" adb reverse tcp:8081 tcp:8081 adb forward tcp:8082 tcp:8082 - react-native run-android +echo "Unlocking device" +adb shell input keyevent 82