mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 13:50:30 +05:30
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
import com.android.build.api.dsl.ManagedVirtualDevice
|
|
|
|
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 = JavaVersion.VERSION_17.toString()
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdk = 28
|
|
targetSdk = 34
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
targetProjectPath = ":app"
|
|
|
|
testOptions.managedDevices.devices {
|
|
create<ManagedVirtualDevice>("pixel6Api34") {
|
|
device = "Pixel 6"
|
|
apiLevel = 34
|
|
systemImageSource = "google"
|
|
}
|
|
}
|
|
}
|
|
|
|
// This is the configuration block for the Baseline Profile plugin.
|
|
// You can specify to run the generators on a managed devices or connected devices.
|
|
// For connected devices, API 28+ (rooted) or 33+ (not rooted) is required.
|
|
baselineProfile {
|
|
managedDevices += "pixel6Api34"
|
|
useConnectedDevices = false
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.test.junit)
|
|
implementation(libs.androidx.test.espressoCore)
|
|
implementation(libs.androidx.uiautomator)
|
|
implementation(libs.androidx.benchmark.macro.junit4)
|
|
}
|