summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-04-10 03:14:18 +0200
committercyBerta <cyberta@riseup.net>2023-04-10 03:14:18 +0200
commit04d5df83101f9fc4407eea337fae4fe6cc7a53be (patch)
tree727eb0681e1c7e589df1a72302dd08b025737f05 /scripts
parent5b62a5919996d1c6e4f6dfb0a7d49a126cd44be6 (diff)
disable annoying heads-up notifications during screenshotting
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fastlane.sh15
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 -