Skip to content

Commit

Permalink
fix(android-dev): wait for device to prevent crash when metro kills e…
Browse files Browse the repository at this point in the history
…mulator
  • Loading branch information
n0izn0iz committed Nov 28, 2019
1 parent e9bdb1f commit 19208a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/packages/berty-app/Makefile
Expand Up @@ -79,10 +79,12 @@ start.metro: deps
start.emulator: export PWD := $(PWD)
start.emulator: deps
$(if $(filter $(platform), android), \
$(call check-program, adb) \
$(call check-program, emulator) \
$(if $(ANDROID_SDK_ROOT),, $(error "ANDROID_SDK_ROOT variable not defined")) \
ANDROID_HOME=$(ANDROID_SDK_ROOT) $(clisim) -af & \
)
$(if $(filter $(platform), android), adb wait-for-device)

.PHONY: run
run: export PWD := $(PWD)
Expand Down

0 comments on commit 19208a8

Please sign in to comment.