From c41c57a0e549d51b24fd93f1e48d2c2b2fb8c43d Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Fri, 30 Aug 2024 22:51:44 +0530 Subject: [PATCH] nix: android builds to access network for debug --- nix/mobile/android/build.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/mobile/android/build.nix b/nix/mobile/android/build.nix index 83136dc54b74..b9395e2bb2c8 100644 --- a/nix/mobile/android/build.nix +++ b/nix/mobile/android/build.nix @@ -149,10 +149,12 @@ in stdenv.mkDerivation rec { buildPhase = let adhocEnvVars = optionalString stdenv.isLinux "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${makeLibraryPath [ pkgs.zlib ]}"; + # For debug builds devs should have a chance of getting dependencies from network + offlineFlag = if (buildType != "debug") then "--offline " else "" ; gradleCommand = '' ${pkgs.gradle}/bin/gradle \ --console=plain \ - --offline \ + ${offlineFlag} \ --no-daemon \ --no-scan \ --no-watch-fs \