1/* 2 * Copyright (C) 2020 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.test") 20 id("org.jetbrains.kotlin.android") 21} 22 23android { 24 defaultConfig { 25 minSdk = 23 26 } 27 namespace = "androidx.compose.integration.macrobenchmark" 28 targetProjectPath = ":compose:integration-tests:macrobenchmark-target" 29 experimentalProperties["android.experimental.self-instrumenting"] = true 30} 31 32// Create a release build type and make sure it's the only one enabled. 33// This is needed because we benchmark the release build type only. 34android.buildTypes { release {} } 35androidComponents { beforeVariants(selector().all()) { enabled = buildType == 'release' } } 36 37dependencies { 38 implementation(project(":benchmark:benchmark-junit4")) 39 implementation(project(":benchmark:benchmark-macro-junit4")) 40 implementation(project(":internal-testutils-macrobenchmark")) 41 implementation(libs.testRules) 42 implementation(libs.testExtJunit) 43 implementation(libs.testCore) 44 implementation(libs.testRunner) 45 implementation(libs.testUiautomator) 46} 47