Skip to content

Commit

Permalink
Fixed emulator on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzo committed Aug 14, 2024
1 parent 34b57fb commit 9528418
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 4 additions & 6 deletions demo-project/ui-tests/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.android.build.api.dsl.ManagedVirtualDevice

plugins {
alias(libs.plugins.android.test)
alias(libs.plugins.android.baseline)
Expand All @@ -25,10 +23,10 @@ android {
}
}

val emulator by android.testOptions.managedDevices.devices.creating(ManagedVirtualDevice::class) {
device = "Pixel 2"
apiLevel = libs.versions.android.compileSDK.get().toInt()
systemImageSource = "aosp_atd"
val emulator by android.testOptions.managedDevices.localDevices.registering {
device = "Pixel 6"
apiLevel = 33
systemImageSource = "aosp"
}

baselineProfile {
Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ org.gradle.caching=true
org.gradle.configuration-cache=true

android.useAndroidX=true
android.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
android.experimental.testOptions.managedDevices.maxConcurrentDevices=1
android.experimental.testOptions.managedDevices.setupTimeoutMinutes=180
android.testoptions.manageddevices.emulator.gpu=swiftshader_indirect

0 comments on commit 9528418

Please sign in to comment.