mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-12-25 23:48:53 +01:00
5f5efe3157
The ant scripts included in the android SDK were removed recently. The alternative is Gradle. Gradle doesn't work well in this app because it's not possible to use Nix to pull dependencies. Gradle will try to patch the SDK. Also, it's very slow. It turns out the required build script is quite simple.
21 lines
406 B
Nix
21 lines
406 B
Nix
{ pkgs ? import <nixpkgs> {
|
|
config.android_sdk.accept_license = true;
|
|
config.allowUnfree = true;
|
|
} }:
|
|
|
|
let
|
|
|
|
android = pkgs.androidenv.composeAndroidPackages {
|
|
platformVersions = [ "29" ];
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
findutils openjdk8 android.androidsdk
|
|
];
|
|
ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk";
|
|
}
|