vm-tests: build a sample android app offline in the android-dev archetype
This commit is contained in:
parent
f7f8c208b3
commit
36a8b4fa1f
2 changed files with 235 additions and 10 deletions
11
nix/archetypes/android-sdk-args.nix
Normal file
11
nix/archetypes/android-sdk-args.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# The arguments the `android-dev` archetype passes to `composeAndroidPackages`,
|
||||
# in one place so the VM test that builds against the same SDK reads them too.
|
||||
# build-tools 36.1.0 and platform 35: the pair the damocles agent builds with. No
|
||||
# emulator and no system images; they are large, and a build is run against a
|
||||
# device or an emulator elsewhere.
|
||||
{
|
||||
buildToolsVersions = [ "36.1.0" ];
|
||||
platformVersions = [ "35" ];
|
||||
includeEmulator = false;
|
||||
includeSystemImages = false;
|
||||
}
|
||||
|
|
@ -31,15 +31,8 @@
|
|||
module =
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
# build-tools 36.1.0 and platform 35: the pair the damocles agent builds
|
||||
# with. No emulator and no system images; they are large, and a build
|
||||
# is run against a device or an emulator elsewhere.
|
||||
sdk = pkgs.androidenv.composeAndroidPackages {
|
||||
buildToolsVersions = [ "36.1.0" ];
|
||||
platformVersions = [ "35" ];
|
||||
includeEmulator = false;
|
||||
includeSystemImages = false;
|
||||
};
|
||||
# Arguments in ./android-sdk-args.nix.
|
||||
sdk = pkgs.androidenv.composeAndroidPackages (import ./android-sdk-args.nix);
|
||||
sdkRoot = "${sdk.androidsdk}/libexec/android-sdk";
|
||||
# The unfree names the SDK needs: each package it is built from and
|
||||
# the archives those fetch. Read off the SDK itself, because the
|
||||
|
|
|
|||
Loading…
Reference in a new issue