realm-js/examples/ReactNativeBenchmarks/run-android.sh

14 lines
243 B
Bash
Raw Normal View History

#!/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
adb reverse tcp:8081 tcp:8081
react-native run-android