2024-01-01 11:56:58 +05:30
|
|
|
import com.android.build.api.dsl.ManagedVirtualDevice
|
|
|
|
|
|
|
|
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 {
|
2024-01-02 16:48:44 +05:30
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2024-01-01 11:56:58 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
2024-01-02 16:48:44 +05:30
|
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
2024-01-01 11:56:58 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = 28
|
|
|
|
targetSdk = 34
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
targetProjectPath = ":app"
|
|
|
|
|
2024-01-09 12:17:53 +05:30
|
|
|
testOptions.managedDevices.devices {
|
|
|
|
create<ManagedVirtualDevice>("pixel6Api34") {
|
|
|
|
device = "Pixel 6"
|
|
|
|
apiLevel = 34
|
|
|
|
systemImageSource = "google"
|
|
|
|
}
|
|
|
|
}
|
2024-01-01 11:56:58 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
// This is the configuration block for the Baseline Profile plugin.
|
|
|
|
// You can specify to run the generators on a managed devices or connected devices.
|
2024-01-02 16:48:44 +05:30
|
|
|
// For connected devices, API 28+ (rooted) or 33+ (not rooted) is required.
|
2024-01-01 11:56:58 +05:30
|
|
|
baselineProfile {
|
2024-01-09 12:17:53 +05:30
|
|
|
managedDevices += "pixel6Api34"
|
|
|
|
useConnectedDevices = false
|
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)
|
|
|
|
}
|