mattermost-mobile-upstream/ios/bundleReactNative.sh
Elias Nahum ed4a3c8f66
Multiple Fixes (#9767)
* fix(ios): build from PR and locally in release mode

* fix(android): team icon disappearing when switching teams

* fix: more messages above banner animation and ios pop gesture

* fix(ios): post draft out of place caused by KeyboardGestureArea
2026-05-19 16:35:20 +08:00

24 lines
730 B
Bash
Executable File

#!/bin/sh
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh
export NODE_OPTIONS=--max_old_space_size=12000
export BUNDLE_COMMAND="bundle"
export ENTRY_FILE="index.tsx"
set -e
WITH_ENVIRONMENT="../node_modules/react-native/scripts/xcode/with-environment.sh"
REACT_NATIVE_XCODE="../node_modules/react-native/scripts/react-native-xcode.sh"
SENTRY_XCODE="../node_modules/@sentry/react-native/scripts/sentry-xcode.sh"
if [[ "${SENTRY_ENABLED}" = "true" ]]; then
echo "Sentry native integration is enabled"
chmod +x $SENTRY_XCODE
export SENTRY_PROPERTIES=sentry.properties
/bin/sh -c "$WITH_ENVIRONMENT $SENTRY_XCODE"
else
echo "Sentry native integration is not enabled"
/bin/sh -c "$WITH_ENVIRONMENT $REACT_NATIVE_XCODE"
fi