Skip to content

Commit d0d1660

Browse files
committed
Update build instructions
1 parent 3d20515 commit d0d1660

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

android/docs/BuildInstructions.macos.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ brew install --cask android-studio
1717

1818
Install the following packages:
1919
```bash
20-
brew install protobuf gcc go openjdk@17 rustup-init
20+
brew install protobuf gcc go openjdk@17 rustup-init python3
2121
```
2222

2323
> __*NOTE:*__ Ensure that you setup `openjdk@17` to be the active JDK, follow instructions in
@@ -74,6 +74,19 @@ git submodule update --init --recursive --depth=1 wireguard-go-rs
7474
```
7575

7676
## 4. Debug build
77+
78+
### Android Studio
79+
80+
Create the file `android/local.properties` if it does not exist and add the following line:
81+
82+
```bash
83+
rust.pythonCommand=/opt/homebrew/bin/python3
84+
```
85+
86+
You should now be able to run the app directly from Android Studio.
87+
88+
### `android/build.sh`
89+
7790
Run the build script in the root of the project to assemble all the native libraries and the app:
7891

7992
```bash
@@ -92,9 +105,6 @@ Once the build is complete you should receive a message looking similar to this:
92105
**********************************
93106
```
94107

95-
Your native binaries have now been built, any subsequent builds that does not have changes to the
96-
native code can be done in Android Studio or using gradle.
97-
98108
# Build options and configuration
99109

100110
For configuring signing or options to your build continue with the general [build instructions](../BuildInstructions.md).

0 commit comments

Comments
 (0)