1PATH_add bin 2 3layout ruby 4 5export EXPO_ROOT_DIR=`pwd` 6 7# ANDROID_HOME should be replaced with ANDROID_SDK_ROOT as soon as RN stops using it for its buildscripts 8export ANDROID_HOME="${ANDROID_SDK_ROOT:=$ANDROID_SDK}" 9 10# Force all Expo modules to be compiled from source 11export EXPO_USE_SOURCE=1 12 13source_local() { 14 file=./.envrc.local 15 if [[ -f "$file" ]]; then 16 source_env "$file" 17 fi 18 watch_file "$file" 19} 20 21source_secrets() { 22 file=$1 23 if [[ -f "$file" ]] && head -1 "$file" | grep --quiet "#!"; then 24 source_env "$file" 25 fi 26 watch_file "$file" 27} 28 29install_git_hooks() { 30 for path in scripts/git-hooks/*; do 31 filename=$(basename $path) 32 ln -sf "../../scripts/git-hooks/$filename" ".git/hooks/$filename" 33 done 34} 35 36source_secrets secrets/expotools.env 37source_local 38install_git_hooks 39