realm-js/scripts/prepublish.sh

12 lines
287 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -o pipefail
2016-03-21 18:46:34 +00:00
export REALM_CORE_VERSION=$(./scripts/download-core.sh --version)
echo "Core Version: $REALM_CORE_VERSION"
cd "$(dirname "$0")/.."
if [ -n "$REALM_BUILD_ANDROID" ]; then
2016-11-15 13:08:26 +00:00
(cd react-native/android && ./gradlew publishAndroid -PbuildWithSync=true)
fi