62 lines
1.5 KiB
Plaintext
62 lines
1.5 KiB
Plaintext
/*
|
|
* Copyright © 2022-2023 Harsh Shandilya.
|
|
* Use of this source code is governed by an MIT-style
|
|
* license that can be found in the LICENSE file or at
|
|
* https://opensource.org/licenses/MIT.
|
|
*/
|
|
@file:Suppress("UnstableApiUsage")
|
|
|
|
import com.android.build.api.dsl.ManagedVirtualDevice
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.test)
|
|
id("dev.msfjarvis.claw.kotlin-android")
|
|
alias(libs.plugins.baselineprofile)
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.msfjarvis.claw.benchmark"
|
|
|
|
compileSdk = 34
|
|
defaultConfig {
|
|
minSdk = 28
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
create("benchmark") {
|
|
isDebuggable = true
|
|
signingConfig = signingConfigs["debug"]
|
|
matchingFallbacks += "release"
|
|
}
|
|
}
|
|
|
|
testOptions.managedDevices.devices {
|
|
create<ManagedVirtualDevice>("api31") {
|
|
device = "Pixel 6"
|
|
apiLevel = 31
|
|
systemImageSource = "aosp"
|
|
}
|
|
}
|
|
|
|
targetProjectPath = ":android"
|
|
experimentalProperties["android.experimental.r8.dex-startup-optimization"] = true
|
|
}
|
|
|
|
baselineProfile {
|
|
managedDevices += "api31"
|
|
useConnectedDevices = false
|
|
enableEmulatorDisplay = false
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.benchmark.macro.junit4)
|
|
implementation(libs.androidx.profileinstaller)
|
|
implementation(libs.androidx.test.core)
|
|
implementation(libs.androidx.test.espresso.core)
|
|
implementation(libs.androidx.test.ext.junit)
|
|
implementation(libs.androidx.test.rules)
|
|
implementation(libs.androidx.test.runner)
|
|
implementation(libs.androidx.test.uiautomator)
|
|
}
|