use debug build

This commit is contained in:
Morten Delenk 2022-08-14 20:50:25 +01:00
parent 562635b1cb
commit a8e565ec07
No known key found for this signature in database
GPG key ID: 5130416C797067B6
2 changed files with 3 additions and 3 deletions

View file

@ -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.
*/

View file

@ -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