abouttreesummaryrefslogcommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
authorJules Aguillon2021-12-14 00:13:34 +0100
committerJules Aguillon2021-12-14 00:13:34 +0100
commit988d8db7e8a6f539a8e6f40c66df7b87571a88e9 (patch)
tree051d0df67934d36ee52a91a6c460cb0e575a77cf /shell.nix
parente5fa23e1f7ccc722209d4ce7f795905d5ab0eb35 (diff)
downloadunexpected-keyboard-988d8db7e8a6f539a8e6f40c66df7b87571a88e9.tar.gz
unexpected-keyboard-988d8db7e8a6f539a8e6f40c66df7b87571a88e9.zip
Use apksigner for signing the apk
The Play Store now requires the "Signing Scheme V2", which is implemented by apksigner.
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix12
1 files changed, 7 insertions, 5 deletions
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";
}