feat(benchmark): migrate to Gradle Managed Devices

This commit is contained in:
Harsh Shandilya 2023-04-16 11:17:57 +05:30
parent d31fe53f78
commit 553bbedc95
No known key found for this signature in database
3 changed files with 30 additions and 51 deletions

View file

@ -4,6 +4,10 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
@file:Suppress("UnstableApiUsage")
import com.android.build.api.dsl.ManagedVirtualDevice
plugins {
alias(libs.plugins.android.test)
id("dev.msfjarvis.claw.android-common")
@ -23,6 +27,18 @@ android {
}
}
testOptions {
managedDevices {
devices {
create<ManagedVirtualDevice>("api31") {
device = "Pixel 6"
apiLevel = 31
systemImageSource = "aosp"
}
}
}
}
targetProjectPath = ":android"
experimentalProperties["android.experimental.self-instrumenting"] = true
}