Allow setting `localHostAddress` for android-livesync-tool
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- android, typescript
Piste de recherche
Commencez dans lib/services/livesync/android-device-livesync-sockets-service.ts, autour de l’appel référencé, et suivez le chemin jusqu’à lib/services/livesync/android-livesync-tool.ts, où localHostAddress est défini par défaut sur DEFAULT_LOCAL_HOST_ADDRESS. Déterminez comment l’adresse devrait être exposée via la CLI, nsconfig.json ou une variable d’environnement, puis vérifiez que livesync peut redémarrer une application sur un émulateur distant.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Is your feature request related to a problem? Please describe.
A little bit of background why I ran into this issue: I'm running an emulator on a separate PC and connect to it over the network. (this is different from adb tcpip). This all works fine with adb, and the initial app install, but the address defaults to 127.0.0.1 and livesync is not able to restart the app on the remote emulator. If I manually patch the address in my CLI, it works as expected.
The android-livesync-tool has a configuration option for localHostAddress but it can't be changed from the CLI.
The tool is called from here:
https://github.com/NativeScript/nativescript-cli/blob/48965cd1dbbfa213aa27d0658c1db1064fd9a081/lib/services/livesync/android-device-livesync-sockets-service.ts#L153-L158
And localHostAddress is never passed, so it always defaults to DEFAULT_LOCAL_HOST_ADDRESS here:
https://github.com/NativeScript/nativescript-cli/blob/48965cd1dbbfa213aa27d0658c1db1064fd9a081/lib/services/livesync/android-livesync-tool.ts#L63-L65
Describe the solution you'd like
I would like to be able to specify the address somehow. A cli argument, a setting in nsconfig.json or even just an env variable would be enough for me. Perhaps read ANDROID_ADB_SERVER_ADDRESS as that is where adb can get the address for a remote adb server.
Describe alternatives you've considered
N/A
Additional context
N/A
- Langage dominant
- JavaScript
- Étoiles
- 1.1k
- Forks
- 204
- Merge moyen
- 1 j 9 h
- PR mergées (30 j)
- 8
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NativeScript/nativescript-cli
-
in-progress
NativeScript/nativescript-cli#6140 · 2 commentaires · 1 personne assignée ·
-
NativeScript/nativescript-cli#6090 · 1 personne assignée ·
-
in progress
NativeScript/nativescript-cli#6015 · 1 réaction · 1 personne assignée ·
-
question
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
NativeScript/nativescript-cli#5992 · 5 commentaires ·
-
feature-pending-triage
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
NativeScript/nativescript-cli#5975 ·
Toutes les issues de NativeScript/nativescript-cli
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Seeed-Studio/wiki-documents#5655 · 2 commentaires ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
capricorn86/happy-dom#2435 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
Edit: CW+ Ouvertechannels:edit check:passed
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
01 type: bug 30 needs: triage 99 tag: UX Accessibility
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100