realm-js/tests/react-test-app/run-android.sh

19 lines
363 B
Bash
Raw Normal View History

2016-01-11 09:42:26 -08:00
#!/bin/bash
2016-01-26 15:16:33 -08:00
set -o pipefail
set -e
PATH="/opt/android-sdk-linux/platform-tools:$PATH"
2016-01-11 09:42:26 -08:00
npm install realm realm-tests
2016-01-26 15:16:33 -08:00
2016-01-15 12:34:51 -08:00
cp ../../src/object-store/parser/queryTests.json node_modules/realm-tests/query-tests.json
2016-01-26 15:16:33 -08:00
echo "Reversing port for physical device"
2016-01-26 15:16:33 -08:00
adb reverse tcp:8081 tcp:8081
2016-01-11 09:42:26 -08:00
react-native run-android
echo "Unlocking device"
adb shell input keyevent 82