From 5697486fd1376594fc1f1cfc38780f567539da38 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 7 Feb 2023 10:08:43 -0300 Subject: [PATCH] Setting up emulator --- .circleci/config.yml | 12 ++++++++---- .detoxrc.js | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 510ef49cd..58d1e0c69 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -509,17 +509,21 @@ jobs: command: | yarn install --cache-folder=/home/circleci/repo/node_modules - save_cache: *save-npm-cache-linux - # - restore_cache: *restore-gradle-cache - create-e2e-account-file - android/create-avd: - avd-name: myavd + avd-name: Pixel_API_32_AOSP install: true system-image: system-images;android-32;google_apis;x86_64 - android/start-emulator: - avd-name: myavd + avd-name: Pixel_API_32_AOSP no-window: true post-emulator-launch-assemble-command: '' - # - save_cache: *save-gradle-cache + - run: + name: Setup emulator + command: | + echo "hw.lcd.density = 440" >> ~/.android/avd/Pixel_API_31_AOSP.avd/config.ini + echo "hw.lcd.height = 2280" >> ~/.android/avd/Pixel_API_31_AOSP.avd/config.ini + echo "hw.lcd.width = 1080" >> ~/.android/avd/Pixel_API_31_AOSP.avd/config.ini - run: name: Run Detox Tests command: | diff --git a/.detoxrc.js b/.detoxrc.js index ead5b7803..f03a0959e 100644 --- a/.detoxrc.js +++ b/.detoxrc.js @@ -52,7 +52,7 @@ module.exports = { emulator: { type: 'android.emulator', device: { - avdName: 'Pixel_API_31_AOSP' + avdName: 'Pixel_API_32_AOSP' } } },