summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2025-07-17 15:40:03 +0200
committerAlbin <albin@mullvad.net>2025-07-17 15:40:03 +0200
commit288d9f009f949d370c4c5c3fdae6622bbc39b1d1 (patch)
treed4ba739f3856a8c9a2343575aabf9b49d968a46f /android
parenta491b97688349601460918d7e444a532c1ae6a34 (diff)
parentda536b4ab6cf752e6ae68556d32b15c5c84095e9 (diff)
downloadmullvadvpn-288d9f009f949d370c4c5c3fdae6622bbc39b1d1.tar.xz
mullvadvpn-288d9f009f949d370c4c5c3fdae6622bbc39b1d1.zip
Merge branch 'add-devshell-commands'
Diffstat (limited to 'android')
-rw-r--r--android/BuildInstructions.md4
-rw-r--r--android/flake.nix14
2 files changed, 18 insertions, 0 deletions
diff --git a/android/BuildInstructions.md b/android/BuildInstructions.md
index c1051c8521..399ed41ad6 100644
--- a/android/BuildInstructions.md
+++ b/android/BuildInstructions.md
@@ -188,6 +188,10 @@ This is supported on Linux (x86_64) as well as macOS (x86_64 and aarch64).
```
4. Build the app as usual by running for example:
```bash
+ build
+ ```
+ or
+ ```bash
./build.sh --dev-build
```
or
diff --git a/android/flake.nix b/android/flake.nix
index 8cf0d4a26a..b48befe941 100644
--- a/android/flake.nix
+++ b/android/flake.nix
@@ -111,6 +111,20 @@
env = import ./nix/env-vars.nix {
inherit pkgs android-sdk buildToolsVersion ndkVersion minSdkVersion;
};
+ # Unfortunately rich menus with package, description and category
+ # is only supported using the TOML format and not when using mkShell.
+ # The two cannot be combined and TOML format by itself doesn't support
+ # the way we dynamically configure the devshell.
+ commands = [
+ {
+ name = "tasks";
+ command = "./gradlew tasks";
+ }
+ {
+ name = "build";
+ command = "./gradlew assembleOssProdDebug";
+ }
+ ];
};
});
}