1/**
2 * This file was created using the `create_project.py` script located in the
3 * `<AndroidX root>/development/project-creator` directory.
4 *
5 * Please use that script when creating a new project, rather than copying an existing project and
6 * modifying its settings.
7 */
8import com.android.build.api.dsl.ManagedVirtualDevice
9
10/*
11 * Copyright (C) 2022 The Android Open Source Project
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 *      http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 */
25
26plugins {
27    id("AndroidXPlugin")
28    id("com.android.test")
29    id("org.jetbrains.kotlin.android")
30    id("androidx.baselineprofile")
31}
32
33android {
34    defaultConfig {
35        minSdk = 24
36    }
37    testOptions.managedDevices.allDevices {
38        pixel6Api31(ManagedVirtualDevice) {
39            device = "Pixel 6"
40            apiLevel = 31
41            systemImageSource = "aosp"
42        }
43    }
44    buildTypes {
45        release { }
46        releaseLibrariesOnly { }
47    }
48    targetProjectPath = ":benchmark:integration-tests:baselineprofile-consumer"
49    namespace = "androidx.benchmark.integration.baselineprofile.producer"
50}
51
52dependencies {
53    implementation(project(":benchmark:benchmark-junit4"))
54    implementation(project(":benchmark:benchmark-macro-junit4"))
55    implementation(libs.testRules)
56    implementation(libs.testExtJunit)
57    implementation(libs.testCore)
58    implementation(libs.testRunner)
59    implementation(libs.testUiautomator)
60    implementation(libs.testExtTruth)
61}
62
63baselineProfile {
64    enableEmulatorDisplay = true
65    useConnectedDevices = true
66}
67
68androidx {
69    deviceTests {
70        enabled = false
71    }
72}
73