Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add support for remote devices with re-frisk server #21805

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

seanstrom
Copy link
Member

Summary

  • This PR attempts to add support for running re-frisk on a development machine, and connect to the re-frisk server from a remote device.
    • For example, when running on a iOS device, the iOS device can now connect to the remote re-frisk server, which allows for us to use the re-frisk tooling 🙌

Platforms

  • Android
  • iOS

Areas that maybe impacted

Non-functional
  • Dev UX for iOS devices

status: ready

@seanstrom seanstrom requested a review from ilmotta December 11, 2024 18:58
@seanstrom seanstrom self-assigned this Dec 11, 2024
@seanstrom seanstrom changed the title chore: add support for remote devices to re-frisk server chore: add support for remote devices with re-frisk server Dec 11, 2024
@@ -150,3 +150,6 @@
(goog-define STATUS_BACKEND_SERVER_ROOT_DATA_DIR "")
;; if you're using android simulator, I suggest set the env variable to "http://10.0.2.2:"
(goog-define STATUS_BACKEND_SERVER_IMAGE_SERVER_URI_PREFIX "https://localhost:")

(def re-frisk-host (get-config :RE_FRISK_HOST "http://localhost"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the default, but what I like to do is change this to my computer's local hostname. For example, when the mobile device and my laptop are on the same network, my phone can access my computer by its local hostname like dev.local.

This is nice because using the local hostname avoids needing to update the RE_FRISK_HOST variable whenever the IP address changes.

@status-im-auto
Copy link
Member

status-im-auto commented Dec 11, 2024

Jenkins Builds

Click to see older builds (4)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 306c5fb #1 2024-12-11 19:03:42 ~4 min tests 📄log
✔️ 306c5fb #1 2024-12-11 19:07:40 ~8 min android-e2e 🤖apk 📲
✔️ 306c5fb #1 2024-12-11 19:07:58 ~9 min android 🤖apk 📲
✔️ 306c5fb #1 2024-12-11 19:08:34 ~9 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 4a2519c #2 2024-12-12 17:31:36 ~4 min tests 📄log
✔️ 4a2519c #2 2024-12-12 17:33:25 ~6 min ios 📱ipa 📲
✔️ 4a2519c #2 2024-12-12 17:35:30 ~8 min android-e2e 🤖apk 📲
✔️ 4a2519c #2 2024-12-12 17:36:06 ~9 min android 🤖apk 📲
✔️ 1c6e664 #3 2025-01-08 20:01:15 ~6 min tests 📄log
✔️ 1c6e664 #3 2025-01-08 20:03:02 ~8 min android-e2e 🤖apk 📲
✔️ 1c6e664 #3 2025-01-08 20:03:27 ~8 min ios 📱ipa 📲
✔️ 1c6e664 #3 2025-01-08 20:03:33 ~8 min android 🤖apk 📲

Copy link
Contributor

@ilmotta ilmotta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did it ;) A nice improvement!

@@ -269,9 +269,11 @@ run-metro: export TARGET := clojure
run-metro: ##@run Start Metro to build React Native changes
@scripts/run-metro.sh

export RE_FRISK_PORT ?= 4567
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This port is also used in the target android-ports. Could you update references to 4567 to this var?

@seanstrom seanstrom force-pushed the seanstrom/dev-ux/refrisk-remote-support branch from 4a2519c to 1c6e664 Compare January 8, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: REVIEW
Development

Successfully merging this pull request may close these issues.

3 participants