replace 8081 with RCT_METRO_PORT

This commit is contained in:
Sean Hagstrom 2024-06-12 09:56:12 +01:00
parent c541e4437f
commit 8925b26eb5
No known key found for this signature in database
GPG Key ID: 5257FEDF56307320
2 changed files with 2 additions and 2 deletions

View File

@ -437,7 +437,7 @@ android-clean: ##@prepare Clean Gradle state
android-ports: export FLOWSTORM_PORT := 7722
android-ports: export TARGET := android-sdk
android-ports: ##@other Add proxies to Android Device/Simulator
adb reverse tcp:8081 tcp:8081 && \
adb reverse tcp:$(RCT_METRO_PORT) tcp:$(RCT_METRO_PORT) && \
adb reverse tcp:3449 tcp:3449 && \
adb reverse tcp:4567 tcp:4567 && \
adb reverse tcp:$(FLOWSTORM_PORT) tcp:$(FLOWSTORM_PORT) && \

View File

@ -4,7 +4,7 @@ set -euo pipefail
TIMEOUT=10 # Metro should not take this long to start.
while [ "${TIMEOUT}" -gt 0 ]; do
if ! lsof -i:8081 &> /dev/null; then
if ! lsof -i:RCT_METRO_PORT &> /dev/null; then
echo "."
sleep 1
((TIMEOUT--))