Skip to content

Instantly share code, notes, and snippets.

@oliverspryn
Created February 11, 2022 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliverspryn/3fbcdd9d942024a9412258fed02aff4f to your computer and use it in GitHub Desktop.
Save oliverspryn/3fbcdd9d942024a9412258fed02aff4f to your computer and use it in GitHub Desktop.
Gradle managed devices
android {
testOptions {
devices {
pixel2api29 (com.android.build.api.dsl.ManagedVirtualDevice) {
device = "Pixel 2"
apiLevel = 29
systemImageSource = "google"
abi = "x86"
}
nexus9api30 (com.android.build.api.dsl.ManagedVirtualDevice) {
// ...
}
}
deviceGroups {
phoneAndTablet {
targetDevices.addAll(devices.pixel2api29, devices.nexus9api30)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment