1/*
2 * Copyright 2022 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 */
16
17plugins {
18    id("AndroidXPlugin")
19    id("com.android.library")
20    id("org.jetbrains.kotlin.android")
21    id("androidx.baselineprofile")
22}
23
24android {
25    namespace = "androidx.benchmark.integration.baselineprofile.library.consumer"
26}
27
28dependencies {
29    implementation(libs.kotlinStdlib)
30    baselineProfile(project(":benchmark:integration-tests:baselineprofile-library-producer"))
31}
32
33baselineProfile {
34    filter {
35        include "androidx.benchmark.integration.baselineprofile.library.consumer.**"
36        exclude "androidx.benchmark.integration.baselineprofile.library.consumer.exclude.*"
37    }
38
39    // Note that these are the default settings, just reported here to make it explicit.
40    // `automaticGenerationDuringBuild` has to be off otherwise assembling release on CI would
41    // trigger baseline profile generation and integration tests on device.
42    saveInSrc = true
43    automaticGenerationDuringBuild = false
44}
45
46apply(from: "../baselineprofile-test-utils/utils.gradle")
47