From 988d8db7e8a6f539a8e6f40c66df7b87571a88e9 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Tue, 14 Dec 2021 00:13:34 +0100 Subject: Use apksigner for signing the apk The Play Store now requires the "Signing Scheme V2", which is implemented by apksigner. --- shell.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index abc9217..643f47f 100644 --- a/shell.nix +++ b/shell.nix @@ -4,6 +4,7 @@ } }: let + jdk = pkgs.openjdk8; android = pkgs.androidenv.composeAndroidPackages { buildToolsVersions = [ "30.0.3" ]; @@ -11,11 +12,12 @@ let abiVersions = [ "armeabi-v7a" ]; }; -in + apksigner = pkgs.apksigner.override { + inherit (jdk) jre; + inherit (android) build-tools; + }; -pkgs.mkShell { - buildInputs = with pkgs; [ - findutils openjdk8 android.androidsdk - ]; +in pkgs.mkShell { + buildInputs = [ pkgs.findutils jdk android.androidsdk apksigner ]; ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk"; } -- cgit v1.2.3