2020-08-27 12:20:39 +00:00
|
|
|
#
|
|
|
|
# This Nix expression centralizes the configuration
|
|
|
|
# for the Android development environment.
|
|
|
|
#
|
|
|
|
|
2023-06-09 12:51:33 +00:00
|
|
|
{ androidenv, lib, stdenv }:
|
|
|
|
|
|
|
|
assert lib.assertMsg (stdenv.system != "aarch64-darwin")
|
|
|
|
"aarch64-darwin not supported for Android SDK. Use: NIXPKGS_SYSTEM_OVERRIDE=x86_64-darwin";
|
2020-08-27 12:20:39 +00:00
|
|
|
|
2021-07-22 13:38:59 +00:00
|
|
|
# The "android-sdk-license" license is accepted
|
|
|
|
# by setting android_sdk.accept_license = true.
|
2020-08-27 12:20:39 +00:00
|
|
|
androidenv.composeAndroidPackages {
|
2023-01-31 16:54:29 +00:00
|
|
|
cmdLineToolsVersion = "9.0";
|
2020-08-27 12:20:39 +00:00
|
|
|
toolsVersion = "26.1.1";
|
2023-01-31 16:54:29 +00:00
|
|
|
platformToolsVersion = "33.0.3";
|
2024-03-22 14:21:44 +00:00
|
|
|
buildToolsVersions = [ "34.0.0" ];
|
|
|
|
platformVersions = [ "34" ];
|
2024-05-03 08:22:26 +00:00
|
|
|
# This version must match cmake version inside android/app/build.gradle
|
2023-12-11 15:52:23 +00:00
|
|
|
cmakeVersions = [ "3.22.1" ];
|
|
|
|
ndkVersion = "25.2.9519653";
|
2021-07-22 13:38:59 +00:00
|
|
|
includeNDK = true;
|
2020-08-27 12:20:39 +00:00
|
|
|
includeExtras = [
|
|
|
|
"extras;android;m2repository"
|
|
|
|
"extras;google;m2repository"
|
|
|
|
];
|
|
|
|
}
|