realm-js/scripts/prepublish.sh

13 lines
287 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -o pipefail
2016-03-19 02:51:33 +00:00
export REALM_CORE_VERSION=`bash ./scripts/download-core.sh --version`
echo "Core Version:$REALM_CORE_VERSION"
cd "$(dirname "$0")/.."
if [ -n "$REALM_BUILD_ANDROID" ]; then
rm -rf android
(cd react-native/android && ./gradlew publishAndroid)
fi