Created
June 24, 2019 23:46
-
-
Save liyuqian/06a07d5ec4c3bc1236ee8a646c7322b3 to your computer and use it in GitHub Desktop.
Flutter device lab mac setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
# Install convenient tools | |
brew cask install iterm2 | |
brew cask install visual-studio-code | |
brew cask install google-chrome | |
# Install Dart | |
brew tap dart-lang/dart | |
brew install dart | |
# Setup iOS development environment. | |
# See most up-to-date information at | |
# https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices | |
brew install --HEAD usbmuxd | |
brew link usbmuxd | |
brew install --HEAD libimobiledevice | |
brew install ideviceinstaller ios-deploy cocoapods | |
time pod setup # This step takes 70 minutes. | |
# Setup Android development environment. | |
brew tap AdoptOpenJDK/openjdk | |
brew cask install adoptopenjdk8 # For java | |
brew cask install android-sdk | |
yes | sdkmanager --licenses | |
sdkmanager "platform-tools" "platforms;android-28" | |
echo 'export PATH=/usr/local/share/android-sdk/platform-tools:$PATH' >> ~/.bash_profile | |
source ~/.bash_profile | |
adb devices # See if adb works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment