diff options
| author | Jules Aguillon | 2021-01-04 23:31:04 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2021-01-04 23:31:04 +0100 |
| commit | 539c7fcd7442a3da77bd61d7662b38f879ae4651 (patch) | |
| tree | a97757c538b97fc803987e78d95e9dbfb60292f7 | |
| parent | 0b943952333c7578ef99b1bf09b39a18483efaf6 (diff) | |
| download | unexpected-keyboard-539c7fcd7442a3da77bd61d7662b38f879ae4651.tar.gz unexpected-keyboard-539c7fcd7442a3da77bd61d7662b38f879ae4651.zip | |
Add 'shell.nix' and build the project
Add a working environment and specify Java version
| -rw-r--r-- | ant.properties | 3 | ||||
| -rw-r--r-- | shell.nix | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/ant.properties b/ant.properties index 5d4dca6..744cac8 100644 --- a/ant.properties +++ b/ant.properties @@ -18,3 +18,6 @@ source.dir=srcs key.store=release-keys.keystore key.alias=releasekey + +java.source=8 +java.target=8 diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..bb09515 --- /dev/null +++ b/shell.nix @@ -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 + ''; +} |
