Skip to content

Commit

Permalink
sdkmanager: system image 31 -S
Browse files Browse the repository at this point in the history
  • Loading branch information
sirkev committed Jun 14, 2024
1 parent de99a54 commit 973ecf5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/appium_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [ 29 ]
api-level: [ 31 ]
target: [ default ]
permissions:
contents: write
Expand Down Expand Up @@ -73,5 +73,5 @@ jobs:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: pixel 6a
profile: pixel_6_pro
script: ./gradlew connectedCheck
6 changes: 3 additions & 3 deletions scripts/emulator-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ set -e #stop immediately if any error happens
avd_name=$1

if [[ -z "$avd_name" ]]; then
avd_name="avd29"
avd_name="pixel_6_pro"
fi

#check if emulator works well
emulator -version

# create virtual device, default using Android 10 image (API Level 29)
echo no | avdmanager --verbose create avd --force --name "pixel_6_pro" --package "system-images;android-29;google_apis;x86_64" --tag "google_apis" --abi "x86_64" --device "pixel_6_pro"
echo no | avdmanager --verbose create avd --force --name "pixel_6_pro" --package "system-images;android-31;google_apis;x86_64" --tag "google_apis" --abi "x86_64" --device "pixel_6_pro"

# start the emulator
emulator -avd avd29 -no-audio -no-window -no-accel &
emulator -avd avd_name -no-audio -no-window -no-accel &

# show connected virtual device
adb devices
6 changes: 3 additions & 3 deletions scripts/install-android-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ echo 'export PATH=$SDK/emulator:$SDK/tools:$SDK/tools/bin:$SDK/platform-tools:$P
# shellcheck disable=SC1090
source ~/.bashrc

# Install Android Image version 29
yes | sudo sdkmanager "platform-tools" "platforms;android-29" "emulator"
yes | sudo sdkmanager --channel=0 "system-images;android-28;default;x86"
# Install Android Image version 31
yes | sudo sdkmanager "platform-tools" "platforms;android-31" "emulator"
yes | sudo sdkmanager --channel=0 "system-images;android-31;google_apis_playstore;x86_64"

emulator -version

Expand Down

0 comments on commit 973ecf5

Please sign in to comment.