Detox/E2E: Upgrade detox android emulator to api 31 (#6896)

This commit is contained in:
Joseph Baylon
2022-12-21 11:31:32 -08:00
committed by GitHub
parent 9da7b47827
commit a7db26992d
4 changed files with 10 additions and 10 deletions

2
.gitignore vendored
View File

@@ -102,7 +102,7 @@ coverage
mattermost-license.txt
*.mattermost-license
detox/artifacts
detox/detox_pixel_4_xl_api_30
detox/detox_pixel_*
# Bundle artifact
*.jsbundle

View File

@@ -36,7 +36,7 @@
"android.emulator": {
"type": "android.emulator",
"device": {
"avdName": "detox_pixel_4_xl_api_30"
"avdName": "detox_pixel_4_xl_api_31"
}
}
},

View File

@@ -1,7 +1,7 @@
AvdId = Detox_Pixel_4_XL_API_30
AvdId = Detox_Pixel_4_XL_API_31
PlayStore.enabled = false
abi.type = x86
avd.ini.displayname = Detox Pixel 4 XL API 30
abi.type = x86_64
avd.ini.displayname = Detox Pixel 4 XL API 31
avd.ini.encoding = UTF-8
disk.dataPartition.size = 6g
fastboot.chosenSnapshotFile =
@@ -16,7 +16,7 @@ hw.audioOutput = no
hw.battery = yes
hw.camera.back = virtualscene
hw.camera.front = emulated
hw.cpu.arch = x86
hw.cpu.arch = x86_64
hw.cpu.ncore = 4
hw.dPad = no
hw.device.hash2 = MD5:80326cf5b53c08af25d4243cb231faa9
@@ -36,7 +36,7 @@ hw.sdCard = no
hw.sensors.orientation = yes
hw.sensors.proximity = yes
hw.trackBall = no
image.sysdir.1 = system-images/android-30/google_apis/x86/
image.sysdir.1 = system-images/android-31/google_apis/x86_64/
runtime.network.latency = none
runtime.network.speed = full
sdcard.size = 0

View File

@@ -3,13 +3,13 @@
set -ex
set -o pipefail
NAME=detox_pixel_4_xl_api_30
NAME=detox_pixel_4_xl_api_31
if emulator -list-avds | grep -q $NAME; then
echo "'${NAME}' Android virtual device already exists."
else
# Create virtual device in a relative "detox_pixel_4_xl_api_30" folder
avdmanager create avd -n $NAME -k 'system-images;android-30;google_apis;x86' -g google_apis -p $NAME -d 'pixel'
# Create virtual device in a relative "detox_pixel_4_xl_api_31" folder
avdmanager create avd -n $NAME -k 'system-images;android-31;google_apis;x86_64' -g google_apis -p $NAME -d 'pixel'
# Copy predefined config and skin
cp -r android_emulator/ $NAME/