forked from Ivasoft/mattermost-mobile
Detox/E2E: Upgrade detox android emulator to api 31 (#6896)
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -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
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"android.emulator": {
|
||||
"type": "android.emulator",
|
||||
"device": {
|
||||
"avdName": "detox_pixel_4_xl_api_30"
|
||||
"avdName": "detox_pixel_4_xl_api_31"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user