Skip to content
Snippets Groups Projects
Commit 04d5df83 authored by cyberta's avatar cyberta
Browse files

disable annoying heads-up notifications during screenshotting

parent 5b62a591
Branches
Tags
No related merge requests found
...@@ -4,6 +4,13 @@ GREEN='\033[0;32m' ...@@ -4,6 +4,13 @@ GREEN='\033[0;32m'
RED='\033[0;31m' RED='\033[0;31m'
NC='\033[0m' 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 # init parameters
if [[ ${1} = "custom" ]]; then if [[ ${1} = "custom" ]]; then
BUILD_CUSTOM=true BUILD_CUSTOM=true
...@@ -25,9 +32,13 @@ SCRIPT_DIR=$(dirname "$0") ...@@ -25,9 +32,13 @@ SCRIPT_DIR=$(dirname "$0")
BASE_DIR="$SCRIPT_DIR/.." BASE_DIR="$SCRIPT_DIR/.."
cd $BASE_DIR cd $BASE_DIR
setHeadsupNotifications 0
if [[ -z $BUILD_CUSTOM ]]; then if [[ -z $BUILD_CUSTOM ]]; then
echo -e "${GREEN}-- Screenshotting Bitmask ---${NC}"
fastlane --verbose android bitmask_screenshots fastlane --verbose android bitmask_screenshots
else else
echo -e "${GREEN}-- Screenshotting custom build ---${NC}"
fastlane android custom_build_screenshots --env custom fastlane android custom_build_screenshots --env custom
fi; fi;
setHeadsupNotifications 1
cd - cd -
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment