mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-30 19:53:34 +00:00
Restores Android CI to a publicly installable SDK platform and keeps Gradle compileSdk aligned with the workflow install/cache key. Rolls back the API-37-only AndroidX core slice until Android 37 is available to hosted CI, while preserving the unrelated Kotlin dependency bump. Verification: - Google SDK repository index check: android-36 exists; android-37/android-37.0 do not. - git diff --check - Testbox changed gate: tbx_01kvs3r1bc925pxya94zey23c8 - PR CI: 68 successful, 12 skipped, 0 failing, 0 pending; Android build/play and both Android unit-test lanes passed.
46 lines
1012 B
Kotlin
46 lines
1012 B
Kotlin
plugins {
|
|
alias(libs.plugins.android.test)
|
|
alias(libs.plugins.ktlint)
|
|
}
|
|
|
|
android {
|
|
namespace = "ai.openclaw.app.benchmark"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
minSdk = 31
|
|
targetSdk = 36
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
testInstrumentationRunnerArguments["androidx.benchmark.suppressErrors"] = "DEBUGGABLE,EMULATOR"
|
|
}
|
|
|
|
targetProjectPath = ":app"
|
|
experimentalProperties["android.experimental.self-instrumenting"] = true
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
allWarningsAsErrors.set(true)
|
|
}
|
|
}
|
|
|
|
ktlint {
|
|
android.set(true)
|
|
ignoreFailures.set(false)
|
|
filter {
|
|
exclude("**/build/**")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.benchmark.macro.junit4)
|
|
implementation(libs.androidx.test.ext.junit)
|
|
implementation(libs.androidx.uiautomator)
|
|
}
|