mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-09 13:55:49 +00:00
28 lines
700 B
Bash
Executable File
28 lines
700 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o pipefail
|
|
set -e
|
|
|
|
PATH="/opt/android-sdk-linux/platform-tools:$PATH"
|
|
|
|
# Inform the prepublish script to build Android modules.
|
|
REALM_BUILD_ANDROID=1 npm install realm realm-tests
|
|
|
|
cp ../../src/object-store/tests/query.json node_modules/realm-tests/query-tests.json
|
|
|
|
adb uninstall io.realm.react.testapp || true
|
|
|
|
echo "Reversing port for physical device"
|
|
adb reverse tcp:8081 tcp:8081
|
|
|
|
react-native run-android
|
|
|
|
echo "Unlocking device"
|
|
# sometimes on CI the application is not on the foreground
|
|
adb shell input keyevent 82
|
|
adb shell input text 1234 && adb shell input keyevent 66
|
|
|
|
sleep 1
|
|
echo "Starting the Main Activity"
|
|
adb shell am start -n io.realm.react.testapp/.MainActivity
|