xref: /aosp_15_r20/external/lottie/baselineprofile/build.gradle (revision bb5273fecd5c61b9ace70f9ff4fcd88f0e12e3f7)
1*bb5273feSAndroid Build Coastguard Workerimport com.android.build.api.dsl.ManagedVirtualDevice
2*bb5273feSAndroid Build Coastguard Worker
3*bb5273feSAndroid Build Coastguard Workerplugins {
4*bb5273feSAndroid Build Coastguard Worker  id 'com.android.test'
5*bb5273feSAndroid Build Coastguard Worker  id 'org.jetbrains.kotlin.android'
6*bb5273feSAndroid Build Coastguard Worker  id 'androidx.baselineprofile'
7*bb5273feSAndroid Build Coastguard Worker}
8*bb5273feSAndroid Build Coastguard Worker
9*bb5273feSAndroid Build Coastguard Workerandroid {
10*bb5273feSAndroid Build Coastguard Worker  namespace 'com.airbnb.lottie.baselineprofile'
11*bb5273feSAndroid Build Coastguard Worker  compileSdk 34
12*bb5273feSAndroid Build Coastguard Worker
13*bb5273feSAndroid Build Coastguard Worker  defaultConfig {
14*bb5273feSAndroid Build Coastguard Worker    minSdk 28
15*bb5273feSAndroid Build Coastguard Worker    targetSdk 34
16*bb5273feSAndroid Build Coastguard Worker
17*bb5273feSAndroid Build Coastguard Worker    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18*bb5273feSAndroid Build Coastguard Worker    testInstrumentationRunnerArguments["androidx.benchmark.suppressErrors"] = "EMULATOR"
19*bb5273feSAndroid Build Coastguard Worker  }
20*bb5273feSAndroid Build Coastguard Worker
21*bb5273feSAndroid Build Coastguard Worker  targetProjectPath = ":app-benchmark"
22*bb5273feSAndroid Build Coastguard Worker
23*bb5273feSAndroid Build Coastguard Worker  testOptions.managedDevices.devices {
24*bb5273feSAndroid Build Coastguard Worker    pixel6Api34(ManagedVirtualDevice) {
25*bb5273feSAndroid Build Coastguard Worker      device = "Pixel 6"
26*bb5273feSAndroid Build Coastguard Worker      apiLevel = 34
27*bb5273feSAndroid Build Coastguard Worker      systemImageSource = "google"
28*bb5273feSAndroid Build Coastguard Worker    }
29*bb5273feSAndroid Build Coastguard Worker  }
30*bb5273feSAndroid Build Coastguard Worker}
31*bb5273feSAndroid Build Coastguard Worker
32*bb5273feSAndroid Build Coastguard WorkerbaselineProfile {
33*bb5273feSAndroid Build Coastguard Worker  managedDevices += "pixel6Api34"
34*bb5273feSAndroid Build Coastguard Worker  useConnectedDevices = false
35*bb5273feSAndroid Build Coastguard Worker}
36*bb5273feSAndroid Build Coastguard Worker
37*bb5273feSAndroid Build Coastguard Workerdependencies {
38*bb5273feSAndroid Build Coastguard Worker  implementation libs.okio
39*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.test.junit
40*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.test.espresso
41*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.test.uiautomator
42*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.test.macrobenchmark
43*bb5273feSAndroid Build Coastguard Worker}
44