add command to use keytool regardless of what version of nix you are using
commit8156480d1b4de8799f89874e3852fdd038dad868
authorhsloan <ishaqsloan@gmail.com>
dateTue 23 Oct 2018, 14:55 (8 years ago)
parentaed938c
README.md+1−1
@@ -274,7 +274,7 @@ The previous section would have generated a debug version of the app. In order t
274274First, if you do not already have a keystore, create it as follows (for more information, see the [Android documentation](https://developer.android.com/studio/publish/app-signing#signing-manually)):
275275
276276```
277−nix-shell -p androidenv.platformTools --run "keytool -genkey -v -keystore myandroidkey.jks -keyalg RSA -keysize 2048 -validity 10000 -alias myandroidalias"
277+nix-shell -E "let pkgs = import <nixpkgs> {}; in pkgs.mkShell { buildInputs = [ pkgs.jdk9 ]; }" --run "keytool -genkey -v -keystore myandroidkey.jks -keyalg RSA -keysize 2048 -validity 10000 -alias myandroidalias"
278278```
279279
280280(Be sure to give an appropriate keystore filename and key alias string above.)