depot/third_party/nixpkgs/pkgs/development/mobile/androidenv/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

32 lines
914 B
Nix

{ config, pkgs ? import <nixpkgs> {}
, licenseAccepted ? config.android_sdk.accept_license or (builtins.getEnv "NIXPKGS_ACCEPT_ANDROID_SDK_LICENSE" == "1")
}:
rec {
composeAndroidPackages = pkgs.callPackage ./compose-android-packages.nix {
inherit licenseAccepted;
};
buildApp = pkgs.callPackage ./build-app.nix {
inherit composeAndroidPackages;
};
emulateApp = pkgs.callPackage ./emulate-app.nix {
inherit composeAndroidPackages;
};
androidPkgs = composeAndroidPackages {
platformVersions = [ "28" "29" "30" "31" "32" "33" "34" "35" ];
includeEmulator = true;
includeSystemImages = true;
includeNDK = true;
};
test-suite = pkgs.callPackage ./test-suite.nix {};
meta = with pkgs.lib; {
description = "Android SDK & sdkmanager";
homepage = "https://developer.android.com/tools/sdkmanager";
maintainers = with maintainers; [ numinit hadilq ];
};
}