react-native-navigation的迁移库

env.android.sh 488B

12345678910111213141516171819202122
  1. #!/bin/bash -e
  2. scriptdir="$(dirname "${BASH_SOURCE[0]}")"
  3. export ANDROID_HOME=$HOME/android-sdk
  4. export PATH=$PATH:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
  5. mkdir $ANDROID_HOME
  6. # fix for https://code.google.com/p/android/issues/detail?id=223424
  7. mkdir -p ~/.android
  8. touch ~/.android/repositories.cfg
  9. echo "Downloading Android SDK"
  10. brew --version
  11. brew config
  12. brew tap caskroom/cask
  13. brew cask install android-sdk
  14. echo "Accepting Android Licenses"
  15. yes | sdkmanager --licenses