summaryrefslogtreecommitdiffhomepage
path: root/android/BuildInstructions.md
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2025-07-15 15:37:03 +0200
committerAlbin <albin@mullvad.net>2025-07-15 15:37:03 +0200
commit3771dff76a96665db0f93c0ec8af5e944ec429ec (patch)
tree4314baf1bff9867ab1eb605f8e24f8bc70a25d38 /android/BuildInstructions.md
parent750c02c8ade320e58edcc98985b75dd8f98c55af (diff)
downloadmullvadvpn-3771dff76a96665db0f93c0ec8af5e944ec429ec.tar.xz
mullvadvpn-3771dff76a96665db0f93c0ec8af5e944ec429ec.zip
Document how to build using devshell
Diffstat (limited to 'android/BuildInstructions.md')
-rw-r--r--android/BuildInstructions.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/android/BuildInstructions.md b/android/BuildInstructions.md
index b287342fd4..a58a993b49 100644
--- a/android/BuildInstructions.md
+++ b/android/BuildInstructions.md
@@ -177,6 +177,22 @@ Run the following command to build a debug build:
../android/build.sh --app-bundle
```
+## Build using nix devshell
+1. Install the nix package manager by following the [official instructions](https://nixos.org/download/).
+2. Enable the experimental `nix-command` and `flake` features by following [these instructions](https://nixos.wiki/wiki/flakes).
+3. Launch a devshell (in `<repository>/android`) by running:
+ ```bash
+ nix develop
+ ```
+4. Build the app as usual by running for example:
+ ```bash
+ ./build.sh --dev-build
+ ```
+ or
+ ```bash
+ ./gradlew assembleOssProdDebug
+ ```
+
## Configure signing key
1. Create a directory to store the signing key, keystore and its configuration:
```