diff --git a/README.md b/README.md index 00e83a13..6bb169e3 100644 --- a/README.md +++ b/README.md @@ -234,32 +234,36 @@ See the changes on the PGN Viewer demo page: http://localhost:8091/ ### Mobile 1. On your host machine: - 1. Configure lila to run with your host's IP address or hostname instead of localhost + 1. Have the lila-docker services running, with the `Mobile` optional service started + 2. Configure lila to run with your host's IP address or hostname instead of localhost ```bash ./lila-docker hostname ``` - 1. Configure the mobile settings + 3. Configure the mobile settings ```bash - ./lila-docker mobile setup + ./lila-docker mobile ``` - 1. Enter the IP address, port, and pairing code from the steps below -1. On your Android phone: + 4. Enter the IP address, port, and pairing code from the steps below +2. On your Android phone: 1. Connect your phone to the same wifi network as your host machine - 1. Ensure your phone and can access lila in your browser app using the host value you set above + 2. Ensure your phone and can access lila in your browser app using the host value you set above ``` http://[your-selection]:8080 ``` - 1. Enable Developer Mode - 1. In Developer Options + 3. Enable Developer Mode + 4. In Developer Options 1. enable wireless debugging 2. Tap into the wireless debugging settings 1. Use the "IP address & Port" value in the prompt on your host 2. Tap "Pair device with pairing code" 1. Enter the pairing port and code in the prompt on your host -1. On your host machine: +3. On your host machine: 1. Get a shell on the container: ```bash docker compose exec -it mobile bash + + # see your phone + adb devices ``` 2. Install the app dependencies: ```bash @@ -268,6 +272,6 @@ See the changes on the PGN Viewer demo page: http://localhost:8091/ ``` 3. Run the app: ```bash - flutter run --dart-define=LICHESS_HOST=$LICHESS_URL --dart-define=LICHESS_WS_HOST=$LICHESS_URL + flutter run -v --dart-define=LICHESS_HOST=$LICHESS_URL --dart-define=LICHESS_WS_HOST=$LICHESS_URL ``` - No substitutions necessary. The `$LICHESS_URL` environment variable will already be set on the container.