Last active
January 8, 2020 01:21
-
-
Save hoyin258/fd26febce2223d3cc5590668aad986c4 to your computer and use it in GitHub Desktop.
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 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 |
#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
#Install APK
adb -s $device install $apk
#Take screenshot
adb -s $device exec-out screencap -p > $file