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("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) }