46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{ config, stdenv, pkgs }:
|
|
|
|
with pkgs;
|
|
with stdenv;
|
|
|
|
let
|
|
gradle = gradle_4_10;
|
|
androidComposition = androidenv.composeAndroidPackages {
|
|
toolsVersion = "26.1.1";
|
|
platformToolsVersion = "28.0.2";
|
|
buildToolsVersions = [ "28.0.3" ];
|
|
includeEmulator = false;
|
|
platformVersions = [ "28" ];
|
|
includeSources = false;
|
|
includeDocs = false;
|
|
includeSystemImages = false;
|
|
systemImageTypes = [ "default" ];
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
lldbVersions = [ "2.0.2558144" ];
|
|
cmakeVersions = [ "3.6.4111459" ];
|
|
includeNDK = true;
|
|
ndkVersion = "19.2.5345600";
|
|
useGoogleAPIs = false;
|
|
useGoogleTVAddOns = false;
|
|
includeExtras = [ "extras;android;m2repository" "extras;google;m2repository" ];
|
|
};
|
|
licensedAndroidEnv = callPackage ./licensed-android-sdk.nix { inherit androidComposition; };
|
|
|
|
in
|
|
{
|
|
inherit androidComposition;
|
|
|
|
buildInputs = [ openjdk gradle ];
|
|
shellHook = ''
|
|
export JAVA_HOME="${openjdk}"
|
|
export ANDROID_HOME=${licensedAndroidEnv}
|
|
export ANDROID_SDK_ROOT="$ANDROID_HOME"
|
|
export ANDROID_NDK_ROOT="${androidComposition.androidsdk}/libexec/android-sdk/ndk-bundle"
|
|
export ANDROID_NDK_HOME="$ANDROID_NDK_ROOT"
|
|
export ANDROID_NDK="$ANDROID_NDK_ROOT"
|
|
export PATH="$ANDROID_HOME/bin:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools:$PATH"
|
|
|
|
$STATUS_REACT_HOME/scripts/generate-keystore.sh
|
|
'';
|
|
}
|