Skip to content

Commit f8b3e52

Browse files
committed
Fixing auto-accept android licenses
1 parent 7e06f94 commit f8b3e52

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

accept-licenses.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
/usr/bin/expect -c '
4+
set timeout -1;
5+
spawn '"${ANDROID_HOME}"'/tools/bin/sdkmanager --licenses;
6+
expect {
7+
"y/N" { exp_send "y\r" ; exp_continue }
8+
eof
9+
}
10+
'

appcenter-post-clone.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
echo "Starting post clone script..."
44

5+
echo "Accepting Android SDK"
6+
./accept-licenses.sh
7+
58
# fixing node version compatibility problem
69
set -ex
710
brew uninstall node@6

0 commit comments

Comments
 (0)