xref: /aosp_15_r20/external/lottie/benchmark/build.gradle (revision bb5273fecd5c61b9ace70f9ff4fcd88f0e12e3f7)
1plugins {
2  id 'com.android.test'
3  id 'org.jetbrains.kotlin.android'
4  id 'androidx.baselineprofile'
5}
6
7android {
8  namespace 'com.airbnb.lottie.benchmark'
9  compileSdk 34
10
11  kotlinOptions {
12    freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
13  }
14
15  defaultConfig {
16    minSdk 30
17    targetSdk 34
18
19    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20  }
21
22  buildTypes {
23    release {
24      debuggable = true
25      signingConfig = debug.signingConfig
26    }
27  }
28
29  targetProjectPath = ":app-benchmark"
30  experimentalProperties["android.experimental.self-instrumenting"] = true
31
32  testOptions.managedDevices.devices {
33    pixel6Api31(com.android.build.api.dsl.ManagedVirtualDevice) {
34      device = "Pixel 6"
35      apiLevel = 31
36      systemImageSource = "aosp"
37    }
38  }
39}
40
41baselineProfile {
42  managedDevices += "pixel6Api31"
43  useConnectedDevices = false
44}
45
46dependencies {
47  implementation libs.androidx.test.junit
48  implementation libs.androidx.test.espresso
49  implementation libs.androidx.test.uiautomator
50  implementation libs.androidx.test.macrobenchmark
51  implementation libs.compose.ui.test.junit
52}
53