/* * Copyright 2022 Erfan Sn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ plugins { alias(libs.plugins.android.test) alias(libs.plugins.kotlin.android) alias(libs.plugins.androidx.baselineprofile) } kotlin { jvmToolchain(Configs.JVM_TOOLCHAIN_VERSION) } android { compileSdk = Configs.COMPILE_SDK_VERSION namespace = "${Configs.PACKAGE_NAME}.benchmark" defaultConfig { minSdk = 28 targetSdk = Configs.TARGET_SDK_VERSION testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } targetProjectPath = ":app" experimentalProperties["android.experimental.self-instrumenting"] = true testOptions.managedDevices.localDevices { create("pixel8Api34") { device = "Pixel 8 API 34" apiLevel = 34 systemImageSource = "aosp-atd" } } } baselineProfile { managedDevices += "pixel8Api34" useConnectedDevices = false } dependencies { implementation(libs.androidx.core.ktx) implementation(libs.androidx.runner) implementation(libs.ext.junit) implementation(libs.androidx.uiautomator) implementation(libs.androidx.benchmark.macro.junit4) }