Skip to content

Commit e4fa01f

Browse files
authored
fix(android): fix JAVA_HOME path (react-native-community#61 by @vonovak)
1 parent 15f0d90 commit e4fa01f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/setup_macos_executor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ parameters:
44
node_version:
55
description: The version of Node to use. This can be either a major version ("8"), a major and minor ("8.4"), or a fully qualified version ("8.4.1").
66
type: string
7-
default: '10'
7+
default: "10"
88

99
steps:
1010
- run:
@@ -15,14 +15,14 @@ steps:
1515
echo 'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"' >> $BASH_ENV
1616
echo 'export PATH="$ANDROID_SDK_ROOT/emulator:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$PATH"' >> $BASH_ENV
1717
echo 'export QEMU_AUDIO_DRV=none' >> $BASH_ENV
18-
echo 'export JAVA_HOME=/Library/Java/Home' >> $BASH_ENV
18+
echo 'export JAVA_HOME=$(/usr/libexec/java_home)' >> $BASH_ENV
1919
source $BASH_ENV
2020
2121
- restore_cache:
2222
key: |
2323
brew-cache-{{ arch }}-{{ .Environment.CACHE_VERSION }}
2424
25-
- run:
25+
- run:
2626
name: Install node@<<parameters.node_version>>
2727
# after `curl`, bashrc contains the script to load nvm, we need to source it to use it
2828
command: |
@@ -37,7 +37,7 @@ steps:
3737
- run:
3838
name: Verify node version
3939
command: node --version
40-
40+
4141
- run:
4242
name: Configure Detox Environment
4343
command: |

0 commit comments

Comments
 (0)