react-native-navigation的迁移库

1234567891011121314151617181920
  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. curl https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip > android-sdk.zip
  11. unzip android-sdk.zip -d $ANDROID_HOME
  12. echo "Accepting Android Licenses"
  13. yes | sdkmanager --licenses