Skip to content

Commit 8621ec9

Browse files
authored
fix(android): fix path to emulator (#60 by @vonovak)
1 parent e4fa01f commit 8621ec9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/commands/android_emulator_start.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ parameters:
1414
type: string
1515
default: "28.0.3"
1616
logcat_grep:
17-
description: ADB logs will be shown in the "Start Android Emulator" commands, but we filter it using grep to avoid noise. You can specify additional strigns to grep for. Make sure you escape special characters.
17+
description: ADB logs will be shown in the "Start Android Emulator" commands, but we filter it using grep to avoid noise. You can specify additional strings to grep for. Make sure you escape special characters.
1818
type: string
1919
default: "com.reactnativecommunity"
2020

@@ -29,7 +29,7 @@ steps:
2929
yes | sdkmanager "build-tools;<<parameters.build_tools_version>>" >/dev/null
3030
yes | sdkmanager --licenses >/dev/null
3131
yes | sdkmanager --list
32-
32+
3333
# to force ssh key generation for emulators
3434
- run:
3535
name: ADB Start Stop
@@ -46,8 +46,8 @@ steps:
4646
- run:
4747
name: Start Android Emulator (background)
4848
command: |
49-
/usr/local/share/android-sdk/emulator/emulator @<<parameters.device_name>> -version
50-
/usr/local/share/android-sdk/emulator/emulator @<<parameters.device_name>> -skin 470x860 -cores 1 -gpu auto -accel on -memory 1024 -no-audio -no-snapshot -no-boot-anim -no-window -logcat *:W | grep -i 'ReactNative\|<<parameters.logcat_grep>>'
49+
$ANDROID_HOME/emulator/emulator @<<parameters.device_name>> -version
50+
$ANDROID_HOME/emulator/emulator @<<parameters.device_name>> -skin 470x860 -cores 1 -gpu auto -accel on -memory 1024 -no-audio -no-snapshot -no-boot-anim -no-window -logcat *:W | grep -i 'ReactNative\|<<parameters.logcat_grep>>'
5151
background: true
5252

5353
- run:

src/jobs/android_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ parameters:
2626
type: string
2727
default: "28.0.3"
2828
logcat_grep:
29-
description: ADB logs will be shown in the "Start Android Emulator" commands, but we filter it using grep to avoid noise. You can specify additional strigns to grep for. Make sure you escape special characters. Defaults to 'com.reactnativecommunity'.
29+
description: ADB logs will be shown in the "Start Android Emulator" commands, but we filter it using grep to avoid noise. You can specify additional strings to grep for. Make sure you escape special characters. Defaults to 'com.reactnativecommunity'.
3030
type: string
3131
default: "com.reactnativecommunity"
3232
# For the detox command

0 commit comments

Comments
 (0)