mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-09 16:26:07 +00:00
cc63c8fff5
The purpose of this commit is to allow running `maestro` automations to enhance productivity by **automating** mundane tasks. Other flows like - send contact request - sync devices - join a community etc will be a part of follow ups. In this commit we provide a `make` command to run a very common task like creating account & login : `make auto-login` We also allow another `make` command to run any other custom flow : `make auto-custom FLOW="maestro/create-account-or-login.yaml"` A `maestro` folder has been added with 3 `yaml` files which are very easy to understand ref : https://maestro.mobile.dev/api-reference/commands
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
#
|
|
# Defines the default shell that is used when target is not specified.
|
|
# It is also merged with all the other shells for a complete set of tools.
|
|
#
|
|
{ config ? {}
|
|
, pkgs ? import ./pkgs.nix { inherit config; } }:
|
|
|
|
let
|
|
inherit (pkgs) mkShell;
|
|
in mkShell {
|
|
name = "status-mobile-shell"; # for identifying all shells
|
|
|
|
buildInputs = let
|
|
appleSDKFrameworks = (with pkgs.darwin.apple_sdk.frameworks; [
|
|
IOKit CoreServices
|
|
]);
|
|
in
|
|
with pkgs; lib.unique ([
|
|
# core utilities that should always be present in a shell
|
|
bash curl wget file unzip flock procps
|
|
git gnumake jq ncurses gnugrep parallel
|
|
lsof # used in start-react-native.sh
|
|
# build specific utilities
|
|
clojure maven watchman
|
|
# other nice to have stuff
|
|
yarn nodejs python310 maestro
|
|
] # and some special cases
|
|
++ lib.optionals stdenv.isDarwin ([ cocoapods clang tcl idb-companion ] ++ appleSDKFrameworks)
|
|
++ lib.optionals (!stdenv.isDarwin) [ gcc8 ]
|
|
);
|
|
|
|
# avoid terminal issues
|
|
TERM="xterm";
|
|
|
|
# default locale
|
|
LANG="en_US.UTF-8";
|
|
LANGUAGE="en_US.UTF-8";
|
|
|
|
# just a nicety for easy access to node scripts
|
|
shellHook = ''
|
|
export STATUS_MOBILE_HOME=$(git rev-parse --show-toplevel)
|
|
export PATH="$STATUS_MOBILE_HOME/node_modules/.bin:$PATH"
|
|
'';
|
|
}
|