Skip to content

Instantly share code, notes, and snippets.

@ShadyRover
Created October 19, 2021 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShadyRover/3f69c801125fbd67aeb08ce1703dd0b0 to your computer and use it in GitHub Desktop.
Save ShadyRover/3f69c801125fbd67aeb08ce1703dd0b0 to your computer and use it in GitHub Desktop.
Accept All Android Emulator Licences
#!/bin/bash
<< ////
The script creates 'licenses' under '$ANDROID_HOME' and creates a file which proves
that the SDK license was accepted by the user.
Usage:
In .travis.yml
before_script:
- curl URL_OF_THIS_FILE | sh
In jitpack.yml
before_install:
- curl URL_OF_THIS_FILE | sh
////
set -ex
cd $ANDROID_HOME
mkdir -p licenses
cat << EOF >> licenses/android-sdk-license
8933bad161af4178b1185d1a37fbf41ea5269c55
d56f5187479451eabf01fb78af6dfcb131a6481e
24333f8a63b6825ea9c5514f83c2829b004d1fee
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment