Update android.mdx (#1539)

Added cloning step;
Reformatted sub-modules step;

Co-authored-by: Tommy Ekstrand <tekstrand@users.noreply.github.com>
Co-authored-by: rcarteraz <robert.l.carter2@gmail.com>
This commit is contained in:
MrLinusMeow 2024-10-29 16:31:49 +01:00 committed by GitHub
parent 16bee77ba3
commit 17e58242a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,15 +10,22 @@ sidebar_position: 1
If you would like to develop this application we'd love your help! These build instructions are brief and should be improved, please send a PR if you can. If you would like to develop this application we'd love your help! These build instructions are brief and should be improved, please send a PR if you can.
1. Use Android Studio to build/debug 1. Use Android Studio to build/debug
2. Use `git submodule update --init --recursive` to pull in the various sub-modules we depend on. 2. Clone the repository and after successful cloning, change the working directory to Meshtastic-Android/
3. There are a few config files which you'll need to copy from templates included in the project. Run the following commands to do so: ```shell
git clone https://github.com/meshtastic/Meshtastic-Android.git && cd Meshtastic-Android/
```
3. Pull in the various sub-modules we depend on.
```shell
git submodule update --init --recursive
```
4. There are a few config files which you'll need to copy from templates included in the project. Run the following commands to do so:
```shell ```shell
rm ./app/google-services.json rm ./app/google-services.json
cp ./app/google-services-example.json ./app/google-services.json cp ./app/google-services-example.json ./app/google-services.json
rm ./app/src/main/res/values/curfirmwareversion.xml rm ./app/src/main/res/values/curfirmwareversion.xml
cp ./app/special/curfirmwareversion.xml ./app/src/main/res/values/ cp ./app/special/curfirmwareversion.xml ./app/src/main/res/values/
``` ```
4. Now you should be able to select "Run / Run" in the IDE and it will happily start running on your phone or the emulator. 5. Now you should be able to select "Run / Run" in the IDE and it will happily start running on your phone or the emulator.
:::note :::note
The emulators don't support Bluetooth, so some features can not be used in that environment. The emulators don't support Bluetooth, so some features can not be used in that environment.