Skip to content

Instantly share code, notes, and snippets.

@hoyin258
Last active January 8, 2020 01:21
Show Gist options
  • Save hoyin258/fd26febce2223d3cc5590668aad986c4 to your computer and use it in GitHub Desktop.
Save hoyin258/fd26febce2223d3cc5590668aad986c4 to your computer and use it in GitHub Desktop.
# Install Required Software
brew cask install caskroom/versions/java8
brew cask install android-sdk
brew cask install intel-haxm
# Set path
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
# List out existing playstore image
# sdkmanager --list | grep "playstore"
# Download SDK and create AVD
sdkmanager "platform-tools" "platforms;android-29" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;29.0.0" "system-images;android-29;google_apis_playstore;x86_64" "emulator"
avdmanager create avd --force --name testAVD --abi google_apis_playstore/x86_64 --package "system-images;android-29;google_apis_playstore;x86_64"
# Create AVD
/usr/local/share/android-sdk/tools/emulator -avd testAVD -no-window -skin 1080x1920
@yintro4ha
Copy link

#Other Platform iOS

#List simulator
xcrun simctl list

#Take screenshot
xcrun simctl io booted screenshot screen.png

#Ref: https://medium.com/xcblog/simctl-control-ios-simulators-from-command-line-78b9006a20dc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment