Godot Engine – Multi-platform 2D and 3D game engine
plugins {
id 'com.android.test'
id 'org.jetbrains.kotlin.android'
}
android {
namespace = 'org.godotengine.editor.v4.macrobenchmark'
compileSdk versions.compileSdk
compileOptions {
sourceCompatibility versions.javaVersion
targetCompatibility versions.javaVersion
}
kotlinOptions {
jvmTarget = versions.javaVersion
}
defaultConfig {
minSdk versions.minSdk
targetSdk versions.targetSdk
missingDimensionStrategy 'products', 'editor'
missingDimensionStrategy 'android_distribution', 'android'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["androidx.benchmark.suppressErrors"] = 'EMULATOR'
}
buildTypes {
// This benchmark buildType is used for benchmarking, and should function like your
// release build (for example, with minification on). It's signed with a debug key
// for easy local/CI testing.
benchmark {
debuggable = true
signingConfig = debug.signingConfig
matchingFallbacks = ["release"]
}
}
targetProjectPath = ":editor"
experimentalProperties["android.experimental.self-instrumenting"] = true
}
dependencies {
implementation 'androidx.benchmark:benchmark-macro-junit4:1.4.1'
implementation 'androidx.test.espresso:espresso-core:3.7.0'
implementation 'androidx.test.ext:junit:1.3.0'
implementation 'androidx.test.uiautomator:uiautomator:2.4.0'
implementation 'androidx.test:rules:1.7.0'
}
androidComponents {
beforeVariants(selector().all()) {
enable = buildType == "benchmark"
}
}