Skip to content

Commit a9b7892

Browse files
committed
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.
1 parent d9b5b36 commit a9b7892

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ android {
1212

1313
defaultConfig {
1414
applicationId "juloo.keyboard2"
15-
minSdk 11
15+
minSdk 21
1616
targetSdkVersion 35
1717
versionCode 44
1818
versionName "1.30.1"

shell.nix

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@ let
2222
};
2323

2424
emulators = let
25-
mk_emulator = { platformVersion, device ? "pixel_6" }:
25+
mk_emulator = { platformVersion, device ? "pixel_6", abiVersion ? "x86_64", systemImageType ? "default" }:
2626
pkgs.androidenv.emulateApp rec {
2727
name = "emulator_api${platformVersion}";
28-
inherit platformVersion;
29-
abiVersion = "x86_64";
28+
inherit platformVersion abiVersion systemImageType;
3029
androidAvdFlags = "--device ${device}";
31-
# There's no 'default' image for Android 15
32-
systemImageType = "google_apis";
3330
sdkExtraArgs = { inherit repoJson; };
3431
};
3532
# Allow to install several emulators in the same environment
@@ -38,8 +35,10 @@ let
3835
path = "${mk_emulator args}/bin/run-test-emulator";
3936
};
4037
in pkgs.linkFarm "emulator" [
41-
(link_emulator "14" { platformVersion = "34"; })
42-
(link_emulator "15" { platformVersion = "35"; })
38+
(link_emulator "5" { platformVersion = "21"; })
39+
# (link_emulator "14" { platformVersion = "34"; })
40+
# There's no 'default' image for Android 15
41+
(link_emulator "15" { platformVersion = "35"; systemImageType = "google_apis"; })
4342
];
4443

4544
ANDROID_SDK_ROOT = "${android.androidsdk}/libexec/android-sdk";

0 commit comments

Comments
 (0)