Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask_android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ja 223r
bitmask_android
Commits
04d5df83
Commit
04d5df83
authored
2 years ago
by
cyberta
Browse files
Options
Downloads
Patches
Plain Diff
disable annoying heads-up notifications during screenshotting
parent
5b62a591
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/fastlane.sh
+13
-2
13 additions, 2 deletions
scripts/fastlane.sh
with
13 additions
and
2 deletions
scripts/fastlane.sh
+
13
−
2
View file @
04d5df83
...
@@ -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
-
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment