2020-08-27 12:20:39 +00:00
|
|
|
#
|
|
|
|
# This Nix expression centralizes the configuration
|
|
|
|
# for the Android development environment.
|
|
|
|
#
|
|
|
|
|
|
|
|
{ stdenv, config, callPackage, androidenv, openjdk, mkShell }:
|
|
|
|
|
|
|
|
androidenv.composeAndroidPackages {
|
|
|
|
toolsVersion = "26.1.1";
|
2021-04-12 14:07:55 +00:00
|
|
|
platformToolsVersion = "31.0.2";
|
2020-08-27 12:20:39 +00:00
|
|
|
buildToolsVersions = [ "30.0.3" ];
|
|
|
|
includeEmulator = false;
|
|
|
|
includeSources = false;
|
|
|
|
platformVersions = [ "29" ];
|
|
|
|
includeSystemImages = false;
|
|
|
|
systemImageTypes = [ "default" ];
|
2021-04-12 14:07:55 +00:00
|
|
|
cmakeVersions = [ "3.18.1" ];
|
2020-08-27 12:20:39 +00:00
|
|
|
includeNDK = true;
|
2021-04-12 14:07:55 +00:00
|
|
|
ndkVersion = "22.1.7171670";
|
2020-08-27 12:20:39 +00:00
|
|
|
useGoogleAPIs = false;
|
|
|
|
useGoogleTVAddOns = false;
|
|
|
|
includeExtras = [
|
|
|
|
"extras;android;m2repository"
|
|
|
|
"extras;google;m2repository"
|
|
|
|
];
|
|
|
|
# The "android-sdk-license" license is accepted
|
|
|
|
# by setting android_sdk.accept_license = true.
|
|
|
|
extraLicenses = [];
|
|
|
|
}
|