androidenv: updates for Android API 35

This commit is contained in:
Hadi 2024-08-19 16:11:26 -04:00
parent a137f263af
commit a551cfdc3e
No known key found for this signature in database
GPG Key ID: 416AD9E8E372C075
7 changed files with 1383 additions and 531 deletions

View File

@ -4,8 +4,8 @@
{ cmdLineToolsVersion ? "13.0"
, toolsVersion ? "26.1.1"
, platformToolsVersion ? "35.0.1"
, buildToolsVersions ? [ "34.0.0" ]
, platformToolsVersion ? "35.0.2"
, buildToolsVersions ? [ "35.0.0" ]
, includeEmulator ? false
, emulatorVersion ? "35.1.4"
, platformVersions ? []
@ -15,7 +15,7 @@
, abiVersions ? [ "x86" "x86_64" "armeabi-v7a" "arm64-v8a" ]
, cmakeVersions ? [ ]
, includeNDK ? false
, ndkVersion ? "26.3.11579264"
, ndkVersion ? "27.0.12077973"
, ndkVersions ? [ndkVersion]
, useGoogleAPIs ? false
, useGoogleTVAddOns ? false

View File

@ -16,7 +16,7 @@ rec {
};
androidPkgs = composeAndroidPackages {
platformVersions = [ "28" "29" "30" "31" "32" "33" "34" ];
platformVersions = [ "28" "29" "30" "31" "32" "33" "34" "35" ];
includeEmulator = true;
includeSystemImages = true;
includeNDK = true;

View File

@ -1,8 +1,8 @@
{ composeAndroidPackages, stdenv, lib, runtimeShell }:
{ name
, app ? null
, platformVersion ? "33"
, abiVersion ? "armeabi-v7a"
, platformVersion ? "35"
, abiVersion ? "x86"
, systemImageType ? "default"
, enableGPU ? false # Enable GPU acceleration. It's deprecated, instead use `configOptions` below.
, configOptions ? (

View File

@ -26,9 +26,9 @@ let
# Declaration of versions for everything. This is useful since these
# versions may be used in multiple places in this Nix expression.
android = {
platforms = [ "34" ];
platforms = [ "35" ];
systemImageTypes = [ "google_apis" ];
abis = [ "arm64-v8a" "x86_64" ];
abis = [ "x86_64" ];
};
# If you copy this example out of nixpkgs, something like this will work:
@ -116,10 +116,9 @@ pkgs.mkShell rec {
echo "installed_packages_section: ''${installed_packages_section}"
packages=(
"build-tools;34.0.0" "cmdline-tools;11.0" \
"emulator" "patcher;v4" "platform-tools" "platforms;android-34" \
"system-images;android-34;google_apis;arm64-v8a" \
"system-images;android-34;google_apis;x86_64"
"build-tools;35.0.0" "cmdline-tools;13.0" \
"emulator" "patcher;v4" "platform-tools" "platforms;android-35" \
"system-images;android-35;google_apis;x86_64"
)
for package in "''${packages[@]}"; do
@ -142,7 +141,7 @@ pkgs.mkShell rec {
excluded_packages=(
"platforms;android-23" "platforms;android-24" "platforms;android-25" "platforms;android-26" \
"platforms;android-27" "platforms;android-28" "platforms;android-29" "platforms;android-30" \
"platforms;android-31" "platforms;android-32" "platforms;android-33" \
"platforms;android-31" "platforms;android-32" "platforms;android-33" "platforms;android-34" \
"sources;android-23" "sources;android-24" "sources;android-25" "sources;android-26" \
"sources;android-27" "sources;android-28" "sources;android-29" "sources;android-30" \
"sources;android-31" "sources;android-32" "sources;android-33" "sources;android-34" \
@ -169,7 +168,7 @@ pkgs.mkShell rec {
nativeBuildInputs = [ androidSdk androidEmulator jdk ];
} ''
avdmanager delete avd -n testAVD || true
echo "" | avdmanager create avd --force --name testAVD --package 'system-images;android-34;google_apis;x86_64'
echo "" | avdmanager create avd --force --name testAVD --package 'system-images;android-35;google_apis;x86_64'
result=$(avdmanager list avd)
if [[ ! $result =~ "Name: testAVD" ]]; then

View File

@ -26,11 +26,11 @@ let
# versions may be used in multiple places in this Nix expression.
android = {
versions = {
cmdLineToolsVersion = "11.0";
platformTools = "34.0.5";
buildTools = "34.0.0";
cmdLineToolsVersion = "13.0";
platformTools = "35.0.2";
buildTools = "35.0.0";
};
platforms = [ "34" ];
platforms = [ "35" ];
};
# If you copy this example out of nixpkgs, something like this will work:
@ -113,8 +113,8 @@ pkgs.mkShell rec {
echo "installed_packages_section: ''${installed_packages_section}"
packages=(
"build-tools;34.0.0" "cmdline-tools;11.0" \
"patcher;v4" "platform-tools" "platforms;android-34"
"build-tools;35.0.0" "cmdline-tools;13.0" \
"patcher;v4" "platform-tools" "platforms;android-35"
)
for package in "''${packages[@]}"; do

View File

@ -26,17 +26,17 @@ let
android = {
versions = {
cmdLineToolsVersion = "13.0";
platformTools = "35.0.1";
buildTools = "34.0.0";
platformTools = "35.0.2";
buildTools = "35.0.0";
ndk = [
"26.3.11579264"
"27.0.12077973"
];
cmake = "3.6.4111459";
emulator = "35.1.4";
};
platforms = [ "23" "24" "25" "26" "27" "28" "29" "30" "31" "32" "33" "34" ];
abis = ["armeabi-v7a" "arm64-v8a"];
platforms = [ "23" "24" "25" "26" "27" "28" "29" "30" "31" "32" "33" "34" "35" ];
abis = [ "x86_64" ];
extras = ["extras;google;gcm"];
};
@ -163,21 +163,24 @@ pkgs.mkShell rec {
output="$(sdkmanager --list)"
installed_packages_section=$(echo "''${output%%Available Packages*}" | awk 'NR>4 {print $1}')
# FIXME couldn't find platforms;android-34, even though it's in the correct directory!! sdkmanager's bug?!
packages=(
"build-tools;34.0.0" "platform-tools" \
"build-tools;35.0.0" "platform-tools" \
"platforms;android-23" "platforms;android-24" "platforms;android-25" "platforms;android-26" \
"platforms;android-27" "platforms;android-28" "platforms;android-29" "platforms;android-30" \
"platforms;android-31" "platforms;android-32" "platforms;android-33" "platforms;android-34" \
"platforms;android-31" "platforms;android-32" "platforms;android-33" "platforms;android-35" \
"sources;android-23" "sources;android-24" "sources;android-25" "sources;android-26" \
"sources;android-27" "sources;android-28" "sources;android-29" "sources;android-30" \
"sources;android-31" "sources;android-32" "sources;android-33" "sources;android-34" \
"system-images;android-28;google_apis_playstore;arm64-v8a" \
"system-images;android-29;google_apis_playstore;arm64-v8a" \
"system-images;android-30;google_apis_playstore;arm64-v8a" \
"system-images;android-31;google_apis_playstore;arm64-v8a" \
"system-images;android-32;google_apis_playstore;arm64-v8a" \
"system-images;android-33;google_apis_playstore;arm64-v8a" \
"system-images;android-34;google_apis_playstore;arm64-v8a"
"sources;android-35" \
"system-images;android-28;google_apis_playstore;x86_64" \
"system-images;android-29;google_apis_playstore;x86_64" \
"system-images;android-30;google_apis_playstore;x86_64" \
"system-images;android-31;google_apis_playstore;x86_64" \
"system-images;android-32;google_apis_playstore;x86_64" \
"system-images;android-33;google_apis_playstore;x86_64" \
"system-images;android-34;google_apis;x86_64" \
"system-images;android-35;google_apis_playstore_ps16k;x86_64"
)
for package in "''${packages[@]}"; do

File diff suppressed because it is too large Load Diff