react-native-navigation的迁移库

installAndroidSDK.sh 578B

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