react-native-navigation的迁移库

installAndroidSDK.sh 565B

12345678910111213141516171819
  1. #!/bin/bash -e
  2. scriptdir="$(dirname "${BASH_SOURCE[0]}")"
  3. export ANDROID_HOME=$HOME/android-sdk-macosx
  4. export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
  5. # fix for https://code.google.com/p/android/issues/detail?id=223424
  6. mkdir -p ~/.android
  7. # download android SDK
  8. echo "Downloading Android SDK"
  9. curl --location https://dl.google.com/android/android-sdk_r24.4.1-macosx.zip | tar -x -z -C $HOME
  10. # copy licenses
  11. echo "Copying Android licenses"
  12. mkdir -p "${ANDROID_HOME}"/licenses
  13. cp "$scriptdir/android-sdk-licenses/"* "${ANDROID_HOME}"/licenses