mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-12 21:30:30 +05:30
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.androidTest)
|
|
alias(libs.plugins.jetbrainsKotlinAndroid)
|
|
alias(libs.plugins.baselineprofile)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.github.libretube.baselineprofile"
|
|
compileSdk = 34
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
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 {
|
|
useConnectedDevices = true
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.test.junit)
|
|
implementation(libs.androidx.test.espressoCore)
|
|
implementation(libs.androidx.uiautomator)
|
|
implementation(libs.androidx.benchmark.macro.junit4)
|
|
}
|
|
|
|
androidComponents {
|
|
onVariants { v ->
|
|
v.instrumentationRunnerArguments.put(
|
|
"targetAppId",
|
|
v.testedApks.map { v.artifacts.getBuiltArtifactsLoader().load(it)?.applicationId }
|
|
)
|
|
}
|
|
} |