mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
* IDX emulator implementation was change to localhost:5555 Co-authored-by: alexyfchen <alexyfchen@google.com>
34 lines
940 B
Django/Jinja
34 lines
940 B
Django/Jinja
# To learn more about how to use Nix to configure your environment
|
|
# see: https://developers.google.com/idx/guides/customize-idx-env
|
|
{ pkgs, ... }: {
|
|
# Which nixpkgs channel to use.
|
|
channel = "stable-23.11"; # or "unstable"
|
|
# Use https://search.nixos.org/packages to find packages
|
|
packages = [
|
|
pkgs.jdk21
|
|
];
|
|
# Sets environment variables in the workspace
|
|
env = {};
|
|
idx = {
|
|
workspace = {
|
|
onCreate = {
|
|
build-and-wait = "./gradlew assembleDebug && adb -s localhost:5555 wait-for-device";
|
|
default.openFiles = [ "README.md" ];
|
|
};
|
|
onStart = {
|
|
wait-for-adb = "adb -s localhost:5555 wait-for-device";
|
|
};
|
|
};
|
|
previews = {
|
|
enable = true;
|
|
previews = [
|
|
{
|
|
command = ["./gradlew" "--continuous" "installDebug"];
|
|
id = "android";
|
|
manager = "gradle";
|
|
activity = "{{ launch_activity }}";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
} |