Sha256: 7e0fcc5c31fe4b342483f0feac8cb3064e216698a83c462fdd630aec40f03c2e

Contents?: true

Size: 1023 Bytes

Versions: 6

Compression:

Stored size: 1023 Bytes

Contents

#!/usr/bin/env bash

# This script was copy-pasted from https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/android?view=azure-devops#test-on-the-android-emulator
# with some changes

# Install AVD files
declare -r emulator="system-images;android-${ANDROID_SDK_VERSION};google_apis;x86"
echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager --install "$emulator"

# Show a list of emulators
${ANDROID_HOME}/tools/bin/avdmanager list

# Create emulator
echo "no" | ${ANDROID_HOME}/tools/bin/avdmanager create avd -d "Nexus 5X" -n testemulator -k "${emulator}" --force

echo ${ANDROID_HOME}/emulator/emulator -list-avds

echo "Starting emulator"

# Start emulator in background
nohup ${ANDROID_HOME}/emulator/emulator -avd testemulator -accel auto -no-boot-anim -no-snapshot > /dev/null 2>&1 &
${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'

${ANDROID_HOME}/platform-tools/adb devices

echo "Emulator started"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appium_lib_core-3.11.0 ci-jobs/functional/start-emulator.sh
appium_lib_core-3.10.1 ci-jobs/functional/start-emulator.sh
appium_lib_core-3.10.0 ci-jobs/functional/start-emulator.sh
appium_lib_core-3.9.0 ci-jobs/functional/start-emulator.sh
appium_lib_core-3.8.0 ci-jobs/functional/start-emulator.sh
appium_lib_core-3.7.0 ci-jobs/functional/start-emulator.sh