mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-19 05:47:24 -05:00
Migrate plugin and dependency versions to a Gradle version catalog and update dependencies to their latest available versions.
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
import com.android.build.api.dsl.ManagedVirtualDevice
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.test)
|
|
alias(libs.plugins.androidx.baselineprofile)
|
|
}
|
|
|
|
android {
|
|
namespace = "org.dolphinemu.baselineprofile"
|
|
compileSdk = 36
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdk = 28
|
|
targetSdk = 36
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
targetProjectPath = ":app"
|
|
|
|
testOptions.managedDevices.allDevices {
|
|
create<ManagedVirtualDevice>("pixel6Api31") {
|
|
device = "Pixel 6"
|
|
apiLevel = 31
|
|
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.
|
|
baselineProfile {
|
|
managedDevices += "pixel6Api31"
|
|
useConnectedDevices = false
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.junit)
|
|
implementation(libs.androidx.espresso.core)
|
|
implementation(libs.androidx.uiautomator)
|
|
implementation(libs.androidx.benchmark.macro.junit4)
|
|
}
|