react-native-navigation的迁移库

installAndroidSDK.sh 676B

12345678910111213141516171819202122232425
  1. #!/bin/sh -e
  2. # fix for https://code.google.com/p/android/issues/detail?id=223424
  3. mkdir -p ~/.android
  4. # download android SDK
  5. echo "Downloading Android SDK"
  6. curl --location http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | tar -x -z -C $HOME
  7. # copy licenses
  8. echo "Copying Android licenses"
  9. scriptdir=`dirname $0`
  10. cp "${scriptdir}"/android-licenses/* "${ANDROID_HOME}"/licenses
  11. #( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui -a \
  12. #--filter \
  13. #tools,\
  14. #platform-tools
  15. #build-tools-25.0.0,\
  16. #android-23,\
  17. #addon-google_apis-google-23,\
  18. #extra-android-m2repository,\
  19. #extra-google-google_play_services,\
  20. #extra-google-m2repository