mattermost-mobile/ios/bundleReactNative.sh
Mattermost Build 053798814e
Improve Ram-Bundles for Android and Enable on iOS (#4765) (#4772)
(cherry picked from commit b97a88f243)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-09-08 12:20:05 -03:00

17 lines
449 B
Bash
Executable file

#!/bin/sh
export NODE_OPTIONS=--max_old_space_size=12000
export BUNDLE_COMMAND="ram-bundle"
export NODE_BINARY=node
if [[ "${SENTRY_ENABLED}" = "true" ]]; then
echo "Sentry native integration is enabled"
./makeSentryProperties.sh
export SENTRY_PROPERTIES=sentry.properties
../node_modules/@sentry/cli/bin/sentry-cli react-native xcode ./react-native-xcode.sh
else
echo "Sentry native integration is not enabled"
./react-native-xcode.sh
fi