Add 'shell.nix' and build the project

Add a working environment and specify Java version
This commit is contained in:
Jules Aguillon 2021-01-04 23:31:04 +01:00
parent 0b94395233
commit 539c7fcd74
2 changed files with 25 additions and 0 deletions

View File

@ -18,3 +18,6 @@ source.dir=srcs
key.store=release-keys.keystore key.store=release-keys.keystore
key.alias=releasekey key.alias=releasekey
java.source=8
java.target=8

22
shell.nix Normal file
View File

@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> {
config.android_sdk.accept_license = true;
config.allowUnfree = true;
} }:
let
android = pkgs.androidenv.composeAndroidPackages {
platformVersions = [ "23" ];
abiVersions = [ "armeabi-v7a" ];
};
in
pkgs.mkShell {
buildInputs = with pkgs; [
ant openjdk8 android.androidsdk
];
shellHook = ''
export ANDROID_HOME=${android.androidsdk}/libexec/android-sdk
'';
}