depot/third_party/nixpkgs/pkgs/development/mobile/androidenv/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

26 lines
710 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" ];
includeEmulator = true;
includeSystemImages = true;
includeNDK = true;
};
test-suite = pkgs.callPackage ./test-suite.nix {};
}