diff options
author | cyberta <cyberta@riseup.net> | 2023-04-12 08:12:07 +0000 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2023-04-12 08:12:07 +0000 |
commit | a4deca391ce064510002e24ba9f18d965f0dee59 (patch) | |
tree | 2ffe0d6b6fbbe8c9994e12d00273b10c827b9d2a /scripts | |
parent | 49adad2fabcee3077be729064409bfcfbc99fe01 (diff) | |
parent | bf797d855bb55f325e2fb647ac0690aabc62772f (diff) |
Merge branch 'improve_fastlane' into 'master'
improve fastlane
See merge request leap/bitmask_android!244
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/fastlane.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/scripts/fastlane.sh b/scripts/fastlane.sh index 1ce06ab8..42bcb0fd 100755 --- a/scripts/fastlane.sh +++ b/scripts/fastlane.sh @@ -4,6 +4,13 @@ GREEN='\033[0;32m' RED='\033[0;31m' NC='\033[0m' +function setHeadsupNotifications { + echo -e "${GREEN}---------------------------------------${NC}" + echo -e "${GREEN}-- Setting head-up notifications: $1 ---${NC}" + echo -e "${GREEN}---------------------------------------${NC}" + adb devices | grep -v -i "list" | sed 's/\t/ /' | cut -d ' ' -f 1 | xargs -I {} adb -s {} shell settings put global heads_up_notifications_enabled $1 +} + # init parameters if [[ ${1} = "custom" ]]; then BUILD_CUSTOM=true @@ -25,9 +32,13 @@ SCRIPT_DIR=$(dirname "$0") BASE_DIR="$SCRIPT_DIR/.." cd $BASE_DIR +setHeadsupNotifications 0 if [[ -z $BUILD_CUSTOM ]]; then - fastlane --verbose android bitmask_screenshots + echo -e "${GREEN}-- Screenshotting Bitmask ---${NC}" + fastlane --verbose android bitmask_screenshots else - fastlane android custom_build_screenshots --env custom + echo -e "${GREEN}-- Screenshotting custom build ---${NC}" + fastlane android custom_build_screenshots --env custom fi; +setHeadsupNotifications 1 cd - |