realm-js/scripts/prepublish.sh

14 lines
252 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -o pipefail
cd "$(dirname "$0")/.."
if [ -n "$SKIP_ANDROID_BUILD" -o -n "$XCODE_VERSION_ACTUAL" ]; then
echo 'Skipped building Android module'
else
rm -rf android
(cd react-native/android && ./gradlew publishAndroid)
fi