diff --git a/package.json b/package.json index bf10ffe3..d804460a 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,8 @@ "jsdoc": "rm -rf docs/output && jsdoc -c docs/conf.json", "lint": "eslint", "test": "scripts/test.sh", - "install": "node-pre-gyp install --fallback-to-build" + "install": "node-pre-gyp install --fallback-to-build", + "prepublish": "scripts/prepublish.sh" }, "dependencies": { "nan": "^2.3.3", diff --git a/scripts/prepublish.sh b/scripts/prepublish.sh index 11d7adc5..0fe81249 100755 --- a/scripts/prepublish.sh +++ b/scripts/prepublish.sh @@ -8,5 +8,5 @@ cd "$(dirname "$0")/.." if [ -n "$REALM_BUILD_ANDROID" ]; then rm -rf android - (cd react-native/android && ./gradlew publishAndroid) + (cd react-native/android && ./gradlew publishAndroid -PbuildWithSync=true) fi diff --git a/scripts/test.sh b/scripts/test.sh index 4f077d7f..e7c4842d 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -151,6 +151,7 @@ case "$TARGET" in ;; "react-tests-android") [[ $CONFIGURATION == 'Debug' ]] && exit 0 + XCPRETTY=false pushd tests/react-test-app