build.gradle.kts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import com.android.build.api.dsl.ManagedVirtualDevice
  2. plugins {
  3. id("com.android.test")
  4. id("org.jetbrains.kotlin.android")
  5. id("androidx.baselineprofile")
  6. }
  7. android {
  8. namespace = "org.dolphinemu.baselineprofile"
  9. compileSdk = 34
  10. compileOptions {
  11. sourceCompatibility = JavaVersion.VERSION_17
  12. targetCompatibility = JavaVersion.VERSION_17
  13. }
  14. kotlinOptions {
  15. jvmTarget = "17"
  16. }
  17. defaultConfig {
  18. minSdk = 28
  19. targetSdk = 34
  20. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  21. }
  22. targetProjectPath = ":app"
  23. testOptions.managedDevices.devices {
  24. create<ManagedVirtualDevice>("pixel6Api31") {
  25. device = "Pixel 6"
  26. apiLevel = 31
  27. systemImageSource = "google"
  28. }
  29. }
  30. }
  31. // This is the configuration block for the Baseline Profile plugin.
  32. // You can specify to run the generators on a managed devices or connected devices.
  33. baselineProfile {
  34. managedDevices += "pixel6Api31"
  35. useConnectedDevices = false
  36. }
  37. dependencies {
  38. implementation("androidx.test.ext:junit:1.1.5")
  39. implementation("androidx.test.espresso:espresso-core:3.5.1")
  40. implementation("androidx.test.uiautomator:uiautomator:2.3.0")
  41. implementation("androidx.benchmark:benchmark-macro-junit4:1.2.4")
  42. }