From a9b78923c0c3e7dbe3f590c46fff387a6b0fbc26 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 29 Dec 2024 00:27:44 +0100 Subject: Drop support for Android 3 and 4 Support for Android 4 was broken for several releases and no one noticed. The lowest supported version is now Android 5. --- shell.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index fe9c56c..cabd6df 100644 --- a/shell.nix +++ b/shell.nix @@ -22,14 +22,11 @@ let }; emulators = let - mk_emulator = { platformVersion, device ? "pixel_6" }: + mk_emulator = { platformVersion, device ? "pixel_6", abiVersion ? "x86_64", systemImageType ? "default" }: pkgs.androidenv.emulateApp rec { name = "emulator_api${platformVersion}"; - inherit platformVersion; - abiVersion = "x86_64"; + inherit platformVersion abiVersion systemImageType; androidAvdFlags = "--device ${device}"; - # There's no 'default' image for Android 15 - systemImageType = "google_apis"; sdkExtraArgs = { inherit repoJson; }; }; # Allow to install several emulators in the same environment @@ -38,8 +35,10 @@ let path = "${mk_emulator args}/bin/run-test-emulator"; }; in pkgs.linkFarm "emulator" [ - (link_emulator "14" { platformVersion = "34"; }) - (link_emulator "15" { platformVersion = "35"; }) + (link_emulator "5" { platformVersion = "21"; }) + # (link_emulator "14" { platformVersion = "34"; }) + # There's no 'default' image for Android 15 + (link_emulator "15" { platformVersion = "35"; systemImageType = "google_apis"; }) ]; ANDROID_SDK_ROOT = "${android.androidsdk}/libexec/android-sdk"; -- cgit v1.2.3