158b9ee98SNick NovitskiPATH_add bin 2a4f02cb8SJames Ide 3ef80677cSNick Novitskilayout ruby 4ef80677cSNick Novitski 5bd98bfebSTomasz Sapetaexport EXPO_ROOT_DIR=`pwd` 6*2cfc8c5aSJakub 7*2cfc8c5aSJakub# ANDROID_HOME should be replaced with ANDROID_SDK_ROOT as soon as RN stops using it for its buildscripts 8e8b558dbSTomasz Sapetaexport ANDROID_HOME="${ANDROID_SDK_ROOT:=$ANDROID_SDK}" 968ac3ec7SNick Novitski 106e1dd0e8STomasz Sapeta# Force all Expo modules to be compiled from source 116e1dd0e8STomasz Sapetaexport EXPO_USE_SOURCE=1 126e1dd0e8STomasz Sapeta 13163daee7SJames Idesource_local() { 14163daee7SJames Ide file=./.envrc.local 15163daee7SJames Ide if [[ -f "$file" ]]; then 16edd2708bSJames Ide source_env "$file" 17a4f02cb8SJames Ide fi 18edd2708bSJames Ide watch_file "$file" 19163daee7SJames Ide} 20bef6b9d7SJames Ide 21edd2708bSJames Idesource_secrets() { 22edd2708bSJames Ide file=$1 23edd2708bSJames Ide if [[ -f "$file" ]] && head -1 "$file" | grep --quiet "#!"; then 24edd2708bSJames Ide source_env "$file" 25edd2708bSJames Ide fi 26edd2708bSJames Ide watch_file "$file" 27edd2708bSJames Ide} 28edd2708bSJames Ide 29e270611fSTomasz Sapetainstall_git_hooks() { 30e270611fSTomasz Sapeta for path in scripts/git-hooks/*; do 31e270611fSTomasz Sapeta filename=$(basename $path) 32e270611fSTomasz Sapeta ln -sf "../../scripts/git-hooks/$filename" ".git/hooks/$filename" 33e270611fSTomasz Sapeta done 34e270611fSTomasz Sapeta} 35e270611fSTomasz Sapeta 36edd2708bSJames Idesource_secrets secrets/expotools.env 37bef6b9d7SJames Idesource_local 38e270611fSTomasz Sapetainstall_git_hooks 39