1/*
2 * Copyright 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16plugins {
17    id("AndroidXPlugin")
18    id("com.android.test")
19    id("org.jetbrains.kotlin.android")
20}
21android {
22    namespace = "androidx.privacysandbox.sdkruntime.integration.macrobenchmark"
23    targetProjectPath = ":privacysandbox:sdkruntime:integration-tests:testapp"
24    experimentalProperties["android.experimental.self-instrumenting"] = true
25    defaultConfig {
26        // :internal-testutils-macrobenchmark
27        minSdk = 23
28    }
29    privacySandbox {
30        enable = true
31    }
32}
33
34// Create a release build type and make sure it's the only one enabled.
35// This is needed because we benchmark the release build type only.
36android.buildTypes { release {} }
37androidComponents { beforeVariants(selector().all()) { enabled = buildType == "release" } }
38
39dependencies {
40    implementation(project(":benchmark:benchmark-junit4"))
41    implementation(project(":benchmark:benchmark-macro-junit4"))
42    implementation(project(":internal-testutils-macrobenchmark"))
43    implementation(libs.testRules)
44    implementation(libs.testExtJunit)
45    implementation(libs.testCore)
46    implementation(libs.testRunner)
47    implementation(libs.testUiautomator)
48}