-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
45 lines (35 loc) · 1.04 KB
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PATH_add bin
layout ruby
export EXPO_ROOT_DIR=`pwd`
# ANDROID_HOME should be replaced with ANDROID_SDK_ROOT as soon as RN stops using it for its buildscripts
export ANDROID_HOME="${ANDROID_SDK_ROOT:=$ANDROID_SDK}"
# Enable experimental dev server in expo-cli
export EXPO_USE_DEV_SERVER=true
# Enable experimental JS version of simctl for opening iOS simulators `expo start -i`
# and listing simulators `expo run:ios -d` and `shift+i` in `expo start`.
export EXPO_USE_CORE_SIM=1
# Force all Expo modules to be compiled from source
export EXPO_USE_SOURCE=1
source_local() {
file=./.envrc.local
if [[ -f "$file" ]]; then
source_env "$file"
fi
watch_file "$file"
}
source_secrets() {
file=$1
if [[ -f "$file" ]] && head -1 "$file" | grep --quiet "#!"; then
source_env "$file"
fi
watch_file "$file"
}
install_git_hooks() {
for path in scripts/git-hooks/*; do
filename=$(basename $path)
ln -sf "../../scripts/git-hooks/$filename" ".git/hooks/$filename"
done
}
source_secrets secrets/expotools.env
source_local
install_git_hooks