diff --git a/app/src/main/java/rs/chir/invtracker/api/ClientImpl.java b/app/src/main/java/rs/chir/invtracker/api/ClientImpl.java index 8629abf..3b61006 100644 --- a/app/src/main/java/rs/chir/invtracker/api/ClientImpl.java +++ b/app/src/main/java/rs/chir/invtracker/api/ClientImpl.java @@ -59,7 +59,7 @@ public class ClientImpl extends Client { /** * The API URL. */ - private static final String API_URL = BuildConfig.DEBUG ? DEV_API_URL : PROD_API_URL; + private static final String API_URL = PROD_API_URL; /** * An empty body. */ diff --git a/flake.nix b/flake.nix index 8afbaa1..78cd39b 100644 --- a/flake.nix +++ b/flake.nix @@ -98,11 +98,11 @@ sed -i 's#google..#maven { url "${invtracker-deps}/maven" }#' settings.gradle export GRADLE_USER_HOME=$(mktemp -d) - gradle --offline --no-daemon --info -Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/share/android-sdk/build-tools/33.0.0/aapt2 -Dorg.gradle.java.home=${pkgs.openjdk_headless} app:packageRelease + gradle --offline --no-daemon --info -Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/share/android-sdk/build-tools/33.0.0/aapt2 -Dorg.gradle.java.home=${pkgs.openjdk_headless} app:packageDebug ''; installPhase = '' mkdir $out - cp app/build/outputs/apk/release/app-release-unsigned.apk $out/app.apk + cp app/build/outputs/apk/debug/debug.apk $out/app.apk mkdir $out/nix-support echo "file binary-dist $out/app.apk" > $out/nix-support/hydra-build-products echo "$pname-$version" > $out/nix-support/hydra-release-name