LibreTube/baselineprofile/build.gradle.kts

51 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2024-01-01 11:56:58 +05:30
plugins {
alias(libs.plugins.androidTest)
alias(libs.plugins.jetbrainsKotlinAndroid)
alias(libs.plugins.baselineprofile)
}
android {
2024-01-01 16:58:45 +05:30
namespace = "com.github.libretube.baselineprofile"
2024-01-01 11:56:58 +05:30
compileSdk = 34
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
2024-01-01 11:56:58 +05:30
}
kotlinOptions {
2024-03-21 00:31:39 +05:30
jvmTarget = "17"
2024-01-01 11:56:58 +05:30
}
defaultConfig {
minSdk = 28
targetSdk = 34
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
targetProjectPath = ":app"
}
// This is the configuration block for the Baseline Profile plugin.
// You can specify to run the generators on a managed devices or connected devices.
baselineProfile {
2024-03-21 00:31:39 +05:30
useConnectedDevices = true
2024-01-01 11:56:58 +05:30
}
dependencies {
implementation(libs.androidx.test.junit)
implementation(libs.androidx.test.espressoCore)
implementation(libs.androidx.uiautomator)
implementation(libs.androidx.benchmark.macro.junit4)
}
2024-03-21 00:31:39 +05:30
androidComponents {
onVariants { v ->
v.instrumentationRunnerArguments.put(
"targetAppId",
v.testedApks.map { v.artifacts.getBuiltArtifactsLoader().load(it)?.applicationId }
)
}
}