parent
27073a9e66
commit
401b501aab
|
@ -5,7 +5,8 @@ set -e
|
|||
|
||||
PATH="/opt/android-sdk-linux/platform-tools:$PATH"
|
||||
|
||||
npm install realm
|
||||
# Inform the prepublish script to build Android modules.
|
||||
REALM_BUILD_ANDROID=1 npm install realm
|
||||
|
||||
adb reverse tcp:8081 tcp:8081
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@ set -e
|
|||
|
||||
PATH="/opt/android-sdk-linux/platform-tools:$PATH"
|
||||
|
||||
npm install realm
|
||||
# Inform the prepublish script to build Android modules.
|
||||
REALM_BUILD_ANDROID=1 npm install realm
|
||||
|
||||
adb reverse tcp:8081 tcp:8081
|
||||
|
||||
|
|
|
@ -5,9 +5,7 @@ set -o pipefail
|
|||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if [ -n "$SKIP_ANDROID_BUILD" -o -n "$XCODE_VERSION_ACTUAL" ]; then
|
||||
echo 'Skipped building Android module'
|
||||
else
|
||||
if [ -n "$REALM_BUILD_ANDROID" ]; then
|
||||
rm -rf android
|
||||
(cd react-native/android && ./gradlew publishAndroid)
|
||||
fi
|
||||
|
|
|
@ -12,7 +12,10 @@ SRCROOT=$(cd "$(dirname "$0")/.." && pwd)
|
|||
# Start current working directory at the root of the project.
|
||||
cd "$SRCROOT"
|
||||
|
||||
if [[ $TARGET != *-android ]]; then
|
||||
if [[ $TARGET = *-android ]]; then
|
||||
# Inform the prepublish script to build Android modules.
|
||||
export REALM_BUILD_ANDROID=1
|
||||
else
|
||||
while pgrep -q Simulator; do
|
||||
# Kill all the current simulator processes as they may be from a
|
||||
# different Xcode version
|
||||
|
@ -22,9 +25,6 @@ if [[ $TARGET != *-android ]]; then
|
|||
done
|
||||
|
||||
DESTINATION="-destination id=$(xcrun simctl list devices | grep -v unavailable | grep -m 1 -o '[0-9A-F\-]\{36\}')"
|
||||
|
||||
# Inform the prepublish script to skip building Android modules.
|
||||
export SKIP_ANDROID_BUILD=1
|
||||
fi
|
||||
|
||||
PACKAGER_OUT="$SRCROOT/packager_out.txt"
|
||||
|
|
|
@ -5,7 +5,8 @@ set -e
|
|||
|
||||
PATH="/opt/android-sdk-linux/platform-tools:$PATH"
|
||||
|
||||
npm install realm realm-tests
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue